
[18:07:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [seller_id] => 1383494453
    [user_id] => 72
    [status] => COMPLETED
)

============================================================

[18:07:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
)

============================================================

[18:07:39] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251220UGDTU7D3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512221XBCEJPQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512221XBCEJPQ
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512221XBCEJPQ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512137V3RCT3N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217JAAH3HN5
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MSTT444N
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MSTT444N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251206M2XTX2F3
    [seller_id] => 541362656
    [user_id] => 113
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251206M2XTX2F3
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251206M2XTX2F3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PW8RS3FP
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PW8RS3FP
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PW8RS3FP
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251215CREKQUTN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251215CREKQUTN
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251215CREKQUTN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PM0UQEEM
    [seller_id] => 314867163
    [user_id] => 75
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PM0UQEEM
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PM0UQEEM
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PPYBSWM8
    [seller_id] => 392561929
    [user_id] => 554
    [status] => COMPLETED
)

============================================================

[18:08:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PPYBSWM8
)

============================================================

[18:08:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PPYBSWM8
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:08:16] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[18:08:16] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
)

============================================================

[18:08:16] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PTFEJYD8
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:11:21] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:11:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
)

============================================================

[18:11:21] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512137V3RCT3N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:11:21] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[18:11:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
)

============================================================

[18:11:21] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217JAAH3HN5
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:15:26] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:15:26] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259F6BG77W
)

============================================================

[18:15:26] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512259F6BG77W
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:18:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [seller_id] => 239780418
    [user_id] => 184
    [status] => COMPLETED
)

============================================================

[18:18:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233YSCF48K
)

============================================================

[18:18:31] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512233YSCF48K
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:18:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [seller_id] => 544960064
    [user_id] => 144
    [status] => COMPLETED
)

============================================================

[18:18:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BHUU578H
)

============================================================

[18:18:31] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226BHUU578H
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:23:04] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [seller_id] => 852006270
    [user_id] => 132
    [status] => COMPLETED
)

============================================================

[18:23:04] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [shop_id] => 852006270
)

============================================================

[18:23:04] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767118984&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEo-YvQygYwgMLj_gc4AUAB.TrTrDz5txAu2s24Puw5lrew0SYum9-fkUU5XtWsOy_Y&shop_id=852006270&sign=cc1f520f5fee895cbcf9f0c782bb5ffdd1edc1c65ba88cafcf6d7e6856265db1&order_sn_list=251217KTKU04PJ&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767118984eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEo-YvQygYwgMLj_gc4AUAB.TrTrDz5txAu2s24Puw5lrew0SYum9-fkUU5XtWsOy_Y852006270
)

============================================================

[18:23:04] INFO: ⏳ Executando cURL...
============================================================

[18:23:05] INFO: ✅ cURL executado
============================================================

[18:23:05] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f73648f57e91b687bdc00"}
    [curl_error] => 
)

============================================================

[18:23:05] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251217KTKU04PJ
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f73648f57e91b687bdc00"}
)

============================================================

[18:23:05] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217KTKU04PJ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:23:10] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:23:10] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [shop_id] => 504113848
)

============================================================

[18:23:10] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767118990&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=4b69d83091625efae767248d21d9aca86343f2c25a9700716f687afa5e03f633&order_sn_list=251218MSTT444N&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767118990eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:23:10] INFO: ⏳ Executando cURL...
============================================================

[18:23:11] INFO: ✅ cURL executado
============================================================

[18:23:11] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f73c1c976421b78241b00"}
    [curl_error] => 
)

============================================================

[18:23:11] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218MSTT444N
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f73c1c976421b78241b00"}
)

============================================================

[18:23:11] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MSTT444N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:25:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:25:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [shop_id] => 504113848
)

============================================================

[18:25:46] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119146&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=caf6bc5ba6a5576ec89ec7bc55b130524650660bc956e0763855dc6ea64afb86&order_sn_list=251218PCREXWPK&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119146eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:25:46] INFO: ⏳ Executando cURL...
============================================================

[18:25:47] INFO: ✅ cURL executado
============================================================

[18:25:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f7d101028365de882a600"}
    [curl_error] => 
)

============================================================

[18:25:47] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218PCREXWPK
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f7d101028365de882a600"}
)

============================================================

[18:25:47] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218PCREXWPK
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:51] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [seller_id] => 239780418
    [user_id] => 184
    [status] => COMPLETED
)

============================================================

[18:29:51] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [shop_id] => 239780418
)

============================================================

[18:29:51] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119391&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGMKEq3IgASjHstDKBjD9ovqzCjgBQAE.zOyfHQyFXXbmTewHlVrF_g4Kvvgi70T_rvLzZlLDIzg&shop_id=239780418&sign=9794f8a2b27d03ec0546a2a808cef63a901beab6bb4329dec385d894a9350e6b&order_sn_list=2512233YSCF48K&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119391eyJhbGciOiJIUzI1NiJ9.CJPTehABGMKEq3IgASjHstDKBjD9ovqzCjgBQAE.zOyfHQyFXXbmTewHlVrF_g4Kvvgi70T_rvLzZlLDIzg239780418
)

============================================================

[18:29:51] INFO: ⏳ Executando cURL...
============================================================

[18:29:52] INFO: ✅ cURL executado
============================================================

[18:29:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8baaf8d0d30cd440e400"}
    [curl_error] => 
)

============================================================

[18:29:52] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512233YSCF48K
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8baaf8d0d30cd440e400"}
)

============================================================

[18:29:52] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512233YSCF48K
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:29:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [shop_id] => 861037471
)

============================================================

[18:29:52] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119392&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk&shop_id=861037471&sign=af5782a9a96b79b450b1aa9019c90aa463270c51dcf5e5b8dd9a89b70bfc3954&order_sn_list=2512259F6BG77W&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119392eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
)

============================================================

[18:29:52] INFO: ⏳ Executando cURL...
============================================================

[18:29:53] INFO: ✅ cURL executado
============================================================

[18:29:53] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bbb359af2193d75db00"}
    [curl_error] => 
)

============================================================

[18:29:53] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512259F6BG77W
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bbb359af2193d75db00"}
)

============================================================

[18:29:53] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512259F6BG77W
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:53] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [seller_id] => 544960064
    [user_id] => 144
    [status] => COMPLETED
)

============================================================

[18:29:53] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [shop_id] => 544960064
)

============================================================

[18:29:53] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119393&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGMDc7YMCIAEotevPygYww-rDqQI4AUAB.6myWPLGj7vcNZ9osqdJJXLWRDISbDC9DqrXvqVs7Hq4&shop_id=544960064&sign=550655f837384d72a13307546388869aa9b4f0d17e3ebac93338fa7d4c9ecf54&order_sn_list=251226BHUU578H&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119393eyJhbGciOiJIUzI1NiJ9.CJPTehABGMDc7YMCIAEotevPygYww-rDqQI4AUAB.6myWPLGj7vcNZ9osqdJJXLWRDISbDC9DqrXvqVs7Hq4544960064
)

============================================================

[18:29:53] INFO: ⏳ Executando cURL...
============================================================

[18:29:54] INFO: ✅ cURL executado
============================================================

[18:29:54] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bcbd65baee45e3c3500"}
    [curl_error] => 
)

============================================================

[18:29:54] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226BHUU578H
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bcbd65baee45e3c3500"}
)

============================================================

[18:29:54] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226BHUU578H
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:54] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [seller_id] => 852006270
    [user_id] => 132
    [status] => COMPLETED
)

============================================================

[18:29:54] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [shop_id] => 852006270
)

============================================================

[18:29:54] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119394&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEo-YvQygYwgMLj_gc4AUAB.TrTrDz5txAu2s24Puw5lrew0SYum9-fkUU5XtWsOy_Y&shop_id=852006270&sign=84c5f6d83c443cff95454d7dbe0cfa3f2d5dfa067853c46044477a0284457068&order_sn_list=251217KTKU04PJ&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119394eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEo-YvQygYwgMLj_gc4AUAB.TrTrDz5txAu2s24Puw5lrew0SYum9-fkUU5XtWsOy_Y852006270
)

============================================================

[18:29:54] INFO: ⏳ Executando cURL...
============================================================

[18:29:55] INFO: ✅ cURL executado
============================================================

[18:29:55] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bdcbf123914fb37bc00"}
    [curl_error] => 
)

============================================================

[18:29:55] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251217KTKU04PJ
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bdcbf123914fb37bc00"}
)

============================================================

[18:29:55] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217KTKU04PJ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:56] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:29:56] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [shop_id] => 504113848
)

============================================================

[18:29:56] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119396&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=6a6d8db54bd5eec2b39aeef110c9df31ddcbcfed9c32fa3d4f6f132fc1af9b2a&order_sn_list=251218M8X5HE6U&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119396eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:29:56] INFO: ⏳ Executando cURL...
============================================================

[18:29:57] INFO: ✅ cURL executado
============================================================

[18:29:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bed99ec0a1fe8c40b00"}
    [curl_error] => 
)

============================================================

[18:29:57] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218M8X5HE6U
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bed99ec0a1fe8c40b00"}
)

============================================================

[18:29:57] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218M8X5HE6U
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:57] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:29:57] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [shop_id] => 504113848
)

============================================================

[18:29:57] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119397&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=914b02aa49988218ff583d5ee3bea0b933bcbdf6d61fed99cd7966f5ac8b6ff2&order_sn_list=251218PCREXWPK&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119397eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:29:57] INFO: ⏳ Executando cURL...
============================================================

[18:29:58] INFO: ✅ cURL executado
============================================================

[18:29:58] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bfe6b14e72596245e00"}
    [curl_error] => 
)

============================================================

[18:29:58] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218PCREXWPK
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8bfe6b14e72596245e00"}
)

============================================================

[18:29:58] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218PCREXWPK
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:29:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512126Y2PFFAW
    [seller_id] => 1408943514
    [user_id] => 1110
    [status] => COMPLETED
)

============================================================

[18:29:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512126Y2PFFAW
    [shop_id] => 1408943514
)

============================================================

[18:29:58] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119398&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGJqL658FIAEoyZHQygYwxvqnygo4AUAB.pMZDflg48ENPpkJ3DGOp6SZsTc0-zHDRtbWUPHZ9E-I&shop_id=1408943514&sign=4c9631a5772525bbb89a7c2a2bc0f3b6194b461a993ac7915c8ab24c12e8a8e6&order_sn_list=2512126Y2PFFAW&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119398eyJhbGciOiJIUzI1NiJ9.CJPTehABGJqL658FIAEoyZHQygYwxvqnygo4AUAB.pMZDflg48ENPpkJ3DGOp6SZsTc0-zHDRtbWUPHZ9E-I1408943514
)

============================================================

[18:29:58] INFO: ⏳ Executando cURL...
============================================================

[18:29:59] INFO: ✅ cURL executado
============================================================

[18:29:59] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8c0f27c90470be1ed100"}
    [curl_error] => 
)

============================================================

[18:29:59] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512126Y2PFFAW
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f8c0f27c90470be1ed100"}
)

============================================================

[18:29:59] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512126Y2PFFAW
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:33:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[18:33:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [shop_id] => 675930217
)

============================================================

[18:33:07] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119587&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA&shop_id=675930217&sign=c614a3db32e9474f574aec53f893a0af997f9f40b1a14a0ae009196d5f97ebec&order_sn_list=251217JHKTCX72&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119587eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
)

============================================================

[18:33:07] INFO: ⏳ Executando cURL...
============================================================

[18:33:08] INFO: ✅ cURL executado
============================================================

[18:33:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f975a0738301952ab9000"}
    [curl_error] => 
)

============================================================

[18:33:08] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251217JHKTCX72
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f975a0738301952ab9000"}
)

============================================================

[18:33:08] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217JHKTCX72
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:33:43] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[18:33:43] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[18:33:43] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119623&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw&shop_id=1603130895&sign=1e9dd8f55d9cbd370372246032c3d45ac15f97ce18060fe8285d5666bee839be&order_sn_list=251219RJRGVTYA&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119623eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw1603130895
)

============================================================

[18:33:43] INFO: ⏳ Executando cURL...
============================================================

[18:33:44] INFO: ✅ cURL executado
============================================================

[18:33:44] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f99811c65a7fe91740200"}
    [curl_error] => 
)

============================================================

[18:33:44] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219RJRGVTYA
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f99811c65a7fe91740200"}
)

============================================================

[18:33:44] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219RJRGVTYA
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:34:19] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:34:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [shop_id] => 861037471
)

============================================================

[18:34:19] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119659&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk&shop_id=861037471&sign=8b788c5cf1a3fc49757ebc095fdeff6df513544bf04d74879a0cebdd1c83954f&order_sn_list=251226C2C31JCN&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119659eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
)

============================================================

[18:34:19] INFO: ⏳ Executando cURL...
============================================================

[18:34:20] INFO: ✅ cURL executado
============================================================

[18:34:20] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9ba81fece90d248fab00"}
    [curl_error] => 
)

============================================================

[18:34:20] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226C2C31JCN
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9ba81fece90d248fab00"}
)

============================================================

[18:34:20] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226C2C31JCN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:34:56] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:34:56] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
    [shop_id] => 504113848
)

============================================================

[18:34:56] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119696&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=4d890e4cf7dc85e6b27d82b3b623875ed7279440f6097be614961243b97916ec&order_sn_list=2512137V3RCT3N&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119696eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:34:56] INFO: ⏳ Executando cURL...
============================================================

[18:34:57] INFO: ✅ cURL executado
============================================================

[18:34:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9dcf02ffb0befd2e0100"}
    [curl_error] => 
)

============================================================

[18:34:57] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512137V3RCT3N
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9dcf02ffb0befd2e0100"}
)

============================================================

[18:34:57] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512137V3RCT3N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:34:57] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[18:34:57] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
    [shop_id] => 1564423565
)

============================================================

[18:34:57] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119697&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3r_OkFIAEolLbQygYw6OCSnws4AUAB.kZjP6O824bTUNQM3SDpnsUNg1ijs_LECXR1l795w1dw&shop_id=1564423565&sign=01338d452b9f475f7314d58324b1f7b62fe025d5b158eeab7db56f84d25c8244&order_sn_list=251217JAAH3HN5&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119697eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3r_OkFIAEolLbQygYw6OCSnws4AUAB.kZjP6O824bTUNQM3SDpnsUNg1ijs_LECXR1l795w1dw1564423565
)

============================================================

[18:34:57] INFO: ⏳ Executando cURL...
============================================================

[18:34:58] INFO: ✅ cURL executado
============================================================

[18:34:58] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9ddfe7fdb22642f4cd00"}
    [curl_error] => 
)

============================================================

[18:34:58] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251217JAAH3HN5
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9ddfe7fdb22642f4cd00"}
)

============================================================

[18:34:58] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217JAAH3HN5
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:34:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:34:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [shop_id] => 504113848
)

============================================================

[18:34:58] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119698&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=df2472c5734509841cb28a11f0a076eed95b82a237ebffc586d511dff6b64f02&order_sn_list=251218MSTT444N&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119698eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:34:58] INFO: ⏳ Executando cURL...
============================================================

[18:34:59] INFO: ✅ cURL executado
============================================================

[18:34:59] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9df0d6b4c2b0036afc00"}
    [curl_error] => 
)

============================================================

[18:34:59] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218MSTT444N
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9df0d6b4c2b0036afc00"}
)

============================================================

[18:34:59] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MSTT444N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:34:59] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251206M2XTX2F3
    [seller_id] => 541362656
    [user_id] => 113
    [status] => COMPLETED
)

============================================================

[18:34:59] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251206M2XTX2F3
    [shop_id] => 541362656
)

============================================================

[18:34:59] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119699&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGOCTkoICIAEotsbNygYwrIeplQQ4AUAB.swoTVxXi_FmYsIz1p4u93x7NXDKCDjb2CxAtyZyXNcs&shop_id=541362656&sign=302c3d3f45128d1c69ce3db2ae7d52e75992f55319b6b2d03b2b0447f56f053c&order_sn_list=251206M2XTX2F3&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119699eyJhbGciOiJIUzI1NiJ9.CJPTehABGOCTkoICIAEotsbNygYwrIeplQQ4AUAB.swoTVxXi_FmYsIz1p4u93x7NXDKCDjb2CxAtyZyXNcs541362656
)

============================================================

[18:34:59] INFO: ⏳ Executando cURL...
============================================================

[18:35:00] INFO: ✅ cURL executado
============================================================

[18:35:00] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e0181a87cd941016a00"}
    [curl_error] => 
)

============================================================

[18:35:00] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251206M2XTX2F3
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e0181a87cd941016a00"}
)

============================================================

[18:35:00] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251206M2XTX2F3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:00] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PW8RS3FP
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:35:00] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PW8RS3FP
    [shop_id] => 504113848
)

============================================================

[18:35:00] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119700&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc&shop_id=504113848&sign=134dfe9bb3306a851c2ff0198e8c466cc538ebb1e9c47ca750bb68de20ce2941&order_sn_list=251219PW8RS3FP&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119700eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
)

============================================================

[18:35:00] INFO: ⏳ Executando cURL...
============================================================

[18:35:01] INFO: ✅ cURL executado
============================================================

[18:35:01] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e127e7c40a5dbb48200"}
    [curl_error] => 
)

============================================================

[18:35:01] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PW8RS3FP
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e127e7c40a5dbb48200"}
)

============================================================

[18:35:01] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PW8RS3FP
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251215CREKQUTN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:35:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251215CREKQUTN
    [shop_id] => 861037471
)

============================================================

[18:35:01] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119701&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk&shop_id=861037471&sign=72655eebe923340e7af0ef4c72884b32ad6638d7a9a248b3e082311524f315c0&order_sn_list=251215CREKQUTN&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119701eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
)

============================================================

[18:35:01] INFO: ⏳ Executando cURL...
============================================================

[18:35:02] INFO: ✅ cURL executado
============================================================

[18:35:02] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e23b550a9ca75098700"}
    [curl_error] => 
)

============================================================

[18:35:02] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251215CREKQUTN
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e23b550a9ca75098700"}
)

============================================================

[18:35:02] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251215CREKQUTN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PM0UQEEM
    [seller_id] => 314867163
    [user_id] => 75
    [status] => COMPLETED
)

============================================================

[18:35:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PM0UQEEM
    [shop_id] => 314867163
)

============================================================

[18:35:02] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119702&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGNv7kZYBIAEo88fJygYwi4WT7A44AUAB.hbIqZrgSbaj9Jrh1TsqCdo3iiAA7DQuFUNR9MqROYb4&shop_id=314867163&sign=57668ac41e2fed7d2e7f0f7ba4de97e0b2b5ce7ab8f9263321eebdaf24542afd&order_sn_list=251219PM0UQEEM&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119702eyJhbGciOiJIUzI1NiJ9.CJPTehABGNv7kZYBIAEo88fJygYwi4WT7A44AUAB.hbIqZrgSbaj9Jrh1TsqCdo3iiAA7DQuFUNR9MqROYb4314867163
)

============================================================

[18:35:02] INFO: ⏳ Executando cURL...
============================================================

[18:35:03] INFO: ✅ cURL executado
============================================================

[18:35:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e34d2212032f3d9d400"}
    [curl_error] => 
)

============================================================

[18:35:03] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PM0UQEEM
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e34d2212032f3d9d400"}
)

============================================================

[18:35:03] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PM0UQEEM
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:03] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PPYBSWM8
    [seller_id] => 392561929
    [user_id] => 554
    [status] => COMPLETED
)

============================================================

[18:35:03] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PPYBSWM8
    [shop_id] => 392561929
)

============================================================

[18:35:03] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119703&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGImKmLsBIAEoieOXygYw3MeFhAk4AUAB.L8W21NJNua_briVHRX-PrIWjSRxhrfNgVrKljxSSQF8&shop_id=392561929&sign=e09f7751c20bab9fbc39be19828fed87d1285afca3a3a4a3ba504c0b82e7ba93&order_sn_list=251219PPYBSWM8&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119703eyJhbGciOiJIUzI1NiJ9.CJPTehABGImKmLsBIAEoieOXygYw3MeFhAk4AUAB.L8W21NJNua_briVHRX-PrIWjSRxhrfNgVrKljxSSQF8392561929
)

============================================================

[18:35:03] INFO: ⏳ Executando cURL...
============================================================

[18:35:04] INFO: ✅ cURL executado
============================================================

[18:35:04] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e4643603e6762d83300"}
    [curl_error] => 
)

============================================================

[18:35:04] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PPYBSWM8
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e4643603e6762d83300"}
)

============================================================

[18:35:04] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PPYBSWM8
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:04] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[18:35:04] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[18:35:04] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119704&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA&shop_id=675930217&sign=94b702cf486aa58bfb68e2445138f1bcc8e81ef612788c4f5ec107ab08691b34&order_sn_list=251219PTFEJYD8&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119704eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
)

============================================================

[18:35:04] INFO: ⏳ Executando cURL...
============================================================

[18:35:05] INFO: ✅ cURL executado
============================================================

[18:35:05] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e5760d5fed684844500"}
    [curl_error] => 
)

============================================================

[18:35:05] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PTFEJYD8
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e5760d5fed684844500"}
)

============================================================

[18:35:05] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PTFEJYD8
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:06] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [seller_id] => 1383494453
    [user_id] => 72
    [status] => COMPLETED
)

============================================================

[18:35:06] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [shop_id] => 1383494453
)

============================================================

[18:35:06] INFO: 🔗 URL da API construída
Array
(
    [url] => https://partner.shopeemobile.com/api/v2/order/get_order_detail?partner_id=2011429&timestamp=1767119706&access_token=eyJhbGciOiJIUzI1NiJ9.CJPTehABGLXm2ZMFIAEoj9emygYwqNKewQs4AUAB.3u-psO3gVCnOcUaqbtvxXB0P71p13-xxcBKTwoqI5ZE&shop_id=1383494453&sign=57824a34e18a4740a6f6665885bbf328b375599a83e2fa296054118c2773b0f9&order_sn_list=251220UGDTU7D3&response_optional_fields=buyer_user_id%2Cbuyer_username%2Cestimated_shipping_fee%2Crecipient_address%2Cactual_shipping_fee%2Cgoods_to_declare%2Cnote%2Cnote_update_time%2Citem_list%2Cpay_time%2Cdropshipper%2Ccredit_card_number%2Cdropshipper_phone%2Csplit_up%2Cbuyer_cancel_reason%2Ccancel_by%2Ccancel_reason%2Cactual_shipping_fee_confirmed%2Cbuyer_cpf_id%2Cfulfillment_flag%2Cpickup_done_time%2Cpackage_list%2Cshipping_carrier%2Cpayment_method%2Ctotal_amount%2Cbuyer_username%2Cinvoice_data%2Ccheckout_shipping_carrier%2Creverse_shipping_fee
    [base_string] => 2011429/api/v2/order/get_order_detail1767119706eyJhbGciOiJIUzI1NiJ9.CJPTehABGLXm2ZMFIAEoj9emygYwqNKewQs4AUAB.3u-psO3gVCnOcUaqbtvxXB0P71p13-xxcBKTwoqI5ZE1383494453
)

============================================================

[18:35:06] INFO: ⏳ Executando cURL...
============================================================

[18:35:07] INFO: ✅ cURL executado
============================================================

[18:35:07] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e68328c89f41c71d300"}
    [curl_error] => 
)

============================================================

[18:35:07] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251220UGDTU7D3
    [error] => API retornou HTTP 403: {"error":"error_sign","message":"Wrong sign.","request_id":"e3e3e7f3472f9e68328c89f41c71d300"}
)

============================================================

[18:35:07] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251220UGDTU7D3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:38:17] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[18:38:17] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [shop_id] => 675930217
)

============================================================

[18:38:17] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 0
    [shop_id] => 675930217
    [timestamp] => 1767119897
    [base_string] => 0/api/v2/order/get_order_detail1767119897eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => c76d283c6c7d8913...
    [url_length] => 852
)

============================================================

[18:38:17] INFO: ⏳ Executando cURL...
============================================================

[18:38:18] INFO: ✅ cURL executado
============================================================

[18:38:18] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"error_param","message":"Partner_id is invalid, should be an integer between 0 and 4294967295.","request_id":"e3e3e7f3472fa9d37a341d67348e3300"}
    [curl_error] => 
)

============================================================

[18:38:18] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251217JHKTCX72
    [error] => Resposta inválida da API: {"error":"error_param","message":"Partner_id is invalid, should be an integer between 0 and 4294967295.","request_id":"e3e3e7f3472fa9d37a341d67348e3300"}
)

============================================================

[18:38:18] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251217JHKTCX72
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:38:48] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[18:38:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[18:38:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 0
    [shop_id] => 1603130895
    [timestamp] => 1767119928
    [base_string] => 0/api/v2/order/get_order_detail1767119928eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw1603130895
    [signature] => c2786fca0e10640e...
    [url_length] => 853
)

============================================================

[18:38:48] INFO: ⏳ Executando cURL...
============================================================

[18:38:49] INFO: ✅ cURL executado
============================================================

[18:38:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"error_param","message":"Partner_id is invalid, should be an integer between 0 and 4294967295.","request_id":"e3e3e7f3472faba5c00837b8cdf92800"}
    [curl_error] => 
)

============================================================

[18:38:49] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219RJRGVTYA
    [error] => Resposta inválida da API: {"error":"error_param","message":"Partner_id is invalid, should be an integer between 0 and 4294967295.","request_id":"e3e3e7f3472faba5c00837b8cdf92800"}
)

============================================================

[18:38:49] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219RJRGVTYA
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:39:23] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:39:23] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [shop_id] => 861037471
)

============================================================

[18:39:23] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 0
    [shop_id] => 861037471
    [timestamp] => 1767119963
    [base_string] => 0/api/v2/order/get_order_detail1767119963eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
    [signature] => 6a8eb3a749e13ae8...
    [url_length] => 852
)

============================================================

[18:39:23] INFO: ⏳ Executando cURL...
============================================================

[18:39:24] INFO: ✅ cURL executado
============================================================

[18:39:24] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"error_param","message":"Partner_id is invalid, should be an integer between 0 and 4294967295.","request_id":"e3e3e7f3472fadc43870baae554c6800"}
    [curl_error] => 
)

============================================================

[18:39:24] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226C2C31JCN
    [error] => Resposta inválida da API: {"error":"error_param","message":"Partner_id is invalid, should be an integer between 0 and 4294967295.","request_id":"e3e3e7f3472fadc43870baae554c6800"}
)

============================================================

[18:39:24] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226C2C31JCN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:47:09] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[18:47:09] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[18:47:09] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767120429
    [base_string] => 2009491/api/v2/order/get_order_detail1767120429eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw1603130895
    [signature] => 6752b9d1f74746b5...
    [url_length] => 859
)

============================================================

[18:47:09] INFO: ⏳ Executando cURL...
============================================================

[18:47:10] INFO: ✅ cURL executado
============================================================

[18:47:10] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":501749504,"buyer_username":"laiscristinamakeup","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766145584,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mhuvrmvjwf7mc6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23499187237,"item_name":"Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":34,"model_id":0,"model_name":"","model_original_price":39.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23499187237,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":790815173952512}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219RJRGVTYA","order_status":"COMPLETED","package_list":[{"package_number":"OFG219844784182098","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23499187237,"model_id":0,"model_quantity":1,"order_item_id":23499187237,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766145594,"payment_method":"Credit Card","pickup_done_time":1766163440,"recipient_address":{"name":"L******o","phone":"******15","town":"","district":"Jardim Mercedes","city":"São Carlos","state":"São Paulo","region":"BR","zipcode":"13570501","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34,"update_time":1767119635}]},"request_id":"e3e3e7f3472fc9821771b84372e6cb00:010002020fa6f861:00000044a4dab513"}
    [curl_error] => 
)

============================================================

[18:47:10] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219RJRGVTYA
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:47:10] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251219RJRGVTYA
)

============================================================

[18:47:10] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:47:10] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [shop_id] => 504113848
)

============================================================

[18:47:10] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767120430
    [base_string] => 2009491/api/v2/order/get_order_detail1767120430eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 04fc0700eb984a3d...
    [url_length] => 858
)

============================================================

[18:47:10] INFO: ⏳ Executando cURL...
============================================================

[18:47:11] INFO: ✅ cURL executado
============================================================

[18:47:11] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fc99ae673911908f7ca00"}
    [curl_error] => 
)

============================================================

[18:47:11] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512246NEAVJFD
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fc99ae673911908f7ca00"}
)

============================================================

[18:47:11] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512246NEAVJFD
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:50:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:50:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [shop_id] => 504113848
)

============================================================

[18:50:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767120646
    [base_string] => 2009491/api/v2/order/get_order_detail1767120646eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 5632a84ca9e52a81...
    [url_length] => 858
)

============================================================

[18:50:46] INFO: ⏳ Executando cURL...
============================================================

[18:50:47] INFO: ✅ cURL executado
============================================================

[18:50:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fd67c677426439329ec00"}
    [curl_error] => 
)

============================================================

[18:50:47] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226BNVUJYEK
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fd67c677426439329ec00"}
)

============================================================

[18:50:47] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226BNVUJYEK
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:52:49] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [seller_id] => 1035641613
    [user_id] => 33
    [status] => COMPLETED
)

============================================================

[18:52:49] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [shop_id] => 1035641613
)

============================================================

[18:52:49] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1767120769
    [base_string] => 2009491/api/v2/order/get_order_detail1767120769eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEoitzPygYwnI2CuAk4AUAB.2y0x1x1YMPAgf6UUS8uRYY1J12XLcqn5_gfkf0Mx2g81035641613
    [signature] => 76437b4cec35bfeb...
    [url_length] => 859
)

============================================================

[18:52:49] INFO: ⏳ Executando cURL...
============================================================

[18:52:52] INFO: ✅ cURL executado
============================================================

[18:52:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":21.74,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401967739,"buyer_username":"ravisantos87","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766434975,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":21.74,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdw3-md0yqmgnyb52ca_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23094288126,"item_name":"hidratante batom labial cupcake gloss estilo girl kids kit com 8","item_sku":"DPX4331557235","main_item":false,"model_discounted_price":41.56,"model_id":0,"model_name":"","model_original_price":41.56,"model_quantity_purchased":1,"model_sku":"","order_item_id":23094288126,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233VXPFKYQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220134176105462","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23094288126,"model_id":0,"model_quantity":1,"order_item_id":23094288126,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766434983,"payment_method":"Credit Card","pickup_done_time":1766514032,"recipient_address":{"name":"R******a","phone":"******28","town":"","district":"Jardim Lago Azul","city":"Novo Gama","state":"Goiás","region":"BR","zipcode":"72865142","full_address":"Qu******"},"region":"BR","return_request_due_date":1767724911,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":41.22,"update_time":1767120762}]},"request_id":"e3e3e7f3472fdde158655eec961f8400:0100026a453dcf76:000000b3af825b09"}
    [curl_error] => 
)

============================================================

[18:52:52] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233VXPFKYQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:52:52] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[18:54:27] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[18:54:27] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [shop_id] => 411294579
)

============================================================

[18:54:27] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767120867
    [base_string] => 2009491/api/v2/order/get_order_detail1767120867eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEohbXQygYwm7GZkg04AUAB.kzcM8j6wgEzXJpa5dbhlVx9iUbJ8CcFJ7sghRFv-LUU411294579
    [signature] => 85189a85df22bce3...
    [url_length] => 858
)

============================================================

[18:54:27] INFO: ⏳ Executando cURL...
============================================================

[18:54:29] INFO: ✅ cURL executado
============================================================

[18:54:29] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1499749988,"buyer_username":"vxlyzrtdd5","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765895630,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821fn-mgmy0yimztvtf3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58250301144,"item_name":"Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido","item_sku":"DPX7240755682","main_item":false,"model_discounted_price":33.53,"model_id":0,"model_name":"","model_original_price":37.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58250301144,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216H9YA8YSB","order_status":"COMPLETED","package_list":[{"package_number":"OFG219594830167655","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58250301144,"model_id":0,"model_quantity":1,"order_item_id":58250301144,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765895764,"payment_method":"Pix","pickup_done_time":1765985600,"recipient_address":{"name":"A******e","phone":"******42","town":"","district":"Rodoviária","city":"João Neiva","state":"Espírito Santo","region":"BR","zipcode":"29680000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":32.52,"update_time":1767120867}]},"request_id":"e3e3e7f3472fe3a3e69c07b9df41db00:010002cda98be211:000000e7a1080823"}
    [curl_error] => 
)

============================================================

[18:54:29] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216H9YA8YSB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:54:29] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251216H9YA8YSB
)

============================================================

[18:55:34] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [seller_id] => 239780418
    [user_id] => 184
    [status] => COMPLETED
)

============================================================

[18:55:34] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [shop_id] => 239780418
)

============================================================

[18:55:34] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 239780418
    [timestamp] => 1767120934
    [base_string] => 2009491/api/v2/order/get_order_detail1767120934eyJhbGciOiJIUzI1NiJ9.CJPTehABGMKEq3IgASievNDKBjCbjv6RCjgBQAE.rReUQ9bwen1DP3MZkkqyZZ10sw7Fvf18V9zl-LTC1VA239780418
    [signature] => f7788839689a3b5e...
    [url_length] => 857
)

============================================================

[18:55:34] INFO: ⏳ Executando cURL...
============================================================

[18:55:42] INFO: ✅ cURL executado
============================================================

[18:55:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":763208546,"buyer_username":"amandateixeira19","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766438018,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821d7-mgh1d6pxsxzh23_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58200195484,"item_name":"Removedor De Placa Limpador De Dentes Elétrico Sonic Mancha","item_sku":"DPX8180240484","main_item":false,"model_discounted_price":18.8,"model_id":0,"model_name":"","model_original_price":20,"model_quantity_purchased":1,"model_sku":"","order_item_id":58200195484,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":800159512838144}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233YSCF48K","order_status":"COMPLETED","package_list":[{"package_number":"OFG220137218132970","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58200195484,"model_id":0,"model_quantity":1,"order_item_id":58200195484,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":375,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766438056,"payment_method":"Pix","pickup_done_time":1766514032,"recipient_address":{"name":"A******o","phone":"******50","town":"","district":"Manga","city":"Inhaúma","state":"Minas Gerais","region":"BR","zipcode":"35763000","full_address":"Jo******"},"region":"BR","return_request_due_date":1767456684,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":18.8,"update_time":1767116304}]},"request_id":"e3e3e7f3472fe80a4bec909d3e1aec00:0100028efc9e571c:000000c8ff34f704"}
    [curl_error] => 
)

============================================================

[18:55:42] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233YSCF48K
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:55:42] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512233YSCF48K
)

============================================================

[18:55:42] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:55:42] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [shop_id] => 504113848
)

============================================================

[18:55:42] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767120942
    [base_string] => 2009491/api/v2/order/get_order_detail1767120942eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 461c218cb7648dac...
    [url_length] => 858
)

============================================================

[18:55:42] INFO: ⏳ Executando cURL...
============================================================

[18:55:43] INFO: ✅ cURL executado
============================================================

[18:55:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe81ff30698de138f0500"}
    [curl_error] => 
)

============================================================

[18:55:43] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218M8X5HE6U
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe81ff30698de138f0500"}
)

============================================================

[18:55:43] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218M8X5HE6U
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:55:43] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512126Y2PFFAW
    [seller_id] => 1408943514
    [user_id] => 1110
    [status] => COMPLETED
)

============================================================

[18:55:43] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512126Y2PFFAW
    [shop_id] => 1408943514
)

============================================================

[18:55:43] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1408943514
    [timestamp] => 1767120943
    [base_string] => 2009491/api/v2/order/get_order_detail1767120943eyJhbGciOiJIUzI1NiJ9.CJPTehABGJqL658FIAEoyZHQygYwxvqnygo4AUAB.pMZDflg48ENPpkJ3DGOp6SZsTc0-zHDRtbWUPHZ9E-I1408943514
    [signature] => 93ba5a9173f2c966...
    [url_length] => 859
)

============================================================

[18:55:43] INFO: ⏳ Executando cURL...
============================================================

[18:55:45] INFO: ✅ cURL executado
============================================================

[18:55:45] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":25.07,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":654443574,"buyer_username":"tacianamorais","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765540335,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":25.07,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35251247638789000174550020000010141132512593","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rd5t-m7v3v8mrovgtf5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":20998103575,"item_name":"Gel Solido Alongamento de Tips Transparente 1 Real Love 15ml","item_sku":"80542","main_item":false,"model_discounted_price":21.84,"model_id":0,"model_name":"","model_original_price":22.99,"model_quantity_purchased":2,"model_sku":"","order_item_id":20998103575,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":771101123067904,"promotion_list":[{"promotion_type":"platform_sale","promotion_id":771101123067904}],"promotion_type":"product_promotion_BR","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512126Y2PFFAW","order_status":"COMPLETED","package_list":[{"package_number":"OFG219239535171120","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":20998103575,"model_id":0,"model_quantity":2,"order_item_id":20998103575,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":200,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765540371,"payment_method":"Pix","pickup_done_time":1765547791,"recipient_address":{"name":"T******s","phone":"******42","town":"","district":"Rural","city":"Esperantina","state":"Piauí","region":"BR","zipcode":"64180000","full_address":"Ma******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765594799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":48.75,"update_time":1767119397}]},"request_id":"e3e3e7f3472fe830a58ae3452cc55c00:010002184613b9e0:000000584cfc61b8"}
    [curl_error] => 
)

============================================================

[18:55:45] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512126Y2PFFAW
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:55:45] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512126Y2PFFAW
)

============================================================

[18:55:45] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[18:55:45] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [shop_id] => 675930217
)

============================================================

[18:55:45] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767120945
    [base_string] => 2009491/api/v2/order/get_order_detail1767120945eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 72df84f643a04a68...
    [url_length] => 858
)

============================================================

[18:55:45] INFO: ⏳ Executando cURL...
============================================================

[18:55:46] INFO: ✅ cURL executado
============================================================

[18:55:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401524391,"buyer_username":"daysamarcattodesousa","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765938195,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mi5dqwgb63uqa8_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22994677017,"item_name":"Kit de Esmaltes Infantil Magical Phantasy Unicórnio Gliter Brilho e Magia Hipoalergenico","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":36,"model_id":0,"model_name":"","model_original_price":45.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":22994677017,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":801602756083712}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251217JHKTCX72","order_status":"COMPLETED","package_list":[{"package_number":"OFG219637395115114","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22994677017,"model_id":0,"model_quantity":1,"order_item_id":22994677017,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765938201,"payment_method":"Credit Card","pickup_done_time":1765997742,"recipient_address":{"name":"D****** ","phone":"******91","town":"","district":"Zona III","city":"Umuarama","state":"Paraná","region":"BR","zipcode":"87502180","full_address":"R ******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":35.28,"update_time":1767119597}]},"request_id":"e3e3e7f3472fe845aaa46edb1c8bd800:010002525f42844d:0000004f1746fb47"}
    [curl_error] => 
)

============================================================

[18:55:46] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251217JHKTCX72
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:55:46] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251217JHKTCX72
)

============================================================

[18:55:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[18:55:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[18:55:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767120946
    [base_string] => 2009491/api/v2/order/get_order_detail1767120946eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw1603130895
    [signature] => 71dc611afc1538f0...
    [url_length] => 859
)

============================================================

[18:55:46] INFO: ⏳ Executando cURL...
============================================================

[18:55:48] INFO: ✅ cURL executado
============================================================

[18:55:48] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":501749504,"buyer_username":"laiscristinamakeup","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766145584,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mhuvrmvjwf7mc6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23499187237,"item_name":"Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":34,"model_id":0,"model_name":"","model_original_price":39.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23499187237,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":790815173952512}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219RJRGVTYA","order_status":"COMPLETED","package_list":[{"package_number":"OFG219844784182098","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23499187237,"model_id":0,"model_quantity":1,"order_item_id":23499187237,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766145594,"payment_method":"Credit Card","pickup_done_time":1766163440,"recipient_address":{"name":"L******o","phone":"******15","town":"","district":"Jardim Mercedes","city":"São Carlos","state":"São Paulo","region":"BR","zipcode":"13570501","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34,"update_time":1767119635}]},"request_id":"e3e3e7f3472fe85d9161458d5b175e00:010002e3fa333f02:000000b2abcb5ed5"}
    [curl_error] => 
)

============================================================

[18:55:48] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219RJRGVTYA
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:55:48] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251219RJRGVTYA
)

============================================================

[18:55:48] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[18:55:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [shop_id] => 861037471
)

============================================================

[18:55:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767120948
    [base_string] => 2009491/api/v2/order/get_order_detail1767120948eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
    [signature] => 12be503ebba5e57c...
    [url_length] => 858
)

============================================================

[18:55:48] INFO: ⏳ Executando cURL...
============================================================

[18:55:50] INFO: ✅ cURL executado
============================================================

[18:55:50] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8839d760b692c70ac00"}
    [curl_error] => 
)

============================================================

[18:55:50] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226C2C31JCN
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8839d760b692c70ac00"}
)

============================================================

[18:55:50] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226C2C31JCN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:55:50] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:55:50] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [shop_id] => 504113848
)

============================================================

[18:55:50] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767120950
    [base_string] => 2009491/api/v2/order/get_order_detail1767120950eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => aeaecd311a5bdec3...
    [url_length] => 858
)

============================================================

[18:55:50] INFO: ⏳ Executando cURL...
============================================================

[18:55:51] INFO: ✅ cURL executado
============================================================

[18:55:51] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8947cd48ec3eb381200"}
    [curl_error] => 
)

============================================================

[18:55:51] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PJ4KDNMY
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8947cd48ec3eb381200"}
)

============================================================

[18:55:51] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PJ4KDNMY
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:55:51] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:55:51] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [shop_id] => 504113848
)

============================================================

[18:55:51] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767120951
    [base_string] => 2009491/api/v2/order/get_order_detail1767120951eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => a99c93f4777e83c9...
    [url_length] => 858
)

============================================================

[18:55:51] INFO: ⏳ Executando cURL...
============================================================

[18:55:52] INFO: ✅ cURL executado
============================================================

[18:55:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8a5b848fe1eba3eca00"}
    [curl_error] => 
)

============================================================

[18:55:52] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226BNVUJYEK
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8a5b848fe1eba3eca00"}
)

============================================================

[18:55:52] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226BNVUJYEK
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:55:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:55:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [shop_id] => 504113848
)

============================================================

[18:55:52] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767120952
    [base_string] => 2009491/api/v2/order/get_order_detail1767120952eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 43b19acf61f71be1...
    [url_length] => 858
)

============================================================

[18:55:52] INFO: ⏳ Executando cURL...
============================================================

[18:55:55] INFO: ✅ cURL executado
============================================================

[18:55:55] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8d60449263ec74e2300"}
    [curl_error] => 
)

============================================================

[18:55:55] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512246NEAVJFD
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3472fe8d60449263ec74e2300"}
)

============================================================

[18:55:55] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512246NEAVJFD
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:59:30] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[18:59:30] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [shop_id] => 411294579
)

============================================================

[18:59:30] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767121170
    [base_string] => 2009491/api/v2/order/get_order_detail1767121170eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEohbXQygYwm7GZkg04AUAB.kzcM8j6wgEzXJpa5dbhlVx9iUbJ8CcFJ7sghRFv-LUU411294579
    [signature] => 82f6e4b7db772bd1...
    [url_length] => 858
)

============================================================

[18:59:30] INFO: ⏳ Executando cURL...
============================================================

[18:59:31] INFO: ✅ cURL executado
============================================================

[18:59:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1499749988,"buyer_username":"vxlyzrtdd5","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765895630,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821fn-mgmy0yimztvtf3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58250301144,"item_name":"Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido","item_sku":"DPX7240755682","main_item":false,"model_discounted_price":33.53,"model_id":0,"model_name":"","model_original_price":37.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58250301144,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216H9YA8YSB","order_status":"COMPLETED","package_list":[{"package_number":"OFG219594830167655","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58250301144,"model_id":0,"model_quantity":1,"order_item_id":58250301144,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765895764,"payment_method":"Pix","pickup_done_time":1765985600,"recipient_address":{"name":"A******e","phone":"******42","town":"","district":"Rodoviária","city":"João Neiva","state":"Espírito Santo","region":"BR","zipcode":"29680000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":32.52,"update_time":1767120877}]},"request_id":"e3e3e7f3472ff5b1f93d7f8a78eafa00:010002c84464a730:0000003fda2a69b8"}
    [curl_error] => 
)

============================================================

[18:59:31] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216H9YA8YSB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:59:31] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251216H9YA8YSB
)

============================================================

[19:14:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [seller_id] => 1035641613
    [user_id] => 33
    [status] => COMPLETED
)

============================================================

[19:14:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [shop_id] => 1035641613
)

============================================================

[19:14:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1767122042
    [base_string] => 2009491/api/v2/order/get_order_detail1767122042eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEoitzPygYwnI2CuAk4AUAB.2y0x1x1YMPAgf6UUS8uRYY1J12XLcqn5_gfkf0Mx2g81035641613
    [signature] => 9f24dbcae14b640a...
    [url_length] => 859
)

============================================================

[19:14:02] INFO: ⏳ Executando cURL...
============================================================

[19:14:03] INFO: ✅ cURL executado
============================================================

[19:14:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":21.74,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401967739,"buyer_username":"ravisantos87","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766434975,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":21.74,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdw3-md0yqmgnyb52ca_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23094288126,"item_name":"hidratante batom labial cupcake gloss estilo girl kids kit com 8","item_sku":"DPX4331557235","main_item":false,"model_discounted_price":41.56,"model_id":0,"model_name":"","model_original_price":41.56,"model_quantity_purchased":1,"model_sku":"","order_item_id":23094288126,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233VXPFKYQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220134176105462","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23094288126,"model_id":0,"model_quantity":1,"order_item_id":23094288126,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766434983,"payment_method":"Credit Card","pickup_done_time":1766514032,"recipient_address":{"name":"R******a","phone":"******28","town":"","district":"Jardim Lago Azul","city":"Novo Gama","state":"Goiás","region":"BR","zipcode":"72865142","full_address":"Qu******"},"region":"BR","return_request_due_date":1767724911,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":41.22,"update_time":1767120783}]},"request_id":"e3e3e7f3473029a6dcc091044593ea00:010002f9009a5745:00000098798afe91"}
    [curl_error] => 
)

============================================================

[19:14:03] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233VXPFKYQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:14:03] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[19:14:03] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[19:14:03] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [shop_id] => 411294579
)

============================================================

[19:14:03] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767122043
    [base_string] => 2009491/api/v2/order/get_order_detail1767122043eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEohbXQygYwm7GZkg04AUAB.kzcM8j6wgEzXJpa5dbhlVx9iUbJ8CcFJ7sghRFv-LUU411294579
    [signature] => 8a121139f12bb9e0...
    [url_length] => 858
)

============================================================

[19:14:03] INFO: ⏳ Executando cURL...
============================================================

[19:14:05] INFO: ✅ cURL executado
============================================================

[19:14:05] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1499749988,"buyer_username":"vxlyzrtdd5","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765895630,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821fn-mgmy0yimztvtf3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58250301144,"item_name":"Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido","item_sku":"DPX7240755682","main_item":false,"model_discounted_price":33.53,"model_id":0,"model_name":"","model_original_price":37.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58250301144,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216H9YA8YSB","order_status":"COMPLETED","package_list":[{"package_number":"OFG219594830167655","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58250301144,"model_id":0,"model_quantity":1,"order_item_id":58250301144,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765895764,"payment_method":"Pix","pickup_done_time":1765985600,"recipient_address":{"name":"A******e","phone":"******42","town":"","district":"Rodoviária","city":"João Neiva","state":"Espírito Santo","region":"BR","zipcode":"29680000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":32.52,"update_time":1767120877}]},"request_id":"e3e3e7f3473029bf75b30417e26b3e00:010002fa281ae524:000000a755d0c782"}
    [curl_error] => 
)

============================================================

[19:14:05] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216H9YA8YSB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:14:05] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216H9YA8YSB
)

============================================================

[19:14:05] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[19:14:05] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [shop_id] => 504113848
)

============================================================

[19:14:05] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767122045
    [base_string] => 2009491/api/v2/order/get_order_detail1767122045eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => f96f388f8c85eaad...
    [url_length] => 858
)

============================================================

[19:14:05] INFO: ⏳ Executando cURL...
============================================================

[19:14:06] INFO: ✅ cURL executado
============================================================

[19:14:06] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473029d92bb1c3f00520b400"}
    [curl_error] => 
)

============================================================

[19:14:06] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512235XEHM7XQ
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473029d92bb1c3f00520b400"}
)

============================================================

[19:14:06] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512235XEHM7XQ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:14:06] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[19:14:06] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [shop_id] => 504113848
)

============================================================

[19:14:06] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767122046
    [base_string] => 2009491/api/v2/order/get_order_detail1767122046eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 1b153dbed308b892...
    [url_length] => 858
)

============================================================

[19:14:06] INFO: ⏳ Executando cURL...
============================================================

[19:14:07] INFO: ✅ cURL executado
============================================================

[19:14:07] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473029ea1315b6c934285600"}
    [curl_error] => 
)

============================================================

[19:14:07] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251220SDK0FF0A
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473029ea1315b6c934285600"}
)

============================================================

[19:14:07] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251220SDK0FF0A
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:14:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [seller_id] => 796461485
    [user_id] => 581
    [status] => COMPLETED
)

============================================================

[19:14:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[19:14:07] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767122047
    [base_string] => 2009491/api/v2/order/get_order_detail1767122047eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo4biXygYwjpqauQo4AUAB.Yyb17c6rIPthIfidV4A-RGpR-bCcwhJW4ioJWoX_KF0796461485
    [signature] => f57c367a89990505...
    [url_length] => 858
)

============================================================

[19:14:07] INFO: ⏳ Executando cURL...
============================================================

[19:14:08] INFO: ✅ cURL executado
============================================================

[19:14:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473029faffa8998263261700"}
    [curl_error] => 
)

============================================================

[19:14:08] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 25122475T3MHNT
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473029faffa8998263261700"}
)

============================================================

[19:14:08] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 25122475T3MHNT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:13] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512221XBCEJPQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[19:15:13] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512221XBCEJPQ
    [shop_id] => 504113848
)

============================================================

[19:15:13] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767122113
    [base_string] => 2009491/api/v2/order/get_order_detail1767122113eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => aa6e42d889109a0f...
    [url_length] => 858
)

============================================================

[19:15:13] INFO: ⏳ Executando cURL...
============================================================

[19:15:14] INFO: ✅ cURL executado
============================================================

[19:15:14] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302debb460095a993e5a00"}
    [curl_error] => 
)

============================================================

[19:15:14] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512221XBCEJPQ
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302debb460095a993e5a00"}
)

============================================================

[19:15:14] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512221XBCEJPQ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:14] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[19:15:14] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512137V3RCT3N
    [shop_id] => 504113848
)

============================================================

[19:15:14] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767122114
    [base_string] => 2009491/api/v2/order/get_order_detail1767122114eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 251802dd10b99a7f...
    [url_length] => 858
)

============================================================

[19:15:14] INFO: ⏳ Executando cURL...
============================================================

[19:15:15] INFO: ✅ cURL executado
============================================================

[19:15:15] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302dfcab520e0354455d00"}
    [curl_error] => 
)

============================================================

[19:15:15] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512137V3RCT3N
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302dfcab520e0354455d00"}
)

============================================================

[19:15:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512137V3RCT3N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:16] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[19:15:16] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JAAH3HN5
    [shop_id] => 1564423565
)

============================================================

[19:15:16] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1564423565
    [timestamp] => 1767122116
    [base_string] => 2009491/api/v2/order/get_order_detail1767122116eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3r_OkFIAEogMHQygYwzIWd7QY4AUAB.cwqOBPs-5rbuU3thWd6YF_LMb_ke-DmlQBkH9LCggTY1564423565
    [signature] => df23a840b9c370df...
    [url_length] => 859
)

============================================================

[19:15:16] INFO: ⏳ Executando cURL...
============================================================

[19:15:17] INFO: ✅ cURL executado
============================================================

[19:15:17] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":375743611,"buyer_username":"vini550","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765930366,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35251235473442000130550010000002241102517176","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8259q-mfu3otbv9dlbe2_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23899012031,"item_name":"Kit com 5 Bonecos Power Rangers – Aventura e Ação em Equipe!","item_sku":"DPX7379629291","main_item":false,"model_discounted_price":21,"model_id":0,"model_name":"","model_original_price":26.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":23899012031,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":765350707118080}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251217JAAH3HN5","order_status":"COMPLETED","package_list":[{"package_number":"OFG219629567104504","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23899012031,"model_id":0,"model_quantity":1,"order_item_id":23899012031,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765930409,"payment_method":"Pix","pickup_done_time":1766091403,"recipient_address":{"name":"V******e","phone":"******29","town":"","district":"Jardim Glória","city":"Limeira","state":"São Paulo","region":"BR","zipcode":"13487247","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":31.83,"update_time":1767117603}]},"request_id":"e3e3e7f347302e0db77a7d1aff952300:010002b9421e267d:00000096fcf3684f"}
    [curl_error] => 
)

============================================================

[19:15:17] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251217JAAH3HN5
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:15:17] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251217JAAH3HN5
)

============================================================

[19:15:17] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[19:15:17] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MSTT444N
    [shop_id] => 504113848
)

============================================================

[19:15:17] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767122117
    [base_string] => 2009491/api/v2/order/get_order_detail1767122117eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 638fff863aa38f38...
    [url_length] => 858
)

============================================================

[19:15:17] INFO: ⏳ Executando cURL...
============================================================

[19:15:18] INFO: ✅ cURL executado
============================================================

[19:15:18] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e26c2f4e594e35ea200"}
    [curl_error] => 
)

============================================================

[19:15:18] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218MSTT444N
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e26c2f4e594e35ea200"}
)

============================================================

[19:15:18] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MSTT444N
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:18] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251206M2XTX2F3
    [seller_id] => 541362656
    [user_id] => 113
    [status] => COMPLETED
)

============================================================

[19:15:18] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251206M2XTX2F3
    [shop_id] => 541362656
)

============================================================

[19:15:18] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 541362656
    [timestamp] => 1767122118
    [base_string] => 2009491/api/v2/order/get_order_detail1767122118eyJhbGciOiJIUzI1NiJ9.CJPTehABGOCTkoICIAEotsbNygYwrIeplQQ4AUAB.swoTVxXi_FmYsIz1p4u93x7NXDKCDjb2CxAtyZyXNcs541362656
    [signature] => 43ae3576bf9d95a2...
    [url_length] => 858
)

============================================================

[19:15:18] INFO: ⏳ Executando cURL...
============================================================

[19:15:19] INFO: ✅ cURL executado
============================================================

[19:15:19] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e377938af24dd340200"}
    [curl_error] => 
)

============================================================

[19:15:19] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251206M2XTX2F3
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e377938af24dd340200"}
)

============================================================

[19:15:19] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251206M2XTX2F3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:19] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PW8RS3FP
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[19:15:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PW8RS3FP
    [shop_id] => 504113848
)

============================================================

[19:15:19] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767122119
    [base_string] => 2009491/api/v2/order/get_order_detail1767122119eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 8f4c61cc1ccd3710...
    [url_length] => 858
)

============================================================

[19:15:19] INFO: ⏳ Executando cURL...
============================================================

[19:15:20] INFO: ✅ cURL executado
============================================================

[19:15:20] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e48b780866c91a6e500"}
    [curl_error] => 
)

============================================================

[19:15:20] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PW8RS3FP
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e48b780866c91a6e500"}
)

============================================================

[19:15:20] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PW8RS3FP
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:21] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251215CREKQUTN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[19:15:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251215CREKQUTN
    [shop_id] => 861037471
)

============================================================

[19:15:21] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767122121
    [base_string] => 2009491/api/v2/order/get_order_detail1767122121eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
    [signature] => ad7a95a0f7adbb8a...
    [url_length] => 858
)

============================================================

[19:15:21] INFO: ⏳ Executando cURL...
============================================================

[19:15:22] INFO: ✅ cURL executado
============================================================

[19:15:22] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e59d80320fe640f1600"}
    [curl_error] => 
)

============================================================

[19:15:22] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251215CREKQUTN
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e59d80320fe640f1600"}
)

============================================================

[19:15:22] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251215CREKQUTN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:22] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PM0UQEEM
    [seller_id] => 314867163
    [user_id] => 75
    [status] => COMPLETED
)

============================================================

[19:15:22] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PM0UQEEM
    [shop_id] => 314867163
)

============================================================

[19:15:22] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 314867163
    [timestamp] => 1767122122
    [base_string] => 2009491/api/v2/order/get_order_detail1767122122eyJhbGciOiJIUzI1NiJ9.CJPTehABGNv7kZYBIAEo88fJygYwi4WT7A44AUAB.hbIqZrgSbaj9Jrh1TsqCdo3iiAA7DQuFUNR9MqROYb4314867163
    [signature] => 67061441f81796f5...
    [url_length] => 858
)

============================================================

[19:15:22] INFO: ⏳ Executando cURL...
============================================================

[19:15:23] INFO: ✅ cURL executado
============================================================

[19:15:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e6ac143016eec7fc700"}
    [curl_error] => 
)

============================================================

[19:15:23] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PM0UQEEM
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e6ac143016eec7fc700"}
)

============================================================

[19:15:23] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PM0UQEEM
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:23] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PPYBSWM8
    [seller_id] => 392561929
    [user_id] => 554
    [status] => COMPLETED
)

============================================================

[19:15:23] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PPYBSWM8
    [shop_id] => 392561929
)

============================================================

[19:15:23] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 392561929
    [timestamp] => 1767122123
    [base_string] => 2009491/api/v2/order/get_order_detail1767122123eyJhbGciOiJIUzI1NiJ9.CJPTehABGImKmLsBIAEoieOXygYw3MeFhAk4AUAB.L8W21NJNua_briVHRX-PrIWjSRxhrfNgVrKljxSSQF8392561929
    [signature] => c9c29b2dad67021e...
    [url_length] => 858
)

============================================================

[19:15:23] INFO: ⏳ Executando cURL...
============================================================

[19:15:24] INFO: ✅ cURL executado
============================================================

[19:15:24] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e7b7b123e5d5d167400"}
    [curl_error] => 
)

============================================================

[19:15:24] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251219PPYBSWM8
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e7b7b123e5d5d167400"}
)

============================================================

[19:15:24] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251219PPYBSWM8
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:15:24] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [seller_id] => 1383494453
    [user_id] => 72
    [status] => COMPLETED
)

============================================================

[19:15:24] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [shop_id] => 1383494453
)

============================================================

[19:15:24] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1383494453
    [timestamp] => 1767122124
    [base_string] => 2009491/api/v2/order/get_order_detail1767122124eyJhbGciOiJIUzI1NiJ9.CJPTehABGLXm2ZMFIAEoj9emygYwqNKewQs4AUAB.3u-psO3gVCnOcUaqbtvxXB0P71p13-xxcBKTwoqI5ZE1383494453
    [signature] => b7048ec0400e8a0a...
    [url_length] => 859
)

============================================================

[19:15:24] INFO: ⏳ Executando cURL...
============================================================

[19:15:25] INFO: ✅ cURL executado
============================================================

[19:15:25] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e8c42e726566e189700"}
    [curl_error] => 
)

============================================================

[19:15:25] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251220UGDTU7D3
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347302e8c42e726566e189700"}
)

============================================================

[19:15:25] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251220UGDTU7D3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:24:53] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RUE97GMQ
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[19:24:53] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RUE97GMQ
    [shop_id] => 1603130895
)

============================================================

[19:24:53] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767122693
    [base_string] => 2009491/api/v2/order/get_order_detail1767122693eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw1603130895
    [signature] => 2eee01bd4988d8ff...
    [url_length] => 859
)

============================================================

[19:24:53] INFO: ⏳ Executando cURL...
============================================================

[19:24:54] INFO: ✅ cURL executado
============================================================

[19:24:54] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.39,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":660764553,"buyer_username":"luizalima657","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766154905,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.39,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mhuvrmvjwf7mc6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23499187237,"item_name":"Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":34,"model_id":0,"model_name":"","model_original_price":39.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23499187237,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":790815173952512}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219RUE97GMQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG219854105154211","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23499187237,"model_id":0,"model_quantity":1,"order_item_id":23499187237,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766154912,"payment_method":"Credit Card","pickup_done_time":1766440611,"recipient_address":{"name":"L******a","phone":"******33","town":"","district":"Freguesia (Jacarepaguá)","city":"Rio de Janeiro","state":"Rio de Janeiro","region":"BR","zipcode":"22745281","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34,"update_time":1767122686}]},"request_id":"e3e3e7f347305074edd7d6e534395e00:010002110cb7876c:00000006b9e41261"}
    [curl_error] => 
)

============================================================

[19:24:54] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219RUE97GMQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:24:54] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219RUE97GMQ
)

============================================================

[19:29:03] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216F27C4ETD
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[19:29:03] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216F27C4ETD
    [shop_id] => 1564423565
)

============================================================

[19:29:03] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1564423565
    [timestamp] => 1767122943
    [base_string] => 2009491/api/v2/order/get_order_detail1767122943eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3r_OkFIAEonMrQygYw6_jl_wM4AUAB.Ba11JIbx2p16o67S4-YM-oU8tPjkX-BM3Sb75DqmbKY1564423565
    [signature] => 021a2dc1a4ec088c...
    [url_length] => 859
)

============================================================

[19:29:03] INFO: ⏳ Executando cURL...
============================================================

[19:29:05] INFO: ✅ cURL executado
============================================================

[19:29:05] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":998961397,"buyer_username":"godryanzingamer","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765818592,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35251235473442000130550010000002221016251665","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8258b-mg2nc5eqk6j1e5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22399053877,"item_name":"Óculos 3D de Realidade Virtual VR Box + Controle Bluetooth","item_sku":"DPX5907801843","main_item":false,"model_discounted_price":84.88,"model_id":0,"model_name":"","model_original_price":121.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":22399053877,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":774854647676928}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216F27C4ETD","order_status":"COMPLETED","package_list":[{"package_number":"OFG219517792112936","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22399053877,"model_id":0,"model_quantity":1,"order_item_id":22399053877,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":382,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765818645,"payment_method":"Pix","pickup_done_time":1765989518,"recipient_address":{"name":"V******z","phone":"******61","town":"","district":"Santo Hilário","city":"Goiânia","state":"Goiás","region":"BR","zipcode":"74780170","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765940399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":84.88,"update_time":1767122937}]},"request_id":"e3e3e7f347305f633aa84a9313f5d600:0100026a1f569197:000000dd52643723"}
    [curl_error] => 
)

============================================================

[19:29:05] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216F27C4ETD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:29:05] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216F27C4ETD
)

============================================================

[19:29:05] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [seller_id] => 407782497
    [user_id] => 24
    [status] => COMPLETED
)

============================================================

[19:29:05] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [shop_id] => 407782497
)

============================================================

[19:29:05] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 407782497
    [timestamp] => 1767122945
    [base_string] => 2009491/api/v2/order/get_order_detail1767122945eyJhbGciOiJIUzI1NiJ9.CJPTehABGOGIucIBIAEo76bQygYwpcnPxwo4AUAB.a9B4yzpKy6IDbKHTpMz8_asWL0BPLG-IKiLtq1k6-Mw407782497
    [signature] => 7c82429bcd24aee8...
    [url_length] => 858
)

============================================================

[19:29:05] INFO: ⏳ Executando cURL...
============================================================

[19:29:06] INFO: ✅ cURL executado
============================================================

[19:29:06] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1118189672,"buyer_username":"fabriciokadmosantosdeluc","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766263989,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"33251263517899000134550010000002711232521235","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-meexmcxffpxd60_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798746210,"item_name":"Cozimento a Vapor Cesto Inox Fruteira Banho Maria - Dieta Saudável, Praticidade e Sabor no seu dia a dia","item_sku":"DPX9337943364","main_item":false,"model_discounted_price":24.9,"model_id":0,"model_name":"","model_original_price":24.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798746210,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251221V118RDNN","order_status":"COMPLETED","package_list":[{"package_number":"OFG219963189125720","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798746210,"model_id":0,"model_quantity":1,"order_item_id":23798746210,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1320,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766264005,"payment_method":"SParcelado","pickup_done_time":1766440611,"recipient_address":{"name":"F******e","phone":"******28","town":"","district":"Diadema","city":"Nova Venécia","state":"Espírito Santo","region":"BR","zipcode":"29830000","full_address":"Id******"},"region":"BR","return_request_due_date":1767543314,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":32.25,"update_time":1767122940}]},"request_id":"e3e3e7f347305f7c9fa3aa76a1914a00:0100020ac7910331:000000cddb1c35d2"}
    [curl_error] => 
)

============================================================

[19:29:06] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251221V118RDNN
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:29:06] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251221V118RDNN
)

============================================================

[19:30:11] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220T2064F0D
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[19:30:11] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220T2064F0D
    [shop_id] => 861037471
)

============================================================

[19:30:11] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767123011
    [base_string] => 2009491/api/v2/order/get_order_detail1767123011eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEopN6qygYwnJX-nQ04AUAB.0grNiX5R8DRvPJT21ZJCdTH4D7c1JSUWRtC_6lcvOKk861037471
    [signature] => f7f6457aee2279fa...
    [url_length] => 858
)

============================================================

[19:30:11] INFO: ⏳ Executando cURL...
============================================================

[19:30:12] INFO: ✅ cURL executado
============================================================

[19:30:12] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347306371bbc89cbf94ff5400"}
    [curl_error] => 
)

============================================================

[19:30:12] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251220T2064F0D
    [error] => API retornou HTTP 403: {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347306371bbc89cbf94ff5400"}
)

============================================================

[19:30:12] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251220T2064F0D
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:58:59] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SQGWAC8D
    [seller_id] => 635337797
    [user_id] => 15
    [status] => COMPLETED
)

============================================================

[19:58:59] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SQGWAC8D
    [shop_id] => 635337797
)

============================================================

[19:58:59] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 635337797
    [timestamp] => 1767124739
    [base_string] => 2009491/api/v2/order/get_order_detail1767124739eyJhbGciOiJIUzI1NiJ9.CJPTehABGMX4-a4CIAEohqCnygYwncao5w84AUAB.2afMQm5o3Y_abuI5kzKvEnDgh6Gxzo8IYAiXSnCdlyw635337797
    [signature] => 9e3d408708af0511...
    [url_length] => 858
)

============================================================

[19:58:59] INFO: ⏳ Executando cURL...
============================================================

[19:59:00] INFO: ✅ cURL executado
============================================================

[19:59:00] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34730ca6f1a5aa76bd807ac00"}
    [curl_error] => 
)

============================================================

[19:59:00] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:59:00] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:59:00] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 635337797
    [user_id] => 15
)

============================================================

[20:12:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BA6350MW
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[20:12:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BA6350MW
    [shop_id] => 526192906
)

============================================================

[20:12:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767125551
    [base_string] => 2009491/api/v2/order/get_order_detail1767125551eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo0tDQygYwoeGGzgw4AUAB.06SdlFwYUmZdjD5yhsG-NrBvcAYvr1EB-tb8YhdSlQs526192906
    [signature] => b326faf702dbe171...
    [url_length] => 858
)

============================================================

[20:12:31] INFO: ⏳ Executando cURL...
============================================================

[20:12:33] INFO: ✅ cURL executado
============================================================

[20:12:33] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":766488649,"buyer_username":"estherbarros838","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766689699,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-man8aurm95a17d_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23298284685,"item_name":"Processador De Alimentos 2 Em 1 Sem Fio Multiprocessador","item_sku":"DPX8759738900","main_item":false,"model_discounted_price":59.95,"model_id":0,"model_name":"","model_original_price":59.95,"model_quantity_purchased":2,"model_sku":"","order_item_id":23298284685,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BA6350MW","order_status":"COMPLETED","package_list":[{"package_number":"OFG220388900173320","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23298284685,"model_id":0,"model_quantity":2,"order_item_id":23298284685,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2667,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766689705,"payment_method":"Credit Card","pickup_done_time":1766772572,"recipient_address":{"name":"E******s","phone":"******82","town":"","district":"Porto Canoa","city":"Serra","state":"Espírito Santo","region":"BR","zipcode":"29168603","full_address":"Ru******"},"region":"BR","return_request_due_date":1767648753,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":119.9,"update_time":1767125252}]},"request_id":"e3e3e7f34730fad1f393b3fb6bbb4600:010002ffec98ceed:00000016c9f059d0"}
    [curl_error] => 
)

============================================================

[20:12:33] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[20:12:33] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BA6350MW
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[20:12:33] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251226BA6350MW
)

============================================================

[20:12:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220U0XA1HTV
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[20:12:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220U0XA1HTV
    [shop_id] => 504113848
)

============================================================

[20:12:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767125558
    [base_string] => 2009491/api/v2/order/get_order_detail1767125558eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => 3bed515eb20e8e6b...
    [url_length] => 858
)

============================================================

[20:12:38] INFO: ⏳ Executando cURL...
============================================================

[20:12:39] INFO: ✅ cURL executado
============================================================

[20:12:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34730fb3762fb1eb72d25c900"}
    [curl_error] => 
)

============================================================

[20:12:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:12:39] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:12:39] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 504113848
    [user_id] => 519
)

============================================================

[20:16:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219Q43Y02C8
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[20:16:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219Q43Y02C8
    [shop_id] => 526192906
)

============================================================

[20:16:01] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767125761
    [base_string] => 2009491/api/v2/order/get_order_detail1767125761eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo0tDQygYwoeGGzgw4AUAB.06SdlFwYUmZdjD5yhsG-NrBvcAYvr1EB-tb8YhdSlQs526192906
    [signature] => 7d293f679c1274fd...
    [url_length] => 858
)

============================================================

[20:16:01] INFO: ⏳ Executando cURL...
============================================================

[20:16:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219Q43Y02C8
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[20:16:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219Q43Y02C8
    [shop_id] => 526192906
)

============================================================

[20:16:01] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767125761
    [base_string] => 2009491/api/v2/order/get_order_detail1767125761eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo0tDQygYwoeGGzgw4AUAB.06SdlFwYUmZdjD5yhsG-NrBvcAYvr1EB-tb8YhdSlQs526192906
    [signature] => 7d293f679c1274fd...
    [url_length] => 858
)

============================================================

[20:16:01] INFO: ⏳ Executando cURL...
============================================================

[20:16:02] INFO: ✅ cURL executado
============================================================

[20:16:02] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1678923072,"buyer_username":"michellyvanesca","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766095502,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg08d2bfjw1x09_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22799043289,"item_name":"Kit 5 Faixa Elástica Super Mini Band Para Treino Exercício","item_sku":"DPX5343670684","main_item":false,"model_discounted_price":49.95,"model_id":0,"model_name":"","model_original_price":49.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":22799043289,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219Q43Y02C8","order_status":"COMPLETED","package_list":[{"package_number":"OFG219794703117822","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22799043289,"model_id":0,"model_quantity":1,"order_item_id":22799043289,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766095581,"payment_method":"Pix","pickup_done_time":1766177087,"recipient_address":{"name":"M******s","phone":"******38","town":"","district":"Centro","city":"Boquim","state":"Sergipe","region":"BR","zipcode":"49360000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":49.95,"update_time":1767125753}]},"request_id":"e3e3e7f3473107588a7ea8c86d606500:010002bc9846d246:0000006da4d5bf80"}
    [curl_error] => 
)

============================================================

[20:16:02] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[20:16:02] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219Q43Y02C8
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[20:16:02] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219Q43Y02C8
)

============================================================

[20:16:02] INFO: ✅ cURL executado
============================================================

[20:16:02] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1678923072,"buyer_username":"michellyvanesca","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766095502,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg08d2bfjw1x09_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22799043289,"item_name":"Kit 5 Faixa Elástica Super Mini Band Para Treino Exercício","item_sku":"DPX5343670684","main_item":false,"model_discounted_price":49.95,"model_id":0,"model_name":"","model_original_price":49.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":22799043289,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219Q43Y02C8","order_status":"COMPLETED","package_list":[{"package_number":"OFG219794703117822","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22799043289,"model_id":0,"model_quantity":1,"order_item_id":22799043289,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766095581,"payment_method":"Pix","pickup_done_time":1766177087,"recipient_address":{"name":"M******s","phone":"******38","town":"","district":"Centro","city":"Boquim","state":"Sergipe","region":"BR","zipcode":"49360000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":49.95,"update_time":1767125753}]},"request_id":"e3e3e7f347310758f1e86ef6d44f2600:010002832d885193:000000248d9df22a"}
    [curl_error] => 
)

============================================================

[20:16:02] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[20:16:02] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219Q43Y02C8
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[20:16:02] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219Q43Y02C8
)

============================================================

[20:18:08] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512221XBCEJPQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[20:18:08] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512221XBCEJPQ
    [shop_id] => 504113848
)

============================================================

[20:18:08] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767125888
    [base_string] => 2009491/api/v2/order/get_order_detail1767125888eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoiIK3ygYwvdqvtw04AUAB.MaETyHTsda4P6p8h__N_a-DmPsUy7Tuhqzl-4yvBdkc504113848
    [signature] => ba7a0caa868500f0...
    [url_length] => 858
)

============================================================

[20:18:08] INFO: ⏳ Executando cURL...
============================================================

[20:18:08] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251228JFMX6JA3
    [seller_id] => 320417540
    [user_id] => 93
    [status] => COMPLETED
)

============================================================

[20:18:08] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251228JFMX6JA3
    [shop_id] => 320417540
)

============================================================

[20:18:08] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 320417540
    [timestamp] => 1767125888
    [base_string] => 2009491/api/v2/order/get_order_detail1767125888eyJhbGciOiJIUzI1NiJ9.CJPTehABGITe5JgBIAEo_qzPygYw8ICuhAo4AUAB.MlLjDZi0gSq2k2v2TZo2hXqu0DhqwdNwmO_PgI4YI-A320417540
    [signature] => cba649b89f67d348...
    [url_length] => 858
)

============================================================

[20:18:08] INFO: ⏳ Executando cURL...
============================================================

[20:18:09] INFO: ✅ cURL executado
============================================================

[20:18:09] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347310ee141b38df1222fca00"}
    [curl_error] => 
)

============================================================

[20:18:09] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:18:09] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:18:09] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 504113848
    [user_id] => 519
)

============================================================

[20:18:09] INFO: ✅ cURL executado
============================================================

[20:18:09] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347310ee2291de7a8d2d5d700"}
    [curl_error] => 
)

============================================================

[20:18:09] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:18:09] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:18:09] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 320417540
    [user_id] => 93
)

============================================================

[20:19:11] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SQGWAC8D
    [seller_id] => 635337797
    [user_id] => 15
    [status] => COMPLETED
)

============================================================

[20:19:11] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SQGWAC8D
    [shop_id] => 635337797
)

============================================================

[20:19:11] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 635337797
    [timestamp] => 1767125951
    [base_string] => 2009491/api/v2/order/get_order_detail1767125951eyJhbGciOiJIUzI1NiJ9.CJPTehABGMX4-a4CIAEohqCnygYwncao5w84AUAB.2afMQm5o3Y_abuI5kzKvEnDgh6Gxzo8IYAiXSnCdlyw635337797
    [signature] => 9121ef64a96a7da6...
    [url_length] => 858
)

============================================================

[20:19:11] INFO: ⏳ Executando cURL...
============================================================

[20:19:12] INFO: ✅ cURL executado
============================================================

[20:19:12] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473112acba28b318cc84b800"}
    [curl_error] => 
)

============================================================

[20:19:12] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:19:12] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:19:12] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 635337797
    [user_id] => 15
)

============================================================

[20:29:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251228JFMX6JA3
    [seller_id] => 320417540
    [user_id] => 93
    [status] => COMPLETED
)

============================================================

[20:29:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251228JFMX6JA3
    [shop_id] => 320417540
)

============================================================

[20:29:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 320417540
    [timestamp] => 1767126586
    [base_string] => 2009491/api/v2/order/get_order_detail1767126586eyJhbGciOiJIUzI1NiJ9.CJPTehABGITe5JgBIAEo_qzPygYw8ICuhAo4AUAB.MlLjDZi0gSq2k2v2TZo2hXqu0DhqwdNwmO_PgI4YI-A320417540
    [signature] => c9abfe60e4318a07...
    [url_length] => 858
)

============================================================

[20:29:46] INFO: ⏳ Executando cURL...
============================================================

[20:29:47] INFO: ✅ cURL executado
============================================================

[20:29:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347313881dd048c8e04855600"}
    [curl_error] => 
)

============================================================

[20:29:47] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:29:47] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:29:47] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 320417540
    [user_id] => 93
)

============================================================

[21:12:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [seller_id] => 1383494453
    [user_id] => 72
    [status] => COMPLETED
)

============================================================

[21:12:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [shop_id] => 1383494453
)

============================================================

[21:12:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1383494453
    [timestamp] => 1767129159
    [base_string] => 2009491/api/v2/order/get_order_detail1767129159eyJhbGciOiJIUzI1NiJ9.CJPTehABGLXm2ZMFIAEoqvnQygYwpYmZoAI4AUAB.E3xZuihYcdXcDJME4DjW-Rm7pWdYeFZ1xN8gN-xyK-Y1383494453
    [signature] => 361e4ad3247bdc8d...
    [url_length] => 859
)

============================================================

[21:12:39] INFO: ⏳ Executando cURL...
============================================================

[21:12:41] INFO: ✅ cURL executado
============================================================

[21:12:41] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1606436832,"buyer_username":"zyf0_jsmad","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766246157,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rffu-m4ao3mvtyuo8d4_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23098104040,"item_name":"Máquina de Boxe Musical Bluetooth Treino Com Luvas Agilidade Soco Fitness Esporte Academia Exercício","item_sku":"GH-6734701","main_item":false,"model_discounted_price":224.7,"model_id":0,"model_name":"","model_original_price":224.7,"model_quantity_purchased":1,"model_sku":"","order_item_id":23098104040,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220UGDTU7D3","order_status":"COMPLETED","package_list":[{"package_number":"OFG219945357116656","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23098104040,"model_id":0,"model_quantity":1,"order_item_id":23098104040,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766246290,"payment_method":"Pix","pickup_done_time":1766440611,"recipient_address":{"name":"F******a","phone":"******62","town":"","district":"Centro","city":"São Francisco do Conde","state":"Bahia","region":"BR","zipcode":"43900000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":10,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":239.18,"update_time":1767118064}]},"request_id":"e3e3e7f34731d1e2a997cea0bb70c000:010002f4b3df888e:000000e501d412e0"}
    [curl_error] => 
)

============================================================

[21:12:41] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:41] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220UGDTU7D3
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:41] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220UGDTU7D3
)

============================================================

[21:12:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[21:12:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [shop_id] => 861037471
)

============================================================

[21:12:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767129161
    [base_string] => 2009491/api/v2/order/get_order_detail1767129161eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 31b37d164bb5992c...
    [url_length] => 858
)

============================================================

[21:12:41] INFO: ⏳ Executando cURL...
============================================================

[21:12:42] INFO: ✅ cURL executado
============================================================

[21:12:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":528947866,"buyer_username":"mxe76x0as3","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766626358,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2469","series_number":"3","access_key":"33251254881101000148550030000024691871601615","issue_date":1766626422,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512259F6BG77W","order_status":"COMPLETED","package_list":[{"package_number":"OFG220325558120198","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766626391,"payment_method":"Pix","pickup_done_time":1766762857,"recipient_address":{"name":"M******s","phone":"******32","town":"","district":"Jardim Santo André","city":"Santo André","state":"São Paulo","region":"BR","zipcode":"09132699","full_address":"Tv******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.74,"update_time":1767118535}]},"request_id":"e3e3e7f34731d1f825af0bfe2182fd00:0100022059d023e5:000000428532d5ff"}
    [curl_error] => 
)

============================================================

[21:12:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:42] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512259F6BG77W
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:42] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512259F6BG77W
)

============================================================

[21:12:42] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:42] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [shop_id] => 504113848
)

============================================================

[21:12:42] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129162
    [base_string] => 2009491/api/v2/order/get_order_detail1767129162eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 6cf0e0e945e77f4b...
    [url_length] => 858
)

============================================================

[21:12:42] INFO: ⏳ Executando cURL...
============================================================

[21:12:43] INFO: ✅ cURL executado
============================================================

[21:12:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.92,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":372278231,"buyer_username":"bdm2019","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765997597,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.92,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19891","series_number":"5","access_key":"41251232111081000193550050000198911830925695","issue_date":1765997918,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218M8X5HE6U","order_status":"COMPLETED","package_list":[{"package_number":"OFG219696797110819","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765997604,"payment_method":"Credit Card","pickup_done_time":1766075739,"recipient_address":{"name":"B******a","phone":"******35","town":"","district":"Parque Piratininga","city":"Itaquaquecetuba","state":"São Paulo","region":"BR","zipcode":"08583260","full_address":"R ******"},"region":"BR","return_request_due_date":1767378797,"reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767119847}]},"request_id":"e3e3e7f34731d20f20ff507c6cd21200:01000276e35315f9:000000b999b58f88"}
    [curl_error] => 
)

============================================================

[21:12:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:43] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218M8X5HE6U
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:43] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218M8X5HE6U
)

============================================================

[21:12:43] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:43] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [shop_id] => 504113848
)

============================================================

[21:12:43] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129163
    [base_string] => 2009491/api/v2/order/get_order_detail1767129163eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 2cc3d850802ccd62...
    [url_length] => 858
)

============================================================

[21:12:43] INFO: ⏳ Executando cURL...
============================================================

[21:12:45] INFO: ✅ cURL executado
============================================================

[21:12:45] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":22.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1343303880,"buyer_username":"luanaduarte824","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766070420,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":22.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19981","series_number":"5","access_key":"41251232111081000193550050000199811695024574","issue_date":1766142447,"total_value":4.11,"products_total_value":4.11,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rcfb-m6jyvhsn13qh25_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23193729090,"item_name":"Fita Dupla Face Transparente Extra Forte 12mm x 2m Adere","item_sku":"13506939461","main_item":false,"model_discounted_price":13.99,"model_id":238780794768,"model_name":"12mm x 2 m","model_original_price":13.99,"model_quantity_purchased":1,"model_sku":"13506939461-12mm x 2 m","order_item_id":23193729090,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.05,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rasn-mamv5aakmonk94_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998560376,"item_name":"Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report","item_sku":"SENINHA4COLO","main_item":false,"model_discounted_price":12.06,"model_id":199608168335,"model_name":"Report (Azul 100 fls)","model_original_price":18,"model_quantity_purchased":1,"model_sku":"A4AZUL","order_item_id":23998560376,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218PCREXWPK","order_status":"COMPLETED","package_list":[{"package_number":"OFG219769620156191","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":23193729090,"model_id":238780794768,"model_quantity":1,"order_item_id":23193729090,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":23998560376,"model_id":199608168335,"model_quantity":1,"order_item_id":23998560376,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":4200,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766070429,"payment_method":"Credit Card","pickup_done_time":1766162480,"recipient_address":{"name":"L******e","phone":"******95","town":"","district":"Salgado Filho","city":"Salgado Filho","state":"Paraná","region":"BR","zipcode":"85620125","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":63.7,"update_time":1767119851}]},"request_id":"e3e3e7f34731d2247544f6e1477bc200:0100021cf57b3bd7:0000002b7fc8898e"}
    [curl_error] => 
)

============================================================

[21:12:45] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:45] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218PCREXWPK
    [order_status] => COMPLETED
    [items_count] => 3
)

============================================================

[21:12:45] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218PCREXWPK
)

============================================================

[21:12:45] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[21:12:45] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [shop_id] => 861037471
)

============================================================

[21:12:45] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767129165
    [base_string] => 2009491/api/v2/order/get_order_detail1767129165eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 3b4e3202022ad5f1...
    [url_length] => 858
)

============================================================

[21:12:45] INFO: ⏳ Executando cURL...
============================================================

[21:12:46] INFO: ✅ cURL executado
============================================================

[21:12:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1057587325,"buyer_username":"flaviocanidia","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766715670,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2494","series_number":"3","access_key":"33251254881101000148550030000024941353263480","issue_date":1766715825,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226C2C31JCN","order_status":"COMPLETED","package_list":[{"package_number":"OFG220414870194982","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766715709,"payment_method":"Pix","pickup_done_time":1766762855,"recipient_address":{"name":"F******s","phone":"******50","town":"","district":"Vila Embratel","city":"São Luís","state":"Maranhão","region":"BR","zipcode":"65081435","full_address":"2ª******"},"region":"BR","return_request_due_date":1767724237,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":26.26,"update_time":1767119673}]},"request_id":"e3e3e7f34731d23add218d1585d0e500:0100021470a6e5ef:000000a0b8c16214"}
    [curl_error] => 
)

============================================================

[21:12:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:46] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226C2C31JCN
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:46] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226C2C31JCN
)

============================================================

[21:12:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [shop_id] => 504113848
)

============================================================

[21:12:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129166
    [base_string] => 2009491/api/v2/order/get_order_detail1767129166eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 2198694e95de276e...
    [url_length] => 858
)

============================================================

[21:12:46] INFO: ⏳ Executando cURL...
============================================================

[21:12:48] INFO: ✅ cURL executado
============================================================

[21:12:48] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1241116294,"buyer_username":"liannamoreira","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766076197,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19995","series_number":"5","access_key":"41251232111081000193550050000199951458008880","issue_date":1766142469,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219PJ4KDNMY","order_status":"COMPLETED","package_list":[{"package_number":"OFG219775397184194","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766076204,"payment_method":"Credit Card","pickup_done_time":1766162389,"recipient_address":{"name":"L******a","phone":"******54","town":"","district":"Centro","city":"Juiz de Fora","state":"Minas Gerais","region":"BR","zipcode":"36035000","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.01,"update_time":1767123316}]},"request_id":"e3e3e7f34731d250bcb25535c9674600:010002b76172d891:000000f400cf54be"}
    [curl_error] => 
)

============================================================

[21:12:48] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:48] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219PJ4KDNMY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:48] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251219PJ4KDNMY
)

============================================================

[21:12:48] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [shop_id] => 504113848
)

============================================================

[21:12:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129168
    [base_string] => 2009491/api/v2/order/get_order_detail1767129168eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => e4b44d8be2fe94e3...
    [url_length] => 858
)

============================================================

[21:12:48] INFO: ⏳ Executando cURL...
============================================================

[21:12:49] INFO: ✅ cURL executado
============================================================

[21:12:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":376168877,"buyer_username":"marcioraffagnato","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766702274,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20664","series_number":"5","access_key":"41251232111081000193550050000206641824836320","issue_date":1766702327,"total_value":3.75,"products_total_value":3.75,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra3w-mbijn7fw1khh4b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":37.52,"model_id":159785139715,"model_name":"36 cores","model_original_price":56,"model_quantity_purchased":1,"model_sku":"CANE36CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BNVUJYEK","order_status":"COMPLETED","package_list":[{"package_number":"OFG220401474124639","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139715,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766702294,"payment_method":"SParcelado","pickup_done_time":1766758111,"recipient_address":{"name":"M******o","phone":"******96","town":"","district":"Granjas Cabuçu (Manilha)","city":"Itaboraí","state":"Rio de Janeiro","region":"BR","zipcode":"24860472","full_address":"Ru******"},"region":"BR","return_request_due_date":1767625319,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":37.52,"update_time":1767123329}]},"request_id":"e3e3e7f34731d2664a13a22552e37300:01000235a0cf577c:000000d986cfa59b"}
    [curl_error] => 
)

============================================================

[21:12:49] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:49] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BNVUJYEK
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:49] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226BNVUJYEK
)

============================================================

[21:12:49] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:49] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [shop_id] => 504113848
)

============================================================

[21:12:49] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129169
    [base_string] => 2009491/api/v2/order/get_order_detail1767129169eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 870350608e0f5c81...
    [url_length] => 858
)

============================================================

[21:12:49] INFO: ⏳ Executando cURL...
============================================================

[21:12:51] INFO: ✅ cURL executado
============================================================

[21:12:51] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":650330518,"buyer_username":"julianapaulla067","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766529989,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20553","series_number":"5","access_key":"41251232111081000193550050000205531767171027","issue_date":1766530121,"total_value":1.4,"products_total_value":1.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":13.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512246NEAVJFD","order_status":"COMPLETED","package_list":[{"package_number":"OFG220229188191234","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766530078,"payment_method":"Pix","pickup_done_time":1766757977,"recipient_address":{"name":"J******s","phone":"******18","town":"","district":"Parque Eldorado","city":"Campos dos Goytacazes","state":"Rio de Janeiro","region":"BR","zipcode":"28090640","full_address":"Ru******"},"region":"BR","return_request_due_date":1767724142,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":13.99,"update_time":1767123327}]},"request_id":"e3e3e7f34731d27bd66b9a18113a7400:0100028cffe4c4cf:0000007750276525"}
    [curl_error] => 
)

============================================================

[21:12:51] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:51] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512246NEAVJFD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:51] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512246NEAVJFD
)

============================================================

[21:12:51] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:51] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [shop_id] => 504113848
)

============================================================

[21:12:51] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129171
    [base_string] => 2009491/api/v2/order/get_order_detail1767129171eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => cc2cb379d2bc6db2...
    [url_length] => 858
)

============================================================

[21:12:51] INFO: ⏳ Executando cURL...
============================================================

[21:12:52] INFO: ✅ cURL executado
============================================================

[21:12:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":975331026,"buyer_username":"francielediniz846","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766505300,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20516","series_number":"5","access_key":"41251232111081000193550050000205161259227580","issue_date":1766505518,"total_value":1.54,"products_total_value":1.54,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra2s-mbijn60k3a1935_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":15.41,"model_id":159785139713,"model_name":"12 cores","model_original_price":23,"model_quantity_purchased":1,"model_sku":"CANE12CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512235XEHM7XQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220204500112503","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139713,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766505349,"payment_method":"Pix","pickup_done_time":1766758106,"recipient_address":{"name":"F******z","phone":"******45","town":"","district":"Posse","city":"Petrópolis","state":"Rio de Janeiro","region":"BR","zipcode":"25770460","full_address":"Es******"},"region":"BR","return_request_due_date":1767724924,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.41,"update_time":1767123327}]},"request_id":"e3e3e7f34731d290f1849d2f6f522100:0100023a010cad8b:00000062d2a68465"}
    [curl_error] => 
)

============================================================

[21:12:52] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:52] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512235XEHM7XQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:52] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[21:12:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:12:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [shop_id] => 504113848
)

============================================================

[21:12:52] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767129172
    [base_string] => 2009491/api/v2/order/get_order_detail1767129172eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 9771111f9534cc7f...
    [url_length] => 858
)

============================================================

[21:12:52] INFO: ⏳ Executando cURL...
============================================================

[21:12:53] INFO: ✅ cURL executado
============================================================

[21:12:53] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":331621760,"buyer_username":"amaandaakelly","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766174390,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20141","series_number":"5","access_key":"41251232111081000193550050000201411159497667","issue_date":1766174621,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SDK0FF0A","order_status":"COMPLETED","package_list":[{"package_number":"OFG219873591143550","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766174397,"payment_method":"Credit Card","pickup_done_time":1766422665,"recipient_address":{"name":"A******a","phone":"******45","town":"","district":"Chácara Italago","city":"Itapecerica da Serra","state":"São Paulo","region":"BR","zipcode":"06866670","full_address":"Ru******"},"region":"BR","return_request_due_date":1767725381,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":14.06,"update_time":1767123320}]},"request_id":"e3e3e7f34731d2a698d4667b243eb500:01000221f8a1e8f4:0000000c6fa805c6"}
    [curl_error] => 
)

============================================================

[21:12:53] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:12:53] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SDK0FF0A
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:12:53] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SDK0FF0A
)

============================================================

[21:12:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [seller_id] => 796461485
    [user_id] => 581
    [status] => COMPLETED
)

============================================================

[21:12:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[21:12:58] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767129178
    [base_string] => 2009491/api/v2/order/get_order_detail1767129178eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo4biXygYwjpqauQo4AUAB.Yyb17c6rIPthIfidV4A-RGpR-bCcwhJW4ioJWoX_KF0796461485
    [signature] => dbcd26bfe07b1fd5...
    [url_length] => 858
)

============================================================

[21:12:58] INFO: ⏳ Executando cURL...
============================================================

[21:12:59] INFO: ✅ cURL executado
============================================================

[21:12:59] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34731d30922d2901e9bc60500"}
    [curl_error] => 
)

============================================================

[21:12:59] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:12:59] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:12:59] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 796461485
    [user_id] => 581
)

============================================================

[21:14:28] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221VFTG5X29
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[21:14:28] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221VFTG5X29
    [shop_id] => 411294579
)

============================================================

[21:14:28] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767129268
    [base_string] => 2009491/api/v2/order/get_order_detail1767129268eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEohbXQygYwm7GZkg04AUAB.kzcM8j6wgEzXJpa5dbhlVx9iUbJ8CcFJ7sghRFv-LUU411294579
    [signature] => a27878d9a8cbfc50...
    [url_length] => 858
)

============================================================

[21:14:28] INFO: ⏳ Executando cURL...
============================================================

[21:14:29] INFO: ✅ cURL executado
============================================================

[21:14:29] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":377046176,"buyer_username":"claudiobeka","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766279868,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821f4-mgy1x7e440lm0e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22199196367,"item_name":"Título: Kit 10 Adesivos Detox para os Pés – Elimine Toxinas e Recupere sua Energia Natural","item_sku":"DPX4071589598","main_item":false,"model_discounted_price":21.24,"model_id":0,"model_name":"","model_original_price":23.73,"model_quantity_purchased":1,"model_sku":"","order_item_id":22199196367,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.09,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251221VFTG5X29","order_status":"COMPLETED","package_list":[{"package_number":"OFG219979068186113","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22199196367,"model_id":0,"model_quantity":1,"order_item_id":22199196367,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":300,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766280082,"payment_method":"Pix","pickup_done_time":1766430717,"recipient_address":{"name":"C******a","phone":"******02","town":"","district":"Jardim Fogaça","city":"Itapetininga","state":"São Paulo","region":"BR","zipcode":"18202350","full_address":"Ru******"},"region":"BR","return_request_due_date":1767720132,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":20.6,"update_time":1767125581}]},"request_id":"e3e3e7f34731d85e3e76da64811a0a00:0100024ec1001f4a:000000edffbd5ed3"}
    [curl_error] => 
)

============================================================

[21:14:29] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:14:29] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251221VFTG5X29
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:14:29] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251221VFTG5X29
)

============================================================

[21:50:19] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221VFTG5X29
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[21:50:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221VFTG5X29
    [shop_id] => 411294579
)

============================================================

[21:50:19] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767131419
    [base_string] => 2009491/api/v2/order/get_order_detail1767131419eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEo7YnRygYwl7rSmAU4AUAB.IETWWEuCH7zhPZC6Xj2XtoiQ1jtLkeW66Fns_itgK48411294579
    [signature] => d98ad9f1937b229b...
    [url_length] => 858
)

============================================================

[21:50:19] INFO: ⏳ Executando cURL...
============================================================

[21:50:21] INFO: ✅ cURL executado
============================================================

[21:50:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":377046176,"buyer_username":"claudiobeka","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766279868,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821f4-mgy1x7e440lm0e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22199196367,"item_name":"Título: Kit 10 Adesivos Detox para os Pés – Elimine Toxinas e Recupere sua Energia Natural","item_sku":"DPX4071589598","main_item":false,"model_discounted_price":21.24,"model_id":0,"model_name":"","model_original_price":23.73,"model_quantity_purchased":1,"model_sku":"","order_item_id":22199196367,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.09,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251221VFTG5X29","order_status":"COMPLETED","package_list":[{"package_number":"OFG219979068186113","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22199196367,"model_id":0,"model_quantity":1,"order_item_id":22199196367,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":300,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766280082,"payment_method":"Pix","pickup_done_time":1766430717,"recipient_address":{"name":"C******a","phone":"******02","town":"","district":"Jardim Fogaça","city":"Itapetininga","state":"São Paulo","region":"BR","zipcode":"18202350","full_address":"Ru******"},"region":"BR","return_request_due_date":1767720132,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":20.6,"update_time":1767125581}]},"request_id":"e3e3e7f34732589b9a3c0dca870a3600:0100026ef0594a34:000000d0f386a461"}
    [curl_error] => 
)

============================================================

[21:50:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:50:21] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251221VFTG5X29
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:50:21] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251221VFTG5X29
)

============================================================

[21:50:21] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251221VFTG5X29.json
============================================================

[21:50:21] INFO: 📦 Item #0
Array
(
    [item_name] => Título: Kit 10 Adesivos Detox para os Pés – Elimine Toxinas e Recupere sua Energia Natural
    [item_sku] => DPX4071589598
    [model_sku] => 
    [sku_usado] => DPX4071589598
    [tem_dpx] => 1
)

============================================================

[21:50:21] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251221VFTG5X29
)

============================================================

[21:50:21] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219Q43Y02C8
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[21:50:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219Q43Y02C8
    [shop_id] => 526192906
)

============================================================

[21:50:21] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767131421
    [base_string] => 2009491/api/v2/order/get_order_detail1767131421eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo0YHRygYwzdr75gI4AUAB.65ytMel10Du3a7G7pWnFhrW-Rt4UCi8hhuTL5qQckvg526192906
    [signature] => f8098dd568cc5d43...
    [url_length] => 858
)

============================================================

[21:50:21] INFO: ⏳ Executando cURL...
============================================================

[21:50:23] INFO: ✅ cURL executado
============================================================

[21:50:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1678923072,"buyer_username":"michellyvanesca","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766095502,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg08d2bfjw1x09_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22799043289,"item_name":"Kit 5 Faixa Elástica Super Mini Band Para Treino Exercício","item_sku":"DPX5343670684","main_item":false,"model_discounted_price":49.95,"model_id":0,"model_name":"","model_original_price":49.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":22799043289,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219Q43Y02C8","order_status":"COMPLETED","package_list":[{"package_number":"OFG219794703117822","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22799043289,"model_id":0,"model_quantity":1,"order_item_id":22799043289,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766095581,"payment_method":"Pix","pickup_done_time":1766177087,"recipient_address":{"name":"M******s","phone":"******38","town":"","district":"Centro","city":"Boquim","state":"Sergipe","region":"BR","zipcode":"49360000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":49.95,"update_time":1767125773}]},"request_id":"e3e3e7f3473258b5bef62e39c2251c00:0100028e8b553b70:000000382982a542"}
    [curl_error] => 
)

============================================================

[21:50:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:50:23] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219Q43Y02C8
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:50:23] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219Q43Y02C8
)

============================================================

[21:50:23] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219Q43Y02C8.json
============================================================

[21:50:23] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 5 Faixa Elástica Super Mini Band Para Treino Exercício
    [item_sku] => DPX5343670684
    [model_sku] => 
    [sku_usado] => DPX5343670684
    [tem_dpx] => 1
)

============================================================

[21:50:23] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219Q43Y02C8
)

============================================================

[21:55:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[21:55:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[21:55:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767131702
    [base_string] => 2009491/api/v2/order/get_order_detail1767131702eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 43d37fd3304681a5...
    [url_length] => 858
)

============================================================

[21:55:02] INFO: ⏳ Executando cURL...
============================================================

[21:55:03] INFO: ✅ cURL executado
============================================================

[21:55:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732696be23441f96f843600"}
    [curl_error] => 
)

============================================================

[21:55:03] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:55:03] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:55:03] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[21:55:30] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216F27C4ETD
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[21:55:30] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216F27C4ETD
    [shop_id] => 1564423565
)

============================================================

[21:55:30] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1564423565
    [timestamp] => 1767131730
    [base_string] => 2009491/api/v2/order/get_order_detail1767131730eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3r_OkFIAEonMrQygYw6_jl_wM4AUAB.Ba11JIbx2p16o67S4-YM-oU8tPjkX-BM3Sb75DqmbKY1564423565
    [signature] => d066e439b59ca143...
    [url_length] => 859
)

============================================================

[21:55:30] INFO: ⏳ Executando cURL...
============================================================

[21:55:31] INFO: ✅ cURL executado
============================================================

[21:55:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":998961397,"buyer_username":"godryanzingamer","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765818592,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35251235473442000130550010000002221016251665","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8258b-mg2nc5eqk6j1e5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22399053877,"item_name":"Óculos 3D de Realidade Virtual VR Box + Controle Bluetooth","item_sku":"DPX5907801843","main_item":false,"model_discounted_price":84.88,"model_id":0,"model_name":"","model_original_price":121.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":22399053877,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":774854647676928}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216F27C4ETD","order_status":"COMPLETED","package_list":[{"package_number":"OFG219517792112936","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22399053877,"model_id":0,"model_quantity":1,"order_item_id":22399053877,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":382,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765818645,"payment_method":"Pix","pickup_done_time":1765989518,"recipient_address":{"name":"V******z","phone":"******61","town":"","district":"Santo Hilário","city":"Goiânia","state":"Goiás","region":"BR","zipcode":"74780170","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765940399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":84.88,"update_time":1767122947}]},"request_id":"e3e3e7f347326b1dd3398d28f1e7a900:0100020b9e0dbffb:0000000935be4545"}
    [curl_error] => 
)

============================================================

[21:55:31] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:31] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216F27C4ETD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:31] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251216F27C4ETD
)

============================================================

[21:55:31] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251216F27C4ETD.json
============================================================

[21:55:31] INFO: 📦 Item #0
Array
(
    [item_name] => Óculos 3D de Realidade Virtual VR Box + Controle Bluetooth
    [item_sku] => DPX5907801843
    [model_sku] => 
    [sku_usado] => DPX5907801843
    [tem_dpx] => 1
)

============================================================

[21:55:31] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216F27C4ETD
)

============================================================

[21:55:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [seller_id] => 407782497
    [user_id] => 24
    [status] => COMPLETED
)

============================================================

[21:55:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [shop_id] => 407782497
)

============================================================

[21:55:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 407782497
    [timestamp] => 1767131731
    [base_string] => 2009491/api/v2/order/get_order_detail1767131731eyJhbGciOiJIUzI1NiJ9.CJPTehABGOGIucIBIAEo76bQygYwpcnPxwo4AUAB.a9B4yzpKy6IDbKHTpMz8_asWL0BPLG-IKiLtq1k6-Mw407782497
    [signature] => 07747dbe75848d5f...
    [url_length] => 858
)

============================================================

[21:55:31] INFO: ⏳ Executando cURL...
============================================================

[21:55:33] INFO: ✅ cURL executado
============================================================

[21:55:33] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1118189672,"buyer_username":"fabriciokadmosantosdeluc","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766263989,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"33251263517899000134550010000002711232521235","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-meexmcxffpxd60_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798746210,"item_name":"Cozimento a Vapor Cesto Inox Fruteira Banho Maria - Dieta Saudável, Praticidade e Sabor no seu dia a dia","item_sku":"DPX9337943364","main_item":false,"model_discounted_price":24.9,"model_id":0,"model_name":"","model_original_price":24.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798746210,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251221V118RDNN","order_status":"COMPLETED","package_list":[{"package_number":"OFG219963189125720","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798746210,"model_id":0,"model_quantity":1,"order_item_id":23798746210,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1320,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766264005,"payment_method":"SParcelado","pickup_done_time":1766440611,"recipient_address":{"name":"F******e","phone":"******28","town":"","district":"Diadema","city":"Nova Venécia","state":"Espírito Santo","region":"BR","zipcode":"29830000","full_address":"Id******"},"region":"BR","return_request_due_date":1767543314,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":32.25,"update_time":1767122970}]},"request_id":"e3e3e7f347326b334fa4e5791a657400:010002cb45c39398:000000ee6f3beb8a"}
    [curl_error] => 
)

============================================================

[21:55:33] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:33] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251221V118RDNN
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:33] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251221V118RDNN
)

============================================================

[21:55:33] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251221V118RDNN.json
============================================================

[21:55:33] INFO: 📦 Item #0
Array
(
    [item_name] => Cozimento a Vapor Cesto Inox Fruteira Banho Maria - Dieta Saudável, Praticidade e Sabor no seu dia a dia
    [item_sku] => DPX9337943364
    [model_sku] => 
    [sku_usado] => DPX9337943364
    [tem_dpx] => 1
)

============================================================

[21:55:33] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251221V118RDNN
)

============================================================

[21:55:33] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M9Y0GBGS
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:55:33] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M9Y0GBGS
    [shop_id] => 504113848
)

============================================================

[21:55:33] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767131733
    [base_string] => 2009491/api/v2/order/get_order_detail1767131733eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 46cad2baff6d449f...
    [url_length] => 858
)

============================================================

[21:55:33] INFO: ⏳ Executando cURL...
============================================================

[21:55:35] INFO: ✅ cURL executado
============================================================

[21:55:35] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":18.11,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":963916398,"buyer_username":"marianaleite891","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765998699,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":18.11,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19892","series_number":"5","access_key":"41251232111081000193550050000198921323838365","issue_date":1765998821,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218M9Y0GBGS","order_status":"COMPLETED","package_list":[{"package_number":"OFG219697899114641","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765998705,"payment_method":"Credit Card","pickup_done_time":1766075709,"recipient_address":{"name":"M******e","phone":"******62","town":"","district":"Treze de Julho","city":"Aracaju","state":"Sergipe","region":"BR","zipcode":"49020010","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767123312}]},"request_id":"e3e3e7f347326b4c8101fab008c4f800:010002f2f5d33db9:000000a3df48e362"}
    [curl_error] => 
)

============================================================

[21:55:35] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:35] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218M9Y0GBGS
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:35] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251218M9Y0GBGS
)

============================================================

[21:55:35] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251218M9Y0GBGS.json
============================================================

[21:55:35] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[21:55:35] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218M9Y0GBGS
)

============================================================

[21:55:35] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220T2064F0D
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[21:55:35] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220T2064F0D
    [shop_id] => 861037471
)

============================================================

[21:55:35] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767131735
    [base_string] => 2009491/api/v2/order/get_order_detail1767131735eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 1a52743e99bea994...
    [url_length] => 858
)

============================================================

[21:55:35] INFO: ⏳ Executando cURL...
============================================================

[21:55:36] INFO: ✅ cURL executado
============================================================

[21:55:36] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":422792395,"buyer_username":"0chtgl8xj7","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766196307,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2403","series_number":"3","access_key":"33251254881101000148550030000024031664540163","issue_date":1766196535,"total_value":17.68,"products_total_value":17.68,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-824i3-mf7f180jpr0t81_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798937673,"item_name":"Molde de Resina em Formato de Coração para Exposição, Molde de Silicone em Formato de Coração","item_sku":"GH-9838783","main_item":false,"model_discounted_price":17.68,"model_id":0,"model_name":"","model_original_price":18.61,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798937673,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.564,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220T2064F0D","order_status":"COMPLETED","package_list":[{"package_number":"OFG219895508114574","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798937673,"model_id":0,"model_quantity":1,"order_item_id":23798937673,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766196342,"payment_method":"Credit Card","pickup_done_time":1766243007,"recipient_address":{"name":"A******a","phone":"******07","town":"","district":"Cruzeiro","city":"Bom Sucesso","state":"Minas Gerais","region":"BR","zipcode":"37220000","full_address":"Cí******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.13,"update_time":1767123030}]},"request_id":"e3e3e7f347326b6530d50e8ee69c8400:01000264f7da4780:000000de45ec9221"}
    [curl_error] => 
)

============================================================

[21:55:36] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:36] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220T2064F0D
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:36] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220T2064F0D
)

============================================================

[21:55:36] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220T2064F0D.json
============================================================

[21:55:36] INFO: 📦 Item #0
Array
(
    [item_name] => Molde de Resina em Formato de Coração para Exposição, Molde de Silicone em Formato de Coração
    [item_sku] => GH-9838783
    [model_sku] => 
    [sku_usado] => GH-9838783
    [tem_dpx] => 
)

============================================================

[21:55:36] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220T2064F0D
)

============================================================

[21:55:36] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251222286JHECY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:55:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251222286JHECY
    [shop_id] => 504113848
)

============================================================

[21:55:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767131736
    [base_string] => 2009491/api/v2/order/get_order_detail1767131736eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => c8a6d6004423d196...
    [url_length] => 858
)

============================================================

[21:55:36] INFO: ⏳ Executando cURL...
============================================================

[21:55:40] INFO: ✅ cURL executado
============================================================

[21:55:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.52,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":199453103,"buyer_username":"luizcardoso","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766378330,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.52,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20381","series_number":"5","access_key":"41251232111081000193550050000203811415682304","issue_date":1766378885,"total_value":2.4,"products_total_value":2.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":23.95,"model_id":149545492940,"model_name":"2","model_original_price":34.5,"model_quantity_purchased":1,"model_sku":"KIT2CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251222286JHECY","order_status":"COMPLETED","package_list":[{"package_number":"OFG220077531103702","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492940,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766378390,"payment_method":"Pix","pickup_done_time":1766421580,"recipient_address":{"name":"L******a","phone":"******54","town":"","district":"Jardim Primeiro de Maio","city":"Carapicuíba","state":"São Paulo","region":"BR","zipcode":"06365735","full_address":"Ru******"},"region":"BR","return_request_due_date":1767712066,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":23.94,"update_time":1767127010}]},"request_id":"e3e3e7f347326b9d6aaf6f5e6b7b1000:010002c36276e290:000000c9cb8edbb1"}
    [curl_error] => 
)

============================================================

[21:55:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:40] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251222286JHECY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:40] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251222286JHECY
)

============================================================

[21:55:40] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251222286JHECY.json
============================================================

[21:55:40] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT2CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[21:55:40] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251222286JHECY
)

============================================================

[21:55:40] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512258P6PH6YP
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:55:40] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512258P6PH6YP
    [shop_id] => 504113848
)

============================================================

[21:55:40] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767131740
    [base_string] => 2009491/api/v2/order/get_order_detail1767131740eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 037aab71617ddfc7...
    [url_length] => 858
)

============================================================

[21:55:40] INFO: ⏳ Executando cURL...
============================================================

[21:55:41] INFO: ✅ cURL executado
============================================================

[21:55:41] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":652318325,"buyer_username":"silvianeves941","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766599525,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20602","series_number":"5","access_key":"41251232111081000193550050000206021973873461","issue_date":1766599720,"total_value":1.4,"products_total_value":1.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":13.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512258P6PH6YP","order_status":"COMPLETED","package_list":[{"package_number":"OFG220298725157801","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766599633,"payment_method":"Pix","pickup_done_time":1766757778,"recipient_address":{"name":"S******s","phone":"******00","town":"","district":"Setor norte - Brazlândia","city":"Brasília","state":"Distrito Federal","region":"BR","zipcode":"72705030","full_address":"Q ******"},"region":"BR","return_request_due_date":1767721618,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":24.82,"update_time":1767127013}]},"request_id":"e3e3e7f347326bb280cd53c0e3020700:010002c26b1aeff0:000000e2435227b6"}
    [curl_error] => 
)

============================================================

[21:55:41] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:41] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512258P6PH6YP
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:41] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512258P6PH6YP
)

============================================================

[21:55:41] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512258P6PH6YP.json
============================================================

[21:55:41] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[21:55:41] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512258P6PH6YP
)

============================================================

[21:55:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SNKNHQYD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:55:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SNKNHQYD
    [shop_id] => 504113848
)

============================================================

[21:55:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767131741
    [base_string] => 2009491/api/v2/order/get_order_detail1767131741eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => f9e58c21db7b99c4...
    [url_length] => 858
)

============================================================

[21:55:41] INFO: ⏳ Executando cURL...
============================================================

[21:55:44] INFO: ✅ cURL executado
============================================================

[21:55:44] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":950332899,"buyer_username":"ramonabeatriznascimento","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766183003,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20158","series_number":"5","access_key":"41251232111081000193550050000201581145575919","issue_date":1766183318,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SNKNHQYD","order_status":"COMPLETED","package_list":[{"package_number":"OFG219882203101560","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766183179,"payment_method":"Pix","pickup_done_time":1766422282,"recipient_address":{"name":"R******o","phone":"******38","town":"","district":"Vila floresta","city":"São Luiz Gonzaga","state":"Rio Grande do Sul","region":"BR","zipcode":"97800000","full_address":"Tv******"},"region":"BR","return_request_due_date":1767479846,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767127006}]},"request_id":"e3e3e7f347326be75bcfc5aaeeb06a00:0100024b632eed31:000000ed4b0c8bc1"}
    [curl_error] => 
)

============================================================

[21:55:44] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:55:44] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SNKNHQYD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:55:44] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SNKNHQYD
)

============================================================

[21:55:44] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SNKNHQYD.json
============================================================

[21:55:44] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[21:55:44] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SNKNHQYD
)

============================================================

[21:55:45] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512114TANB8C9
    [seller_id] => 944505280
    [user_id] => 255
    [status] => COMPLETED
)

============================================================

[21:55:45] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512114TANB8C9
    [shop_id] => 944505280
)

============================================================

[21:55:45] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 944505280
    [timestamp] => 1767131745
    [base_string] => 2009491/api/v2/order/get_order_detail1767131745eyJhbGciOiJIUzI1NiJ9.CJPTehABGMCDsMIDIAEot8_KygYw-6uWlw44AUAB.33dn5snGkcO6WqjLUH5dr0KhNAAyJeeqO_4tez9IyEE944505280
    [signature] => d640fb6d9cd07216...
    [url_length] => 858
)

============================================================

[21:55:45] INFO: ⏳ Executando cURL...
============================================================

[21:55:46] INFO: ✅ cURL executado
============================================================

[21:55:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347326bfc28dbb565d37dff00"}
    [curl_error] => 
)

============================================================

[21:55:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:55:46] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:55:46] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 944505280
    [user_id] => 255
)

============================================================

[22:00:26] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [seller_id] => 1383494453
    [user_id] => 72
    [status] => COMPLETED
)

============================================================

[22:00:26] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [shop_id] => 1383494453
)

============================================================

[22:00:26] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1383494453
    [timestamp] => 1767132026
    [base_string] => 2009491/api/v2/order/get_order_detail1767132026eyJhbGciOiJIUzI1NiJ9.CJPTehABGLXm2ZMFIAEoqvnQygYwpYmZoAI4AUAB.E3xZuihYcdXcDJME4DjW-Rm7pWdYeFZ1xN8gN-xyK-Y1383494453
    [signature] => b0db97747a92a3b4...
    [url_length] => 859
)

============================================================

[22:00:26] INFO: ⏳ Executando cURL...
============================================================

[22:00:28] INFO: ✅ cURL executado
============================================================

[22:00:28] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1606436832,"buyer_username":"zyf0_jsmad","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766246157,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rffu-m4ao3mvtyuo8d4_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23098104040,"item_name":"Máquina de Boxe Musical Bluetooth Treino Com Luvas Agilidade Soco Fitness Esporte Academia Exercício","item_sku":"GH-6734701","main_item":false,"model_discounted_price":224.7,"model_id":0,"model_name":"","model_original_price":224.7,"model_quantity_purchased":1,"model_sku":"","order_item_id":23098104040,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220UGDTU7D3","order_status":"COMPLETED","package_list":[{"package_number":"OFG219945357116656","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23098104040,"model_id":0,"model_quantity":1,"order_item_id":23098104040,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766246290,"payment_method":"Pix","pickup_done_time":1766440611,"recipient_address":{"name":"F******a","phone":"******62","town":"","district":"Centro","city":"São Francisco do Conde","state":"Bahia","region":"BR","zipcode":"43900000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":10,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":239.18,"update_time":1767118064}]},"request_id":"e3e3e7f347327cc7d2967ad4f3310800:0100020cd90c6bc3:0000001d5ac98186"}
    [curl_error] => 
)

============================================================

[22:00:28] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:28] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220UGDTU7D3
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:28] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220UGDTU7D3
)

============================================================

[22:00:28] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220UGDTU7D3.json
============================================================

[22:00:28] INFO: 📦 Item #0
Array
(
    [item_name] => Máquina de Boxe Musical Bluetooth Treino Com Luvas Agilidade Soco Fitness Esporte Academia Exercício
    [item_sku] => GH-6734701
    [model_sku] => 
    [sku_usado] => GH-6734701
    [tem_dpx] => 
)

============================================================

[22:00:28] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220UGDTU7D3
)

============================================================

[22:00:28] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [seller_id] => 239780418
    [user_id] => 184
    [status] => COMPLETED
)

============================================================

[22:00:28] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [shop_id] => 239780418
)

============================================================

[22:00:28] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 239780418
    [timestamp] => 1767132028
    [base_string] => 2009491/api/v2/order/get_order_detail1767132028eyJhbGciOiJIUzI1NiJ9.CJPTehABGMKEq3IgASjhw9DKBjCWuIrQBDgBQAE.nXSJiper8EiG0fLqKArfFvlu02W-akm_1D49eq8RvYk239780418
    [signature] => 7aed1a3b4c4e95af...
    [url_length] => 857
)

============================================================

[22:00:28] INFO: ⏳ Executando cURL...
============================================================

[22:00:30] INFO: ✅ cURL executado
============================================================

[22:00:30] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":763208546,"buyer_username":"amandateixeira19","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766438018,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821d7-mgh1d6pxsxzh23_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58200195484,"item_name":"Removedor De Placa Limpador De Dentes Elétrico Sonic Mancha","item_sku":"DPX8180240484","main_item":false,"model_discounted_price":18.8,"model_id":0,"model_name":"","model_original_price":20,"model_quantity_purchased":1,"model_sku":"","order_item_id":58200195484,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":800159512838144}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233YSCF48K","order_status":"COMPLETED","package_list":[{"package_number":"OFG220137218132970","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58200195484,"model_id":0,"model_quantity":1,"order_item_id":58200195484,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":375,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766438056,"payment_method":"Pix","pickup_done_time":1766514032,"recipient_address":{"name":"A******o","phone":"******50","town":"","district":"Manga","city":"Inhaúma","state":"Minas Gerais","region":"BR","zipcode":"35763000","full_address":"Jo******"},"region":"BR","return_request_due_date":1767456684,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":18.8,"update_time":1767116304}]},"request_id":"e3e3e7f347327ce130d6c444380e4a00:010002ce2301e0ef:000000f90161fb04"}
    [curl_error] => 
)

============================================================

[22:00:30] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:30] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233YSCF48K
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:30] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512233YSCF48K
)

============================================================

[22:00:30] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512233YSCF48K.json
============================================================

[22:00:30] INFO: 📦 Item #0
Array
(
    [item_name] => Removedor De Placa Limpador De Dentes Elétrico Sonic Mancha
    [item_sku] => DPX8180240484
    [model_sku] => 
    [sku_usado] => DPX8180240484
    [tem_dpx] => 1
)

============================================================

[22:00:30] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512233YSCF48K
)

============================================================

[22:00:30] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[22:00:30] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [shop_id] => 861037471
)

============================================================

[22:00:30] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767132030
    [base_string] => 2009491/api/v2/order/get_order_detail1767132030eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 0359bd858d6689d0...
    [url_length] => 858
)

============================================================

[22:00:30] INFO: ⏳ Executando cURL...
============================================================

[22:00:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [seller_id] => 1035641613
    [user_id] => 33
    [status] => COMPLETED
)

============================================================

[22:00:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [shop_id] => 1035641613
)

============================================================

[22:00:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1767132031
    [base_string] => 2009491/api/v2/order/get_order_detail1767132031eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEoo_jQygYwypSYsAQ4AUAB.CdoLUb9xcMKswJqD9nS9qGcoAGZ6AHHUImHHjRQm9ks1035641613
    [signature] => 49ac58eb2e5a6b3b...
    [url_length] => 859
)

============================================================

[22:00:31] INFO: ⏳ Executando cURL...
============================================================

[22:00:31] INFO: ✅ cURL executado
============================================================

[22:00:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":528947866,"buyer_username":"mxe76x0as3","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766626358,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2469","series_number":"3","access_key":"33251254881101000148550030000024691871601615","issue_date":1766626422,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512259F6BG77W","order_status":"COMPLETED","package_list":[{"package_number":"OFG220325558120198","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766626391,"payment_method":"Pix","pickup_done_time":1766762857,"recipient_address":{"name":"M******s","phone":"******32","town":"","district":"Jardim Santo André","city":"Santo André","state":"São Paulo","region":"BR","zipcode":"09132699","full_address":"Tv******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.74,"update_time":1767118535}]},"request_id":"e3e3e7f347327cf9fd7e488f10df0300:010002445de27415:000000bcc5d67568"}
    [curl_error] => 
)

============================================================

[22:00:31] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:31] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512259F6BG77W
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:31] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512259F6BG77W
)

============================================================

[22:00:31] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512259F6BG77W.json
============================================================

[22:00:31] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[22:00:31] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512259F6BG77W
)

============================================================

[22:00:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[22:00:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [shop_id] => 526192906
)

============================================================

[22:00:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767132031
    [base_string] => 2009491/api/v2/order/get_order_detail1767132031eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo0YHRygYwzdr75gI4AUAB.65ytMel10Du3a7G7pWnFhrW-Rt4UCi8hhuTL5qQckvg526192906
    [signature] => 1a4aa3b0c00985a7...
    [url_length] => 858
)

============================================================

[22:00:31] INFO: ⏳ Executando cURL...
============================================================

[22:00:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [seller_id] => 544960064
    [user_id] => 144
    [status] => COMPLETED
)

============================================================

[22:00:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [shop_id] => 544960064
)

============================================================

[22:00:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 544960064
    [timestamp] => 1767132031
    [base_string] => 2009491/api/v2/order/get_order_detail1767132031eyJhbGciOiJIUzI1NiJ9.CJPTehABGMDc7YMCIAEo1-TQygYwxYed7ws4AUAB.oyIdU5V4KaqbuO-v6uC0KHAh4yVwcl-SOLj-08N30rM544960064
    [signature] => 533454ef26b927ed...
    [url_length] => 858
)

============================================================

[22:00:31] INFO: ⏳ Executando cURL...
============================================================

[22:00:32] INFO: ✅ cURL executado
============================================================

[22:00:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":23.87,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1594863974,"buyer_username":"c0y4grgdp8","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765069475,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":23.87,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg9fuf8jls055a_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23294387452,"item_name":"Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V","item_sku":"DPX5060390289","main_item":false,"model_discounted_price":139.95,"model_id":0,"model_name":"","model_original_price":139.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":23294387452,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251207PBV8TRSJ","order_status":"COMPLETED","package_list":[{"package_number":"OFG218768675137415","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23294387452,"model_id":0,"model_quantity":1,"order_item_id":23294387452,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765069694,"payment_method":"Pix","pickup_done_time":1765229640,"recipient_address":{"name":"M******o","phone":"******73","town":"","district":"Centro","city":"Santo Antônio","state":"Rio Grande do Norte","region":"BR","zipcode":"59255000","full_address":"Ma******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765249199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":163.82,"update_time":1767121269}]},"request_id":"e3e3e7f347327d0d790d08f17dbfdd00:010002bb93540c23:00000080f699d17f"}
    [curl_error] => 
)

============================================================

[22:00:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:32] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251207PBV8TRSJ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:32] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[22:00:32] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251207PBV8TRSJ.json
============================================================

[22:00:32] INFO: 📦 Item #0
Array
(
    [item_name] => Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V
    [item_sku] => DPX5060390289
    [model_sku] => 
    [sku_usado] => DPX5060390289
    [tem_dpx] => 1
)

============================================================

[22:00:32] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[22:00:32] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:00:32] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [shop_id] => 504113848
)

============================================================

[22:00:32] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767132032
    [base_string] => 2009491/api/v2/order/get_order_detail1767132032eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => aaf63c0a51094dbf...
    [url_length] => 858
)

============================================================

[22:00:32] INFO: ⏳ Executando cURL...
============================================================

[22:00:32] INFO: ✅ cURL executado
============================================================

[22:00:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":21.74,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401967739,"buyer_username":"ravisantos87","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766434975,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":21.74,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdw3-md0yqmgnyb52ca_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23094288126,"item_name":"hidratante batom labial cupcake gloss estilo girl kids kit com 8","item_sku":"DPX4331557235","main_item":false,"model_discounted_price":41.56,"model_id":0,"model_name":"","model_original_price":41.56,"model_quantity_purchased":1,"model_sku":"","order_item_id":23094288126,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233VXPFKYQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220134176105462","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23094288126,"model_id":0,"model_quantity":1,"order_item_id":23094288126,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766434983,"payment_method":"Credit Card","pickup_done_time":1766514032,"recipient_address":{"name":"R******a","phone":"******28","town":"","district":"Jardim Lago Azul","city":"Novo Gama","state":"Goiás","region":"BR","zipcode":"72865142","full_address":"Qu******"},"region":"BR","return_request_due_date":1767724911,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":41.22,"update_time":1767120783}]},"request_id":"e3e3e7f347327d0d6c015f6ecfc4fb00:010002aaf8c22d4c:00000035ba8f642d"}
    [curl_error] => 
)

============================================================

[22:00:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:32] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233VXPFKYQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:32] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[22:00:32] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512233VXPFKYQ.json
============================================================

[22:00:32] INFO: 📦 Item #0
Array
(
    [item_name] => hidratante batom labial cupcake gloss estilo girl kids kit com 8
    [item_sku] => DPX4331557235
    [model_sku] => 
    [sku_usado] => DPX4331557235
    [tem_dpx] => 1
)

============================================================

[22:00:32] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[22:00:33] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[22:00:33] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [shop_id] => 411294579
)

============================================================

[22:00:33] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767132033
    [base_string] => 2009491/api/v2/order/get_order_detail1767132033eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEo7YnRygYwl7rSmAU4AUAB.IETWWEuCH7zhPZC6Xj2XtoiQ1jtLkeW66Fns_itgK48411294579
    [signature] => da1c42ecb1a9180c...
    [url_length] => 858
)

============================================================

[22:00:33] INFO: ⏳ Executando cURL...
============================================================

[22:00:33] INFO: ✅ cURL executado
============================================================

[22:00:33] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":586466951,"buyer_username":"jairdesouza106","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766697945,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-822x4-mhwenyw2snib7d_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58251560932,"item_name":"Kit 4 Banquetas Dobráveis Retrátil PRETA Metal Reforçado | Banco Portátil 32cm Pesca Camping Show | Leve","item_sku":"DPX5667338693","main_item":false,"model_discounted_price":43.92,"model_id":0,"model_name":"","model_original_price":62.75,"model_quantity_purchased":1,"model_sku":"","order_item_id":58251560932,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":221118439047168,"promotion_list":[{"promotion_type":"in_shop_flash_sale","promotion_id":221118439047168}],"promotion_type":"flash_sale","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BHUU578H","order_status":"COMPLETED","package_list":[{"package_number":"OFG220397146112946","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58251560932,"model_id":0,"model_quantity":1,"order_item_id":58251560932,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766697954,"payment_method":"Credit Card","pickup_done_time":1766773640,"recipient_address":{"name":"J**r","phone":"******69","town":"","district":"Santa rita","city":"Três de Maio","state":"Rio Grande do Sul","region":"BR","zipcode":"98910000","full_address":"Mo******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":46.33,"update_time":1767118722}]},"request_id":"e3e3e7f347327d0f28a7cb05d59b7900:0100028a21d7f7aa:00000019486d23bd"}
    [curl_error] => 
)

============================================================

[22:00:33] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:33] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BHUU578H
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:33] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226BHUU578H
)

============================================================

[22:00:33] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226BHUU578H.json
============================================================

[22:00:33] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 4 Banquetas Dobráveis Retrátil PRETA Metal Reforçado | Banco Portátil 32cm Pesca Camping Show | Leve
    [item_sku] => DPX5667338693
    [model_sku] => 
    [sku_usado] => DPX5667338693
    [tem_dpx] => 1
)

============================================================

[22:00:33] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251226BHUU578H
)

============================================================

[22:00:33] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [seller_id] => 852006270
    [user_id] => 132
    [status] => COMPLETED
)

============================================================

[22:00:33] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [shop_id] => 852006270
)

============================================================

[22:00:33] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 852006270
    [timestamp] => 1767132033
    [base_string] => 2009491/api/v2/order/get_order_detail1767132033eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEohsPQygYwvLn2lww4AUAB.oI2Al_9RQ5H3x0MawjJRmwHp8dz0KuI9gnI3mlPKCvY852006270
    [signature] => b5cf61e7ab7e7a9f...
    [url_length] => 858
)

============================================================

[22:00:33] INFO: ⏳ Executando cURL...
============================================================

[22:00:34] INFO: ✅ cURL executado
============================================================

[22:00:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":975331026,"buyer_username":"francielediniz846","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766505300,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20516","series_number":"5","access_key":"41251232111081000193550050000205161259227580","issue_date":1766505518,"total_value":1.54,"products_total_value":1.54,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra2s-mbijn60k3a1935_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":15.41,"model_id":159785139713,"model_name":"12 cores","model_original_price":23,"model_quantity_purchased":1,"model_sku":"CANE12CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512235XEHM7XQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220204500112503","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139713,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766505349,"payment_method":"Pix","pickup_done_time":1766758106,"recipient_address":{"name":"F******z","phone":"******45","town":"","district":"Posse","city":"Petrópolis","state":"Rio de Janeiro","region":"BR","zipcode":"25770460","full_address":"Es******"},"region":"BR","return_request_due_date":1767724924,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.41,"update_time":1767123327}]},"request_id":"e3e3e7f347327d229af0601faeefff00:0100025a08ca2447:0000001c11e3eb16"}
    [curl_error] => 
)

============================================================

[22:00:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512235XEHM7XQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[22:00:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512235XEHM7XQ.json
============================================================

[22:00:34] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE12CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[22:00:34] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[22:00:34] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:00:34] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [shop_id] => 504113848
)

============================================================

[22:00:34] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767132034
    [base_string] => 2009491/api/v2/order/get_order_detail1767132034eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 8468b0b5cef4a778...
    [url_length] => 858
)

============================================================

[22:00:34] INFO: ⏳ Executando cURL...
============================================================

[22:00:34] INFO: ✅ cURL executado
============================================================

[22:00:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":22.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1675744866,"buyer_username":"09sl54dhp1","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765982219,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":22.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824ik-meqcetb2bthi67_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22994410121,"item_name":"Kit De Beleza Infantil  Mechas Coloridas Para O Cabelo","item_sku":"DPX1739881853","main_item":false,"model_discounted_price":38.54,"model_id":0,"model_name":"","model_original_price":41,"model_quantity_purchased":1,"model_sku":"","order_item_id":22994410121,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":800261988089856}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251217KTKU04PJ","order_status":"COMPLETED","package_list":[{"package_number":"OFG219681419146027","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22994410121,"model_id":0,"model_quantity":1,"order_item_id":22994410121,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765982417,"payment_method":"Pix","pickup_done_time":1765997742,"recipient_address":{"name":"W******a","phone":"******10","town":"","district":"Tapanã (Icoaraci)","city":"Belém","state":"Pará","region":"BR","zipcode":"66833000","full_address":"Ro******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":39.69,"update_time":1767118989}]},"request_id":"e3e3e7f347327d288fa13119b554cf00:010002db24b5ae79:0000008c71bc3ab7"}
    [curl_error] => 
)

============================================================

[22:00:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251217KTKU04PJ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251217KTKU04PJ
)

============================================================

[22:00:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251217KTKU04PJ.json
============================================================

[22:00:34] INFO: 📦 Item #0
Array
(
    [item_name] => Kit De Beleza Infantil  Mechas Coloridas Para O Cabelo
    [item_sku] => DPX1739881853
    [model_sku] => 
    [sku_usado] => DPX1739881853
    [tem_dpx] => 1
)

============================================================

[22:00:34] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251217KTKU04PJ
)

============================================================

[22:00:34] INFO: ✅ cURL executado
============================================================

[22:00:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1499749988,"buyer_username":"vxlyzrtdd5","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765895630,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821fn-mgmy0yimztvtf3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58250301144,"item_name":"Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido","item_sku":"DPX7240755682","main_item":false,"model_discounted_price":33.53,"model_id":0,"model_name":"","model_original_price":37.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58250301144,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216H9YA8YSB","order_status":"COMPLETED","package_list":[{"package_number":"OFG219594830167655","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58250301144,"model_id":0,"model_quantity":1,"order_item_id":58250301144,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765895764,"payment_method":"Pix","pickup_done_time":1765985600,"recipient_address":{"name":"A******e","phone":"******42","town":"","district":"Rodoviária","city":"João Neiva","state":"Espírito Santo","region":"BR","zipcode":"29680000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":32.52,"update_time":1767120877}]},"request_id":"e3e3e7f347327d2653fb6ff85c54a000:01000230194b163e:000000aa616852a3"}
    [curl_error] => 
)

============================================================

[22:00:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216H9YA8YSB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251216H9YA8YSB
)

============================================================

[22:00:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251216H9YA8YSB.json
============================================================

[22:00:34] INFO: 📦 Item #0
Array
(
    [item_name] => Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido
    [item_sku] => DPX7240755682
    [model_sku] => 
    [sku_usado] => DPX7240755682
    [tem_dpx] => 1
)

============================================================

[22:00:34] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216H9YA8YSB
)

============================================================

[22:00:34] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:00:34] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [shop_id] => 504113848
)

============================================================

[22:00:34] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767132034
    [base_string] => 2009491/api/v2/order/get_order_detail1767132034eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 8468b0b5cef4a778...
    [url_length] => 858
)

============================================================

[22:00:34] INFO: ⏳ Executando cURL...
============================================================

[22:00:34] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[22:00:34] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [shop_id] => 526192906
)

============================================================

[22:00:34] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767132034
    [base_string] => 2009491/api/v2/order/get_order_detail1767132034eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo0YHRygYwzdr75gI4AUAB.65ytMel10Du3a7G7pWnFhrW-Rt4UCi8hhuTL5qQckvg526192906
    [signature] => 3eaff2346785e7ce...
    [url_length] => 858
)

============================================================

[22:00:34] INFO: ⏳ Executando cURL...
============================================================

[22:00:35] INFO: ✅ cURL executado
============================================================

[22:00:35] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":331621760,"buyer_username":"amaandaakelly","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766174390,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20141","series_number":"5","access_key":"41251232111081000193550050000201411159497667","issue_date":1766174621,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SDK0FF0A","order_status":"COMPLETED","package_list":[{"package_number":"OFG219873591143550","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766174397,"payment_method":"Credit Card","pickup_done_time":1766422665,"recipient_address":{"name":"A******a","phone":"******45","town":"","district":"Chácara Italago","city":"Itapecerica da Serra","state":"São Paulo","region":"BR","zipcode":"06866670","full_address":"Ru******"},"region":"BR","return_request_due_date":1767725381,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":14.06,"update_time":1767123320}]},"request_id":"e3e3e7f347327d37fedd85fa66e5c500:0100029d0764503f:00000039b9411f2d"}
    [curl_error] => 
)

============================================================

[22:00:35] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:35] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SDK0FF0A
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:35] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SDK0FF0A
)

============================================================

[22:00:35] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SDK0FF0A.json
============================================================

[22:00:35] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[22:00:35] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SDK0FF0A
)

============================================================

[22:00:35] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [seller_id] => 796461485
    [user_id] => 581
    [status] => COMPLETED
)

============================================================

[22:00:35] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[22:00:35] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767132035
    [base_string] => 2009491/api/v2/order/get_order_detail1767132035eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo4biXygYwjpqauQo4AUAB.Yyb17c6rIPthIfidV4A-RGpR-bCcwhJW4ioJWoX_KF0796461485
    [signature] => f202994e1e26b594...
    [url_length] => 858
)

============================================================

[22:00:35] INFO: ⏳ Executando cURL...
============================================================

[22:00:35] INFO: ✅ cURL executado
============================================================

[22:00:35] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.92,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":372278231,"buyer_username":"bdm2019","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765997597,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.92,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19891","series_number":"5","access_key":"41251232111081000193550050000198911830925695","issue_date":1765997918,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218M8X5HE6U","order_status":"COMPLETED","package_list":[{"package_number":"OFG219696797110819","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765997604,"payment_method":"Credit Card","pickup_done_time":1766075739,"recipient_address":{"name":"B******a","phone":"******35","town":"","district":"Parque Piratininga","city":"Itaquaquecetuba","state":"São Paulo","region":"BR","zipcode":"08583260","full_address":"R ******"},"region":"BR","return_request_due_date":1767378797,"reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767119847}]},"request_id":"e3e3e7f347327d3e826e7c787b4c5a00:010002d75f5dc8ba:000000922d9e8514"}
    [curl_error] => 
)

============================================================

[22:00:35] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:35] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218M8X5HE6U
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:35] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251218M8X5HE6U
)

============================================================

[22:00:35] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251218M8X5HE6U.json
============================================================

[22:00:35] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[22:00:35] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218M8X5HE6U
)

============================================================

[22:00:35] INFO: ✅ cURL executado
============================================================

[22:00:35] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":23.87,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1594863974,"buyer_username":"c0y4grgdp8","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765069475,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":23.87,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg9fuf8jls055a_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23294387452,"item_name":"Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V","item_sku":"DPX5060390289","main_item":false,"model_discounted_price":139.95,"model_id":0,"model_name":"","model_original_price":139.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":23294387452,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251207PBV8TRSJ","order_status":"COMPLETED","package_list":[{"package_number":"OFG218768675137415","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23294387452,"model_id":0,"model_quantity":1,"order_item_id":23294387452,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765069694,"payment_method":"Pix","pickup_done_time":1765229640,"recipient_address":{"name":"M******o","phone":"******73","town":"","district":"Centro","city":"Santo Antônio","state":"Rio Grande do Norte","region":"BR","zipcode":"59255000","full_address":"Ma******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765249199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":163.82,"update_time":1767121269}]},"request_id":"e3e3e7f347327d3ef504018895ce9700:0100026010595842:000000ba8bf86971"}
    [curl_error] => 
)

============================================================

[22:00:35] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:35] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251207PBV8TRSJ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:35] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[22:00:35] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251207PBV8TRSJ.json
============================================================

[22:00:35] INFO: 📦 Item #0
Array
(
    [item_name] => Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V
    [item_sku] => DPX5060390289
    [model_sku] => 
    [sku_usado] => DPX5060390289
    [tem_dpx] => 1
)

============================================================

[22:00:35] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[22:00:36] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[22:00:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[22:00:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767132036
    [base_string] => 2009491/api/v2/order/get_order_detail1767132036eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo4ejPygYw3pyzqgo4AUAB.kxXNrCSyWUgTIOXzElySNKchvsYkz9vwcjizeIGylPw1603130895
    [signature] => 0135b6118743b2cd...
    [url_length] => 859
)

============================================================

[22:00:36] INFO: ⏳ Executando cURL...
============================================================

[22:00:36] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:00:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [shop_id] => 504113848
)

============================================================

[22:00:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767132036
    [base_string] => 2009491/api/v2/order/get_order_detail1767132036eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 6acb3b63ad26e0b6...
    [url_length] => 858
)

============================================================

[22:00:36] INFO: ⏳ Executando cURL...
============================================================

[22:00:36] INFO: ✅ cURL executado
============================================================

[22:00:36] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347327d4cf407e1290f110000"}
    [curl_error] => 
)

============================================================

[22:00:36] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:00:36] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:00:36] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 796461485
    [user_id] => 581
)

============================================================

[22:00:37] INFO: ✅ cURL executado
============================================================

[22:00:37] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347327d53d5e1d19e654b1a00"}
    [curl_error] => 
)

============================================================

[22:00:37] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:00:37] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:00:37] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 1603130895
    [user_id] => 156
)

============================================================

[22:00:37] INFO: ✅ cURL executado
============================================================

[22:00:37] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":975331026,"buyer_username":"francielediniz846","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766505300,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20516","series_number":"5","access_key":"41251232111081000193550050000205161259227580","issue_date":1766505518,"total_value":1.54,"products_total_value":1.54,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra2s-mbijn60k3a1935_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":15.41,"model_id":159785139713,"model_name":"12 cores","model_original_price":23,"model_quantity_purchased":1,"model_sku":"CANE12CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512235XEHM7XQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220204500112503","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139713,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766505349,"payment_method":"Pix","pickup_done_time":1766758106,"recipient_address":{"name":"F******z","phone":"******45","town":"","district":"Posse","city":"Petrópolis","state":"Rio de Janeiro","region":"BR","zipcode":"25770460","full_address":"Es******"},"region":"BR","return_request_due_date":1767724924,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.41,"update_time":1767123327}]},"request_id":"e3e3e7f347327d54e06f77adfa8ca000:010002a38d4c3dd4:0000001885f32aa6"}
    [curl_error] => 
)

============================================================

[22:00:37] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:37] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512235XEHM7XQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:37] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[22:00:37] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512235XEHM7XQ.json
============================================================

[22:00:37] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE12CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[22:00:37] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[22:00:37] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:00:37] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [shop_id] => 504113848
)

============================================================

[22:00:37] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767132037
    [base_string] => 2009491/api/v2/order/get_order_detail1767132037eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 3c5544eac86d9aa9...
    [url_length] => 858
)

============================================================

[22:00:37] INFO: ⏳ Executando cURL...
============================================================

[22:00:38] INFO: ✅ cURL executado
============================================================

[22:00:38] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":331621760,"buyer_username":"amaandaakelly","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766174390,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20141","series_number":"5","access_key":"41251232111081000193550050000201411159497667","issue_date":1766174621,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SDK0FF0A","order_status":"COMPLETED","package_list":[{"package_number":"OFG219873591143550","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766174397,"payment_method":"Credit Card","pickup_done_time":1766422665,"recipient_address":{"name":"A******a","phone":"******45","town":"","district":"Chácara Italago","city":"Itapecerica da Serra","state":"São Paulo","region":"BR","zipcode":"06866670","full_address":"Ru******"},"region":"BR","return_request_due_date":1767725381,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":14.06,"update_time":1767123320}]},"request_id":"e3e3e7f347327d6abb02130cc8521100:010002374732b91b:00000003a4b2c005"}
    [curl_error] => 
)

============================================================

[22:00:38] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:00:38] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SDK0FF0A
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:00:38] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SDK0FF0A
)

============================================================

[22:00:38] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SDK0FF0A.json
============================================================

[22:00:38] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[22:00:38] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SDK0FF0A
)

============================================================

[22:00:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [seller_id] => 796461485
    [user_id] => 581
    [status] => COMPLETED
)

============================================================

[22:00:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[22:00:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767132038
    [base_string] => 2009491/api/v2/order/get_order_detail1767132038eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo4biXygYwjpqauQo4AUAB.Yyb17c6rIPthIfidV4A-RGpR-bCcwhJW4ioJWoX_KF0796461485
    [signature] => 69c1803ed5f7e0da...
    [url_length] => 858
)

============================================================

[22:00:38] INFO: ⏳ Executando cURL...
============================================================

[22:00:39] INFO: ✅ cURL executado
============================================================

[22:00:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347327d7fb0496e474519d500"}
    [curl_error] => 
)

============================================================

[22:00:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:00:39] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:00:39] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 796461485
    [user_id] => 581
)

============================================================

[22:11:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[22:11:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[22:11:01] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767132661
    [base_string] => 2009491/api/v2/order/get_order_detail1767132661eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 0e393cbfa76cce94...
    [url_length] => 858
)

============================================================

[22:11:01] INFO: ⏳ Executando cURL...
============================================================

[22:11:02] INFO: ✅ cURL executado
============================================================

[22:11:02] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732a2a2dffc21aa15cc0c00"}
    [curl_error] => 
)

============================================================

[22:11:02] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:11:02] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:11:02] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[22:11:03] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[22:11:03] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [shop_id] => 675930217
)

============================================================

[22:11:03] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767132663
    [base_string] => 2009491/api/v2/order/get_order_detail1767132663eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 828184c8f02366de...
    [url_length] => 858
)

============================================================

[22:11:03] INFO: ⏳ Executando cURL...
============================================================

[22:11:04] INFO: ✅ cURL executado
============================================================

[22:11:04] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732a2bdf4954245a9c36800"}
    [curl_error] => 
)

============================================================

[22:11:04] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:11:04] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:11:04] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[22:16:14] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[22:16:14] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[22:16:14] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767132974
    [base_string] => 2009491/api/v2/order/get_order_detail1767132974eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo9JrRygYwhefXdDgBQAE.-JPCSjZZFBLiQwZ0sCft4FcVp2hIReohikNfW5fob_k1603130895
    [signature] => cac56754597f08ea...
    [url_length] => 858
)

============================================================

[22:16:14] INFO: ⏳ Executando cURL...
============================================================

[22:19:25] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[22:19:25] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[22:19:25] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767133165
    [base_string] => 2009491/api/v2/order/get_order_detail1767133165eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 314e17596cb73a7d...
    [url_length] => 858
)

============================================================

[22:19:25] INFO: ⏳ Executando cURL...
============================================================

[22:19:26] INFO: ✅ cURL executado
============================================================

[22:19:26] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732c0a640b651857f0c2400"}
    [curl_error] => 
)

============================================================

[22:19:26] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:19:26] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:19:26] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[22:19:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[22:19:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [shop_id] => 675930217
)

============================================================

[22:19:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767133171
    [base_string] => 2009491/api/v2/order/get_order_detail1767133171eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 65f1913142d3010e...
    [url_length] => 858
)

============================================================

[22:19:31] INFO: ⏳ Executando cURL...
============================================================

[22:19:32] INFO: ✅ cURL executado
============================================================

[22:19:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732c107768844cf51ab3500"}
    [curl_error] => 
)

============================================================

[22:19:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:19:32] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:19:32] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[22:19:36] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251228JFMX6JA3
    [seller_id] => 320417540
    [user_id] => 93
    [status] => COMPLETED
)

============================================================

[22:19:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251228JFMX6JA3
    [shop_id] => 320417540
)

============================================================

[22:19:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 320417540
    [timestamp] => 1767133176
    [base_string] => 2009491/api/v2/order/get_order_detail1767133176eyJhbGciOiJIUzI1NiJ9.CJPTehABGITe5JgBIAEo_qzPygYw8ICuhAo4AUAB.MlLjDZi0gSq2k2v2TZo2hXqu0DhqwdNwmO_PgI4YI-A320417540
    [signature] => d30de674762a8fc2...
    [url_length] => 858
)

============================================================

[22:19:36] INFO: ⏳ Executando cURL...
============================================================

[22:19:41] INFO: ✅ cURL executado
============================================================

[22:19:41] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732c18fee4af36846812300"}
    [curl_error] => 
)

============================================================

[22:19:41] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:19:41] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:19:41] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 320417540
    [user_id] => 93
)

============================================================

[22:21:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[22:21:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[22:21:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767133291
    [base_string] => 2009491/api/v2/order/get_order_detail1767133291eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo9JrRygYwhefXdDgBQAE.-JPCSjZZFBLiQwZ0sCft4FcVp2hIReohikNfW5fob_k1603130895
    [signature] => 9ee3e74cc0a996d7...
    [url_length] => 858
)

============================================================

[22:21:31] INFO: ⏳ Executando cURL...
============================================================

[22:21:32] INFO: ✅ cURL executado
============================================================

[22:21:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":501749504,"buyer_username":"laiscristinamakeup","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766145584,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mhuvrmvjwf7mc6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23499187237,"item_name":"Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":34,"model_id":0,"model_name":"","model_original_price":39.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23499187237,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":790815173952512}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219RJRGVTYA","order_status":"COMPLETED","package_list":[{"package_number":"OFG219844784182098","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23499187237,"model_id":0,"model_quantity":1,"order_item_id":23499187237,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766145594,"payment_method":"Credit Card","pickup_done_time":1766163440,"recipient_address":{"name":"L******o","phone":"******15","town":"","district":"Jardim Mercedes","city":"São Carlos","state":"São Paulo","region":"BR","zipcode":"13570501","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34,"update_time":1767119635}]},"request_id":"e3e3e7f34732c8236a49b94e8004ac00:010002611f08d2ce:000000e2dfd17122"}
    [curl_error] => 
)

============================================================

[22:21:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:21:32] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219RJRGVTYA
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:21:32] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219RJRGVTYA
)

============================================================

[22:21:32] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219RJRGVTYA.json
============================================================

[22:21:32] INFO: 📦 Item #0
Array
(
    [item_name] => Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia
    [item_sku] => DPX6438278502
    [model_sku] => 
    [sku_usado] => DPX6438278502
    [tem_dpx] => 1
)

============================================================

[22:21:32] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219RJRGVTYA
)

============================================================

[22:21:32] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[22:21:32] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [shop_id] => 861037471
)

============================================================

[22:21:32] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767133292
    [base_string] => 2009491/api/v2/order/get_order_detail1767133292eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => dd8f18109c1273df...
    [url_length] => 858
)

============================================================

[22:21:32] INFO: ⏳ Executando cURL...
============================================================

[22:21:34] INFO: ✅ cURL executado
============================================================

[22:21:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1057587325,"buyer_username":"flaviocanidia","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766715670,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2494","series_number":"3","access_key":"33251254881101000148550030000024941353263480","issue_date":1766715825,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226C2C31JCN","order_status":"COMPLETED","package_list":[{"package_number":"OFG220414870194982","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766715709,"payment_method":"Pix","pickup_done_time":1766762855,"recipient_address":{"name":"F******s","phone":"******50","town":"","district":"Vila Embratel","city":"São Luís","state":"Maranhão","region":"BR","zipcode":"65081435","full_address":"2ª******"},"region":"BR","return_request_due_date":1767724237,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":26.26,"update_time":1767119673}]},"request_id":"e3e3e7f34732c83c90b73936837b4f00:0100022dabc78084:00000014b8b00956"}
    [curl_error] => 
)

============================================================

[22:21:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:21:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226C2C31JCN
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:21:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226C2C31JCN
)

============================================================

[22:21:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226C2C31JCN.json
============================================================

[22:21:34] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[22:21:34] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226C2C31JCN
)

============================================================

[22:21:34] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:21:34] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [shop_id] => 504113848
)

============================================================

[22:21:34] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767133294
    [base_string] => 2009491/api/v2/order/get_order_detail1767133294eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 2dea924dc6bf49bb...
    [url_length] => 858
)

============================================================

[22:21:34] INFO: ⏳ Executando cURL...
============================================================

[22:21:35] INFO: ✅ cURL executado
============================================================

[22:21:35] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1241116294,"buyer_username":"liannamoreira","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766076197,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19995","series_number":"5","access_key":"41251232111081000193550050000199951458008880","issue_date":1766142469,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219PJ4KDNMY","order_status":"COMPLETED","package_list":[{"package_number":"OFG219775397184194","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766076204,"payment_method":"Credit Card","pickup_done_time":1766162389,"recipient_address":{"name":"L******a","phone":"******54","town":"","district":"Centro","city":"Juiz de Fora","state":"Minas Gerais","region":"BR","zipcode":"36035000","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.01,"update_time":1767123316}]},"request_id":"e3e3e7f34732c8522c786795de380100:010002b6c44a5111:0000009c651ca2d3"}
    [curl_error] => 
)

============================================================

[22:21:35] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:21:35] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219PJ4KDNMY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:21:35] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219PJ4KDNMY
)

============================================================

[22:21:35] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219PJ4KDNMY.json
============================================================

[22:21:35] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[22:21:35] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251219PJ4KDNMY
)

============================================================

[22:21:35] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:21:35] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [shop_id] => 504113848
)

============================================================

[22:21:35] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767133295
    [base_string] => 2009491/api/v2/order/get_order_detail1767133295eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => ab80d4769657669c...
    [url_length] => 858
)

============================================================

[22:21:35] INFO: ⏳ Executando cURL...
============================================================

[22:21:36] INFO: ✅ cURL executado
============================================================

[22:21:36] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":376168877,"buyer_username":"marcioraffagnato","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766702274,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20664","series_number":"5","access_key":"41251232111081000193550050000206641824836320","issue_date":1766702327,"total_value":3.75,"products_total_value":3.75,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra3w-mbijn7fw1khh4b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":37.52,"model_id":159785139715,"model_name":"36 cores","model_original_price":56,"model_quantity_purchased":1,"model_sku":"CANE36CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BNVUJYEK","order_status":"COMPLETED","package_list":[{"package_number":"OFG220401474124639","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139715,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766702294,"payment_method":"SParcelado","pickup_done_time":1766758111,"recipient_address":{"name":"M******o","phone":"******96","town":"","district":"Granjas Cabuçu (Manilha)","city":"Itaboraí","state":"Rio de Janeiro","region":"BR","zipcode":"24860472","full_address":"Ru******"},"region":"BR","return_request_due_date":1767625319,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":37.52,"update_time":1767123329}]},"request_id":"e3e3e7f34732c8677c8acb25479a2300:01000296b80e3106:000000c968f96fe0"}
    [curl_error] => 
)

============================================================

[22:21:36] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:21:36] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BNVUJYEK
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:21:36] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226BNVUJYEK
)

============================================================

[22:21:36] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226BNVUJYEK.json
============================================================

[22:21:36] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE36CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[22:21:36] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226BNVUJYEK
)

============================================================

[22:21:36] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:21:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [shop_id] => 504113848
)

============================================================

[22:21:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767133296
    [base_string] => 2009491/api/v2/order/get_order_detail1767133296eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => c7c84e26e0aedf66...
    [url_length] => 858
)

============================================================

[22:21:36] INFO: ⏳ Executando cURL...
============================================================

[22:21:38] INFO: ✅ cURL executado
============================================================

[22:21:38] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":650330518,"buyer_username":"julianapaulla067","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766529989,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20553","series_number":"5","access_key":"41251232111081000193550050000205531767171027","issue_date":1766530121,"total_value":1.4,"products_total_value":1.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":13.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512246NEAVJFD","order_status":"COMPLETED","package_list":[{"package_number":"OFG220229188191234","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766530078,"payment_method":"Pix","pickup_done_time":1766757977,"recipient_address":{"name":"J******s","phone":"******18","town":"","district":"Parque Eldorado","city":"Campos dos Goytacazes","state":"Rio de Janeiro","region":"BR","zipcode":"28090640","full_address":"Ru******"},"region":"BR","return_request_due_date":1767724142,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":13.99,"update_time":1767123327}]},"request_id":"e3e3e7f34732c87c771637b236a58700:010002de21ae63b1:000000863c94173a"}
    [curl_error] => 
)

============================================================

[22:21:38] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:21:38] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512246NEAVJFD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:21:38] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512246NEAVJFD
)

============================================================

[22:21:38] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512246NEAVJFD.json
============================================================

[22:21:38] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[22:21:38] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512246NEAVJFD
)

============================================================

[22:21:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [seller_id] => 796461485
    [user_id] => 581
    [status] => COMPLETED
)

============================================================

[22:21:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[22:21:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767133298
    [base_string] => 2009491/api/v2/order/get_order_detail1767133298eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo4biXygYwjpqauQo4AUAB.Yyb17c6rIPthIfidV4A-RGpR-bCcwhJW4ioJWoX_KF0796461485
    [signature] => cc3b83f4a4e487a1...
    [url_length] => 858
)

============================================================

[22:21:38] INFO: ⏳ Executando cURL...
============================================================

[22:21:39] INFO: ✅ cURL executado
============================================================

[22:21:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34732c892035611d220f24500"}
    [curl_error] => 
)

============================================================

[22:21:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:21:39] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:21:39] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 796461485
    [user_id] => 581
)

============================================================

[22:39:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[22:39:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[22:39:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767134371
    [base_string] => 2009491/api/v2/order/get_order_detail1767134371eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 17a1a817d9bdfdbb...
    [url_length] => 858
)

============================================================

[22:39:31] INFO: ⏳ Executando cURL...
============================================================

[22:39:32] INFO: ✅ cURL executado
============================================================

[22:39:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34733088d6a966e04d4442600"}
    [curl_error] => 
)

============================================================

[22:39:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:39:32] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:39:32] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[23:07:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[23:07:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[23:07:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767136051
    [base_string] => 2009491/api/v2/order/get_order_detail1767136051eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEo7OzPygYwtNyyug84AUAB.PXTztfKUjXXm2ZFTOKIzFege3NxPmt21MYjyBBr3sUA675930217
    [signature] => 2c6555436c2c3ced...
    [url_length] => 858
)

============================================================

[23:07:31] INFO: ⏳ Executando cURL...
============================================================

[23:07:34] INFO: ✅ cURL executado
============================================================

[23:07:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347336cc233d1656d6edc7500"}
    [curl_error] => 
)

============================================================

[23:07:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:07:34] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:07:34] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 675930217
    [user_id] => 27
)

============================================================

[23:07:36] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[23:07:36] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[23:07:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PTFEJYD8
    [shop_id] => 675930217
)

============================================================

[23:07:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767136056
    [base_string] => 2009491/api/v2/order/get_order_detail1767136056eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEot7bRygYwvO-a8Qs4AUAB.wV64zltwyZ_6wcACIFbFivweerKkcjmAL54Qf5G0e0E675930217
    [signature] => 7c9eb8c9a7516a09...
    [url_length] => 858
)

============================================================

[23:07:36] INFO: ⏳ Executando cURL...
============================================================

[23:07:37] INFO: ✅ cURL executado
============================================================

[23:07:37] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":639492191,"buyer_username":"talitacintra531","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766085150,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mi5dqwgb63uqa8_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22994677017,"item_name":"Kit de Esmaltes Infantil Magical Phantasy Unicórnio Gliter Brilho e Magia Hipoalergenico","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":36,"model_id":0,"model_name":"","model_original_price":45.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":22994677017,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":801602756083712}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219PTFEJYD8","order_status":"COMPLETED","package_list":[{"package_number":"OFG219784350134248","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22994677017,"model_id":0,"model_quantity":1,"order_item_id":22994677017,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766085294,"payment_method":"Pix","pickup_done_time":1766163440,"recipient_address":{"name":"T******a","phone":"******35","town":"","district":"Paraíso","city":"Uberaba","state":"Minas Gerais","region":"BR","zipcode":"38082350","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":41.3,"update_time":1767115783}]},"request_id":"e3e3e7f347336cf0eaf36048e60a7000:010002a31ba5c181:000000bf28b20271"}
    [curl_error] => 
)

============================================================

[23:07:37] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:37] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219PTFEJYD8
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:37] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219PTFEJYD8
)

============================================================

[23:07:37] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219PTFEJYD8.json
============================================================

[23:07:37] INFO: 📦 Item #0
Array
(
    [item_name] => Kit de Esmaltes Infantil Magical Phantasy Unicórnio Gliter Brilho e Magia Hipoalergenico
    [item_sku] => DPX6438278502
    [model_sku] => 
    [sku_usado] => DPX6438278502
    [tem_dpx] => 1
)

============================================================

[23:07:37] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219PTFEJYD8
)

============================================================

[23:07:37] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [seller_id] => 1383494453
    [user_id] => 72
    [status] => COMPLETED
)

============================================================

[23:07:37] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220UGDTU7D3
    [shop_id] => 1383494453
)

============================================================

[23:07:37] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1383494453
    [timestamp] => 1767136057
    [base_string] => 2009491/api/v2/order/get_order_detail1767136057eyJhbGciOiJIUzI1NiJ9.CJPTehABGLXm2ZMFIAEoqvnQygYwpYmZoAI4AUAB.E3xZuihYcdXcDJME4DjW-Rm7pWdYeFZ1xN8gN-xyK-Y1383494453
    [signature] => 3b771ee5f2fbbb28...
    [url_length] => 859
)

============================================================

[23:07:37] INFO: ⏳ Executando cURL...
============================================================

[23:07:38] INFO: ✅ cURL executado
============================================================

[23:07:38] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1606436832,"buyer_username":"zyf0_jsmad","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766246157,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rffu-m4ao3mvtyuo8d4_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23098104040,"item_name":"Máquina de Boxe Musical Bluetooth Treino Com Luvas Agilidade Soco Fitness Esporte Academia Exercício","item_sku":"GH-6734701","main_item":false,"model_discounted_price":224.7,"model_id":0,"model_name":"","model_original_price":224.7,"model_quantity_purchased":1,"model_sku":"","order_item_id":23098104040,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220UGDTU7D3","order_status":"COMPLETED","package_list":[{"package_number":"OFG219945357116656","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23098104040,"model_id":0,"model_quantity":1,"order_item_id":23098104040,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766246290,"payment_method":"Pix","pickup_done_time":1766440611,"recipient_address":{"name":"F******a","phone":"******62","town":"","district":"Centro","city":"São Francisco do Conde","state":"Bahia","region":"BR","zipcode":"43900000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":10,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":239.18,"update_time":1767118064}]},"request_id":"e3e3e7f347336d09add5b9cda2ed3f00:010002fa06556358:0000006bf718c864"}
    [curl_error] => 
)

============================================================

[23:07:38] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:38] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220UGDTU7D3
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:38] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220UGDTU7D3
)

============================================================

[23:07:38] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220UGDTU7D3.json
============================================================

[23:07:38] INFO: 📦 Item #0
Array
(
    [item_name] => Máquina de Boxe Musical Bluetooth Treino Com Luvas Agilidade Soco Fitness Esporte Academia Exercício
    [item_sku] => GH-6734701
    [model_sku] => 
    [sku_usado] => GH-6734701
    [tem_dpx] => 
)

============================================================

[23:07:38] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220UGDTU7D3
)

============================================================

[23:07:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [seller_id] => 239780418
    [user_id] => 184
    [status] => COMPLETED
)

============================================================

[23:07:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [shop_id] => 239780418
)

============================================================

[23:07:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 239780418
    [timestamp] => 1767136059
    [base_string] => 2009491/api/v2/order/get_order_detail1767136059eyJhbGciOiJIUzI1NiJ9.CJPTehABGMKEq3IgASjhw9DKBjCWuIrQBDgBQAE.nXSJiper8EiG0fLqKArfFvlu02W-akm_1D49eq8RvYk239780418
    [signature] => 6adf87d3ce4ce38f...
    [url_length] => 857
)

============================================================

[23:07:39] INFO: ⏳ Executando cURL...
============================================================

[23:07:47] INFO: ✅ cURL executado
============================================================

[23:07:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347336d8c6de2d4c8ab38ab00"}
    [curl_error] => 
)

============================================================

[23:07:47] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:07:47] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:07:47] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 239780418
    [user_id] => 184
)

============================================================

[23:07:48] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[23:07:48] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[23:07:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233YSCF48K
    [shop_id] => 239780418
)

============================================================

[23:07:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 239780418
    [timestamp] => 1767136068
    [base_string] => 2009491/api/v2/order/get_order_detail1767136068eyJhbGciOiJIUzI1NiJ9.CJPTehABGMKEq3IgASjEttHKBjDsgJaPAzgBQAE.ljM0BS-fOmjmiqw0eXCXp0vEPMORSTYh9nEnWayQ2RU239780418
    [signature] => 4c0adc18ae73ed8d...
    [url_length] => 857
)

============================================================

[23:07:48] INFO: ⏳ Executando cURL...
============================================================

[23:07:49] INFO: ✅ cURL executado
============================================================

[23:07:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":763208546,"buyer_username":"amandateixeira19","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766438018,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821d7-mgh1d6pxsxzh23_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58200195484,"item_name":"Removedor De Placa Limpador De Dentes Elétrico Sonic Mancha","item_sku":"DPX8180240484","main_item":false,"model_discounted_price":18.8,"model_id":0,"model_name":"","model_original_price":20,"model_quantity_purchased":1,"model_sku":"","order_item_id":58200195484,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":800159512838144}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233YSCF48K","order_status":"COMPLETED","package_list":[{"package_number":"OFG220137218132970","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58200195484,"model_id":0,"model_quantity":1,"order_item_id":58200195484,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":375,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766438056,"payment_method":"Pix","pickup_done_time":1766514032,"recipient_address":{"name":"A******o","phone":"******50","town":"","district":"Manga","city":"Inhaúma","state":"Minas Gerais","region":"BR","zipcode":"35763000","full_address":"Jo******"},"region":"BR","return_request_due_date":1767456684,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":18.8,"update_time":1767116304}]},"request_id":"e3e3e7f347336daacfc28bb13b2d9d00:0100024c40ba87f5:0000006e00cc5802"}
    [curl_error] => 
)

============================================================

[23:07:49] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:49] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233YSCF48K
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:49] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512233YSCF48K
)

============================================================

[23:07:49] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512233YSCF48K.json
============================================================

[23:07:49] INFO: 📦 Item #0
Array
(
    [item_name] => Removedor De Placa Limpador De Dentes Elétrico Sonic Mancha
    [item_sku] => DPX8180240484
    [model_sku] => 
    [sku_usado] => DPX8180240484
    [tem_dpx] => 1
)

============================================================

[23:07:49] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512233YSCF48K
)

============================================================

[23:07:49] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[23:07:49] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259F6BG77W
    [shop_id] => 861037471
)

============================================================

[23:07:49] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767136069
    [base_string] => 2009491/api/v2/order/get_order_detail1767136069eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 95dd5bc8843e2247...
    [url_length] => 858
)

============================================================

[23:07:49] INFO: ⏳ Executando cURL...
============================================================

[23:07:51] INFO: ✅ cURL executado
============================================================

[23:07:51] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":528947866,"buyer_username":"mxe76x0as3","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766626358,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2469","series_number":"3","access_key":"33251254881101000148550030000024691871601615","issue_date":1766626422,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512259F6BG77W","order_status":"COMPLETED","package_list":[{"package_number":"OFG220325558120198","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766626391,"payment_method":"Pix","pickup_done_time":1766762857,"recipient_address":{"name":"M******s","phone":"******32","town":"","district":"Jardim Santo André","city":"Santo André","state":"São Paulo","region":"BR","zipcode":"09132699","full_address":"Tv******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.74,"update_time":1767118535}]},"request_id":"e3e3e7f347336dc37cead3505ca62100:010002f03b80440b:0000001d345c6f05"}
    [curl_error] => 
)

============================================================

[23:07:51] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:51] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512259F6BG77W
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:51] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512259F6BG77W
)

============================================================

[23:07:51] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512259F6BG77W.json
============================================================

[23:07:51] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[23:07:51] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512259F6BG77W
)

============================================================

[23:07:51] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [seller_id] => 544960064
    [user_id] => 144
    [status] => COMPLETED
)

============================================================

[23:07:51] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BHUU578H
    [shop_id] => 544960064
)

============================================================

[23:07:51] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 544960064
    [timestamp] => 1767136071
    [base_string] => 2009491/api/v2/order/get_order_detail1767136071eyJhbGciOiJIUzI1NiJ9.CJPTehABGMDc7YMCIAEo1-TQygYwxYed7ws4AUAB.oyIdU5V4KaqbuO-v6uC0KHAh4yVwcl-SOLj-08N30rM544960064
    [signature] => 84d3c005187fb4ee...
    [url_length] => 858
)

============================================================

[23:07:51] INFO: ⏳ Executando cURL...
============================================================

[23:07:54] INFO: ✅ cURL executado
============================================================

[23:07:54] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":586466951,"buyer_username":"jairdesouza106","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766697945,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-822x4-mhwenyw2snib7d_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58251560932,"item_name":"Kit 4 Banquetas Dobráveis Retrátil PRETA Metal Reforçado | Banco Portátil 32cm Pesca Camping Show | Leve","item_sku":"DPX5667338693","main_item":false,"model_discounted_price":43.92,"model_id":0,"model_name":"","model_original_price":62.75,"model_quantity_purchased":1,"model_sku":"","order_item_id":58251560932,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":221118439047168,"promotion_list":[{"promotion_type":"in_shop_flash_sale","promotion_id":221118439047168}],"promotion_type":"flash_sale","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BHUU578H","order_status":"COMPLETED","package_list":[{"package_number":"OFG220397146112946","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58251560932,"model_id":0,"model_quantity":1,"order_item_id":58251560932,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766697954,"payment_method":"Credit Card","pickup_done_time":1766773640,"recipient_address":{"name":"J**r","phone":"******69","town":"","district":"Santa rita","city":"Três de Maio","state":"Rio Grande do Sul","region":"BR","zipcode":"98910000","full_address":"Mo******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":46.33,"update_time":1767118722}]},"request_id":"e3e3e7f347336df8ec9ee5b761c8a900:010002182bee7b24:000000fb6970a80c"}
    [curl_error] => 
)

============================================================

[23:07:54] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:54] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BHUU578H
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:54] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226BHUU578H
)

============================================================

[23:07:54] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226BHUU578H.json
============================================================

[23:07:54] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 4 Banquetas Dobráveis Retrátil PRETA Metal Reforçado | Banco Portátil 32cm Pesca Camping Show | Leve
    [item_sku] => DPX5667338693
    [model_sku] => 
    [sku_usado] => DPX5667338693
    [tem_dpx] => 1
)

============================================================

[23:07:54] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251226BHUU578H
)

============================================================

[23:07:54] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [seller_id] => 852006270
    [user_id] => 132
    [status] => COMPLETED
)

============================================================

[23:07:54] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [shop_id] => 852006270
)

============================================================

[23:07:54] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 852006270
    [timestamp] => 1767136074
    [base_string] => 2009491/api/v2/order/get_order_detail1767136074eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEohsPQygYwvLn2lww4AUAB.oI2Al_9RQ5H3x0MawjJRmwHp8dz0KuI9gnI3mlPKCvY852006270
    [signature] => eaf6850691f2d891...
    [url_length] => 858
)

============================================================

[23:07:54] INFO: ⏳ Executando cURL...
============================================================

[23:07:55] INFO: ✅ cURL executado
============================================================

[23:07:55] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347336e113525c795bc462e00"}
    [curl_error] => 
)

============================================================

[23:07:55] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:07:55] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:07:55] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 852006270
    [user_id] => 132
)

============================================================

[23:07:56] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[23:07:56] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[23:07:56] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217KTKU04PJ
    [shop_id] => 852006270
)

============================================================

[23:07:56] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 852006270
    [timestamp] => 1767136076
    [base_string] => 2009491/api/v2/order/get_order_detail1767136076eyJhbGciOiJIUzI1NiJ9.CJPTehABGP6qopYDIAEozLbRygYwmoS80A84AUAB.xWa0qVaxWAMdkiyWOZHH9Fpy046J7XyvHnmxWij9l2A852006270
    [signature] => 3776ac665a83fb6f...
    [url_length] => 858
)

============================================================

[23:07:56] INFO: ⏳ Executando cURL...
============================================================

[23:07:58] INFO: ✅ cURL executado
============================================================

[23:07:58] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":22.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1675744866,"buyer_username":"09sl54dhp1","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765982219,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":22.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824ik-meqcetb2bthi67_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22994410121,"item_name":"Kit De Beleza Infantil  Mechas Coloridas Para O Cabelo","item_sku":"DPX1739881853","main_item":false,"model_discounted_price":38.54,"model_id":0,"model_name":"","model_original_price":41,"model_quantity_purchased":1,"model_sku":"","order_item_id":22994410121,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":800261988089856}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251217KTKU04PJ","order_status":"COMPLETED","package_list":[{"package_number":"OFG219681419146027","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22994410121,"model_id":0,"model_quantity":1,"order_item_id":22994410121,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765982417,"payment_method":"Pix","pickup_done_time":1765997742,"recipient_address":{"name":"W******a","phone":"******10","town":"","district":"Tapanã (Icoaraci)","city":"Belém","state":"Pará","region":"BR","zipcode":"66833000","full_address":"Ro******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":39.69,"update_time":1767118989}]},"request_id":"e3e3e7f347336e2f8a0d70c964913400:010002328bdf9b28:00000017a9aad31e"}
    [curl_error] => 
)

============================================================

[23:07:58] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:58] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251217KTKU04PJ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:58] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251217KTKU04PJ
)

============================================================

[23:07:58] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251217KTKU04PJ.json
============================================================

[23:07:58] INFO: 📦 Item #0
Array
(
    [item_name] => Kit De Beleza Infantil  Mechas Coloridas Para O Cabelo
    [item_sku] => DPX1739881853
    [model_sku] => 
    [sku_usado] => DPX1739881853
    [tem_dpx] => 1
)

============================================================

[23:07:58] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251217KTKU04PJ
)

============================================================

[23:07:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:07:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M8X5HE6U
    [shop_id] => 504113848
)

============================================================

[23:07:58] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136078
    [base_string] => 2009491/api/v2/order/get_order_detail1767136078eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 1711aee48a6880e1...
    [url_length] => 858
)

============================================================

[23:07:58] INFO: ⏳ Executando cURL...
============================================================

[23:07:59] INFO: ✅ cURL executado
============================================================

[23:07:59] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.92,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":372278231,"buyer_username":"bdm2019","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765997597,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.92,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19891","series_number":"5","access_key":"41251232111081000193550050000198911830925695","issue_date":1765997918,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218M8X5HE6U","order_status":"COMPLETED","package_list":[{"package_number":"OFG219696797110819","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765997604,"payment_method":"Credit Card","pickup_done_time":1766075739,"recipient_address":{"name":"B******a","phone":"******35","town":"","district":"Parque Piratininga","city":"Itaquaquecetuba","state":"São Paulo","region":"BR","zipcode":"08583260","full_address":"R ******"},"region":"BR","return_request_due_date":1767378797,"reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767119847}]},"request_id":"e3e3e7f347336e495efe5b4b5bd7be00:010002616451c2e2:000000eb75a468e0"}
    [curl_error] => 
)

============================================================

[23:07:59] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:07:59] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218M8X5HE6U
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:07:59] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251218M8X5HE6U
)

============================================================

[23:07:59] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251218M8X5HE6U.json
============================================================

[23:07:59] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[23:07:59] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218M8X5HE6U
)

============================================================

[23:08:00] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:08:00] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218PCREXWPK
    [shop_id] => 504113848
)

============================================================

[23:08:00] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136080
    [base_string] => 2009491/api/v2/order/get_order_detail1767136080eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 44a0077c7b839597...
    [url_length] => 858
)

============================================================

[23:08:00] INFO: ⏳ Executando cURL...
============================================================

[23:08:01] INFO: ✅ cURL executado
============================================================

[23:08:01] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":22.65,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1343303880,"buyer_username":"luanaduarte824","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766070420,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":22.65,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19981","series_number":"5","access_key":"41251232111081000193550050000199811695024574","issue_date":1766142447,"total_value":4.11,"products_total_value":4.11,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rcfb-m6jyvhsn13qh25_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23193729090,"item_name":"Fita Dupla Face Transparente Extra Forte 12mm x 2m Adere","item_sku":"13506939461","main_item":false,"model_discounted_price":13.99,"model_id":238780794768,"model_name":"12mm x 2 m","model_original_price":13.99,"model_quantity_purchased":1,"model_sku":"13506939461-12mm x 2 m","order_item_id":23193729090,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.05,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rasn-mamv5aakmonk94_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998560376,"item_name":"Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report","item_sku":"SENINHA4COLO","main_item":false,"model_discounted_price":12.06,"model_id":199608168335,"model_name":"Report (Azul 100 fls)","model_original_price":18,"model_quantity_purchased":1,"model_sku":"A4AZUL","order_item_id":23998560376,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218PCREXWPK","order_status":"COMPLETED","package_list":[{"package_number":"OFG219769620156191","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":23193729090,"model_id":238780794768,"model_quantity":1,"order_item_id":23193729090,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":23998560376,"model_id":199608168335,"model_quantity":1,"order_item_id":23998560376,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":4200,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766070429,"payment_method":"Credit Card","pickup_done_time":1766162480,"recipient_address":{"name":"L******e","phone":"******95","town":"","district":"Salgado Filho","city":"Salgado Filho","state":"Paraná","region":"BR","zipcode":"85620125","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":63.7,"update_time":1767119851}]},"request_id":"e3e3e7f347336e5e8d5d498b39817a00:010002166067ca15:000000d910331c41"}
    [curl_error] => 
)

============================================================

[23:08:01] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:08:01] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218PCREXWPK
    [order_status] => COMPLETED
    [items_count] => 3
)

============================================================

[23:08:01] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 3
    [order_sn] => 251218PCREXWPK
)

============================================================

[23:08:01] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251218PCREXWPK.json
============================================================

[23:08:01] INFO: 📦 Item #0
Array
(
    [item_name] => Fita Dupla Face Transparente Extra Forte 12mm x 2m Adere
    [item_sku] => 13506939461
    [model_sku] => 13506939461-12mm x 2 m
    [sku_usado] => 13506939461
    [tem_dpx] => 
)

============================================================

[23:08:01] INFO: 📦 Item #1
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[23:08:01] INFO: 📦 Item #2
Array
(
    [item_name] => Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report
    [item_sku] => SENINHA4COLO
    [model_sku] => A4AZUL
    [sku_usado] => SENINHA4COLO
    [tem_dpx] => 
)

============================================================

[23:08:01] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218PCREXWPK
)

============================================================

[23:08:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512126Y2PFFAW
    [seller_id] => 1408943514
    [user_id] => 1110
    [status] => COMPLETED
)

============================================================

[23:08:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512126Y2PFFAW
    [shop_id] => 1408943514
)

============================================================

[23:08:01] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1408943514
    [timestamp] => 1767136081
    [base_string] => 2009491/api/v2/order/get_order_detail1767136081eyJhbGciOiJIUzI1NiJ9.CJPTehABGJqL658FIAEotIDRygYwyoOw4A84AUAB.W8a95vHbcfqSkrbFZI3SHYjMaEmTAaYrTGc0xQollKE1408943514
    [signature] => 7a5bcbbf342f585f...
    [url_length] => 859
)

============================================================

[23:08:01] INFO: ⏳ Executando cURL...
============================================================

[23:08:02] INFO: ✅ cURL executado
============================================================

[23:08:02] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":25.07,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":654443574,"buyer_username":"tacianamorais","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765540335,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":25.07,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35251247638789000174550020000010141132512593","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rd5t-m7v3v8mrovgtf5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":20998103575,"item_name":"Gel Solido Alongamento de Tips Transparente 1 Real Love 15ml","item_sku":"80542","main_item":false,"model_discounted_price":21.84,"model_id":0,"model_name":"","model_original_price":22.99,"model_quantity_purchased":2,"model_sku":"","order_item_id":20998103575,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":771101123067904,"promotion_list":[{"promotion_type":"platform_sale","promotion_id":771101123067904}],"promotion_type":"product_promotion_BR","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512126Y2PFFAW","order_status":"COMPLETED","package_list":[{"package_number":"OFG219239535171120","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":20998103575,"model_id":0,"model_quantity":2,"order_item_id":20998103575,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":200,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765540371,"payment_method":"Pix","pickup_done_time":1765547791,"recipient_address":{"name":"T******s","phone":"******42","town":"","district":"Rural","city":"Esperantina","state":"Piauí","region":"BR","zipcode":"64180000","full_address":"Ma******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765594799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":48.75,"update_time":1767119397}]},"request_id":"e3e3e7f347336e7473724353ea2aea00:010002718c344aa6:000000df7ad29187"}
    [curl_error] => 
)

============================================================

[23:08:02] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:08:02] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512126Y2PFFAW
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:08:02] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512126Y2PFFAW
)

============================================================

[23:08:02] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512126Y2PFFAW.json
============================================================

[23:08:02] INFO: 📦 Item #0
Array
(
    [item_name] => Gel Solido Alongamento de Tips Transparente 1 Real Love 15ml
    [item_sku] => 80542
    [model_sku] => 
    [sku_usado] => 80542
    [tem_dpx] => 
)

============================================================

[23:08:02] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512126Y2PFFAW
)

============================================================

[23:08:03] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[23:08:03] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251217JHKTCX72
    [shop_id] => 675930217
)

============================================================

[23:08:03] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767136083
    [base_string] => 2009491/api/v2/order/get_order_detail1767136083eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEot7bRygYwvO-a8Qs4AUAB.wV64zltwyZ_6wcACIFbFivweerKkcjmAL54Qf5G0e0E675930217
    [signature] => 44a8cf57ae2b5427...
    [url_length] => 858
)

============================================================

[23:08:03] INFO: ⏳ Executando cURL...
============================================================

[23:08:04] INFO: ✅ cURL executado
============================================================

[23:08:04] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401524391,"buyer_username":"daysamarcattodesousa","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765938195,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mi5dqwgb63uqa8_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22994677017,"item_name":"Kit de Esmaltes Infantil Magical Phantasy Unicórnio Gliter Brilho e Magia Hipoalergenico","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":36,"model_id":0,"model_name":"","model_original_price":45.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":22994677017,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":801602756083712}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251217JHKTCX72","order_status":"COMPLETED","package_list":[{"package_number":"OFG219637395115114","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22994677017,"model_id":0,"model_quantity":1,"order_item_id":22994677017,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765938201,"payment_method":"Credit Card","pickup_done_time":1765997742,"recipient_address":{"name":"D****** ","phone":"******91","town":"","district":"Zona III","city":"Umuarama","state":"Paraná","region":"BR","zipcode":"87502180","full_address":"R ******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":35.28,"update_time":1767119597}]},"request_id":"e3e3e7f347336e8d448f39d9d696a600:010002277cbbe537:00000098fd4aeac5"}
    [curl_error] => 
)

============================================================

[23:08:04] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:08:04] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251217JHKTCX72
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:08:04] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251217JHKTCX72
)

============================================================

[23:08:04] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251217JHKTCX72.json
============================================================

[23:08:04] INFO: 📦 Item #0
Array
(
    [item_name] => Kit de Esmaltes Infantil Magical Phantasy Unicórnio Gliter Brilho e Magia Hipoalergenico
    [item_sku] => DPX6438278502
    [model_sku] => 
    [sku_usado] => DPX6438278502
    [tem_dpx] => 1
)

============================================================

[23:08:04] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251217JHKTCX72
)

============================================================

[23:12:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[23:12:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RJRGVTYA
    [shop_id] => 1603130895
)

============================================================

[23:12:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767136359
    [base_string] => 2009491/api/v2/order/get_order_detail1767136359eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo9JrRygYwhefXdDgBQAE.-JPCSjZZFBLiQwZ0sCft4FcVp2hIReohikNfW5fob_k1603130895
    [signature] => d7694aa1622371c4...
    [url_length] => 858
)

============================================================

[23:12:39] INFO: ⏳ Executando cURL...
============================================================

[23:12:41] INFO: ✅ cURL executado
============================================================

[23:12:41] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":501749504,"buyer_username":"laiscristinamakeup","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766145584,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mhuvrmvjwf7mc6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23499187237,"item_name":"Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":34,"model_id":0,"model_name":"","model_original_price":39.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23499187237,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":790815173952512}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219RJRGVTYA","order_status":"COMPLETED","package_list":[{"package_number":"OFG219844784182098","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23499187237,"model_id":0,"model_quantity":1,"order_item_id":23499187237,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766145594,"payment_method":"Credit Card","pickup_done_time":1766163440,"recipient_address":{"name":"L******o","phone":"******15","town":"","district":"Jardim Mercedes","city":"São Carlos","state":"São Paulo","region":"BR","zipcode":"13570501","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34,"update_time":1767119635}]},"request_id":"e3e3e7f347337f06f9166b4c55191700:0100026059a4c3c0:0000007eb6c143ae"}
    [curl_error] => 
)

============================================================

[23:12:41] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:41] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219RJRGVTYA
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:41] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219RJRGVTYA
)

============================================================

[23:12:41] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219RJRGVTYA.json
============================================================

[23:12:41] INFO: 📦 Item #0
Array
(
    [item_name] => Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia
    [item_sku] => DPX6438278502
    [model_sku] => 
    [sku_usado] => DPX6438278502
    [tem_dpx] => 1
)

============================================================

[23:12:41] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219RJRGVTYA
)

============================================================

[23:12:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[23:12:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226C2C31JCN
    [shop_id] => 861037471
)

============================================================

[23:12:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767136361
    [base_string] => 2009491/api/v2/order/get_order_detail1767136361eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => e0b7ef20887ddd38...
    [url_length] => 858
)

============================================================

[23:12:41] INFO: ⏳ Executando cURL...
============================================================

[23:12:42] INFO: ✅ cURL executado
============================================================

[23:12:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1057587325,"buyer_username":"flaviocanidia","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766715670,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2494","series_number":"3","access_key":"33251254881101000148550030000024941353263480","issue_date":1766715825,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226C2C31JCN","order_status":"COMPLETED","package_list":[{"package_number":"OFG220414870194982","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766715709,"payment_method":"Pix","pickup_done_time":1766762855,"recipient_address":{"name":"F******s","phone":"******50","town":"","district":"Vila Embratel","city":"São Luís","state":"Maranhão","region":"BR","zipcode":"65081435","full_address":"2ª******"},"region":"BR","return_request_due_date":1767724237,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":26.26,"update_time":1767119673}]},"request_id":"e3e3e7f347337f203c27ffa2a8c3d400:010002e3b9743333:00000000aceccd23"}
    [curl_error] => 
)

============================================================

[23:12:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:42] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226C2C31JCN
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:42] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226C2C31JCN
)

============================================================

[23:12:42] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226C2C31JCN.json
============================================================

[23:12:42] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[23:12:42] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226C2C31JCN
)

============================================================

[23:12:42] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:42] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PJ4KDNMY
    [shop_id] => 504113848
)

============================================================

[23:12:42] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136362
    [base_string] => 2009491/api/v2/order/get_order_detail1767136362eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => bc0065df3716082d...
    [url_length] => 858
)

============================================================

[23:12:42] INFO: ⏳ Executando cURL...
============================================================

[23:12:43] INFO: ✅ cURL executado
============================================================

[23:12:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1241116294,"buyer_username":"liannamoreira","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766076197,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19995","series_number":"5","access_key":"41251232111081000193550050000199951458008880","issue_date":1766142469,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219PJ4KDNMY","order_status":"COMPLETED","package_list":[{"package_number":"OFG219775397184194","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766076204,"payment_method":"Credit Card","pickup_done_time":1766162389,"recipient_address":{"name":"L******a","phone":"******54","town":"","district":"Centro","city":"Juiz de Fora","state":"Minas Gerais","region":"BR","zipcode":"36035000","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.01,"update_time":1767123316}]},"request_id":"e3e3e7f347337f363380d6357da6fc00:0100020c28a14837:00000062857cfd99"}
    [curl_error] => 
)

============================================================

[23:12:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:43] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219PJ4KDNMY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:43] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219PJ4KDNMY
)

============================================================

[23:12:43] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219PJ4KDNMY.json
============================================================

[23:12:43] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[23:12:43] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251219PJ4KDNMY
)

============================================================

[23:12:44] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:44] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BNVUJYEK
    [shop_id] => 504113848
)

============================================================

[23:12:44] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136364
    [base_string] => 2009491/api/v2/order/get_order_detail1767136364eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 8f3d74d96d43c340...
    [url_length] => 858
)

============================================================

[23:12:44] INFO: ⏳ Executando cURL...
============================================================

[23:12:45] INFO: ✅ cURL executado
============================================================

[23:12:45] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":376168877,"buyer_username":"marcioraffagnato","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766702274,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20664","series_number":"5","access_key":"41251232111081000193550050000206641824836320","issue_date":1766702327,"total_value":3.75,"products_total_value":3.75,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra3w-mbijn7fw1khh4b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":37.52,"model_id":159785139715,"model_name":"36 cores","model_original_price":56,"model_quantity_purchased":1,"model_sku":"CANE36CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BNVUJYEK","order_status":"COMPLETED","package_list":[{"package_number":"OFG220401474124639","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139715,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766702294,"payment_method":"SParcelado","pickup_done_time":1766758111,"recipient_address":{"name":"M******o","phone":"******96","town":"","district":"Granjas Cabuçu (Manilha)","city":"Itaboraí","state":"Rio de Janeiro","region":"BR","zipcode":"24860472","full_address":"Ru******"},"region":"BR","return_request_due_date":1767625319,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":37.52,"update_time":1767123329}]},"request_id":"e3e3e7f347337f4bafd3f02036c49e00:01000260e121c7c0:0000000c0f7b2a4d"}
    [curl_error] => 
)

============================================================

[23:12:45] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:45] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BNVUJYEK
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:45] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226BNVUJYEK
)

============================================================

[23:12:45] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226BNVUJYEK.json
============================================================

[23:12:45] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE36CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[23:12:45] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226BNVUJYEK
)

============================================================

[23:12:45] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:45] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512246NEAVJFD
    [shop_id] => 504113848
)

============================================================

[23:12:45] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136365
    [base_string] => 2009491/api/v2/order/get_order_detail1767136365eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 577a85152d9257bb...
    [url_length] => 858
)

============================================================

[23:12:45] INFO: ⏳ Executando cURL...
============================================================

[23:12:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [seller_id] => 1035641613
    [user_id] => 33
    [status] => COMPLETED
)

============================================================

[23:12:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [shop_id] => 1035641613
)

============================================================

[23:12:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1767136366
    [base_string] => 2009491/api/v2/order/get_order_detail1767136366eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEoo_jQygYwypSYsAQ4AUAB.CdoLUb9xcMKswJqD9nS9qGcoAGZ6AHHUImHHjRQm9ks1035641613
    [signature] => 929a7ff2cc9594b8...
    [url_length] => 859
)

============================================================

[23:12:46] INFO: ⏳ Executando cURL...
============================================================

[23:12:46] INFO: ✅ cURL executado
============================================================

[23:12:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":650330518,"buyer_username":"julianapaulla067","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766529989,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20553","series_number":"5","access_key":"41251232111081000193550050000205531767171027","issue_date":1766530121,"total_value":1.4,"products_total_value":1.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":13.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512246NEAVJFD","order_status":"COMPLETED","package_list":[{"package_number":"OFG220229188191234","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766530078,"payment_method":"Pix","pickup_done_time":1766757977,"recipient_address":{"name":"J******s","phone":"******18","town":"","district":"Parque Eldorado","city":"Campos dos Goytacazes","state":"Rio de Janeiro","region":"BR","zipcode":"28090640","full_address":"Ru******"},"region":"BR","return_request_due_date":1767724142,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":13.99,"update_time":1767123327}]},"request_id":"e3e3e7f347337f6163e42bc74ff96e00:01000214733110a3:000000992847903a"}
    [curl_error] => 
)

============================================================

[23:12:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:46] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512246NEAVJFD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:46] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512246NEAVJFD
)

============================================================

[23:12:46] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512246NEAVJFD.json
============================================================

[23:12:46] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[23:12:46] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512246NEAVJFD
)

============================================================

[23:12:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [seller_id] => 1035641613
    [user_id] => 33
    [status] => COMPLETED
)

============================================================

[23:12:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233VXPFKYQ
    [shop_id] => 1035641613
)

============================================================

[23:12:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1767136366
    [base_string] => 2009491/api/v2/order/get_order_detail1767136366eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEoo_jQygYwypSYsAQ4AUAB.CdoLUb9xcMKswJqD9nS9qGcoAGZ6AHHUImHHjRQm9ks1035641613
    [signature] => 929a7ff2cc9594b8...
    [url_length] => 859
)

============================================================

[23:12:46] INFO: ⏳ Executando cURL...
============================================================

[23:12:47] INFO: ✅ cURL executado
============================================================

[23:12:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":21.74,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401967739,"buyer_username":"ravisantos87","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766434975,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":21.74,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdw3-md0yqmgnyb52ca_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23094288126,"item_name":"hidratante batom labial cupcake gloss estilo girl kids kit com 8","item_sku":"DPX4331557235","main_item":false,"model_discounted_price":41.56,"model_id":0,"model_name":"","model_original_price":41.56,"model_quantity_purchased":1,"model_sku":"","order_item_id":23094288126,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233VXPFKYQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220134176105462","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23094288126,"model_id":0,"model_quantity":1,"order_item_id":23094288126,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766434983,"payment_method":"Credit Card","pickup_done_time":1766514032,"recipient_address":{"name":"R******a","phone":"******28","town":"","district":"Jardim Lago Azul","city":"Novo Gama","state":"Goiás","region":"BR","zipcode":"72865142","full_address":"Qu******"},"region":"BR","return_request_due_date":1767724911,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":41.22,"update_time":1767120783}]},"request_id":"e3e3e7f347337f6d739b1dd6bae18300:010002e818bf3c42:00000031c3807176"}
    [curl_error] => 
)

============================================================

[23:12:47] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:47] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233VXPFKYQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:47] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[23:12:47] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512233VXPFKYQ.json
============================================================

[23:12:47] INFO: 📦 Item #0
Array
(
    [item_name] => hidratante batom labial cupcake gloss estilo girl kids kit com 8
    [item_sku] => DPX4331557235
    [model_sku] => 
    [sku_usado] => DPX4331557235
    [tem_dpx] => 1
)

============================================================

[23:12:47] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[23:12:47] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[23:12:47] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [shop_id] => 411294579
)

============================================================

[23:12:47] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767136367
    [base_string] => 2009491/api/v2/order/get_order_detail1767136367eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEo7YnRygYwl7rSmAU4AUAB.IETWWEuCH7zhPZC6Xj2XtoiQ1jtLkeW66Fns_itgK48411294579
    [signature] => 2ee04eb6a26f42b0...
    [url_length] => 858
)

============================================================

[23:12:47] INFO: ⏳ Executando cURL...
============================================================

[23:12:48] INFO: ✅ cURL executado
============================================================

[23:12:48] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":21.74,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":401967739,"buyer_username":"ravisantos87","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766434975,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":21.74,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdw3-md0yqmgnyb52ca_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23094288126,"item_name":"hidratante batom labial cupcake gloss estilo girl kids kit com 8","item_sku":"DPX4331557235","main_item":false,"model_discounted_price":41.56,"model_id":0,"model_name":"","model_original_price":41.56,"model_quantity_purchased":1,"model_sku":"","order_item_id":23094288126,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233VXPFKYQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220134176105462","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23094288126,"model_id":0,"model_quantity":1,"order_item_id":23094288126,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766434983,"payment_method":"Credit Card","pickup_done_time":1766514032,"recipient_address":{"name":"R******a","phone":"******28","town":"","district":"Jardim Lago Azul","city":"Novo Gama","state":"Goiás","region":"BR","zipcode":"72865142","full_address":"Qu******"},"region":"BR","return_request_due_date":1767724911,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":41.22,"update_time":1767120783}]},"request_id":"e3e3e7f347337f76ccbb7425fac15f00:010002d1fd13ec00:000000feb2db426b"}
    [curl_error] => 
)

============================================================

[23:12:48] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:48] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233VXPFKYQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:48] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[23:12:48] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512233VXPFKYQ.json
============================================================

[23:12:48] INFO: 📦 Item #0
Array
(
    [item_name] => hidratante batom labial cupcake gloss estilo girl kids kit com 8
    [item_sku] => DPX4331557235
    [model_sku] => 
    [sku_usado] => DPX4331557235
    [tem_dpx] => 1
)

============================================================

[23:12:48] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512233VXPFKYQ
)

============================================================

[23:12:48] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[23:12:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216H9YA8YSB
    [shop_id] => 411294579
)

============================================================

[23:12:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767136368
    [base_string] => 2009491/api/v2/order/get_order_detail1767136368eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEo7YnRygYwl7rSmAU4AUAB.IETWWEuCH7zhPZC6Xj2XtoiQ1jtLkeW66Fns_itgK48411294579
    [signature] => cc109f59dc7fa58f...
    [url_length] => 858
)

============================================================

[23:12:48] INFO: ⏳ Executando cURL...
============================================================

[23:12:49] INFO: ✅ cURL executado
============================================================

[23:12:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1499749988,"buyer_username":"vxlyzrtdd5","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765895630,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821fn-mgmy0yimztvtf3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58250301144,"item_name":"Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido","item_sku":"DPX7240755682","main_item":false,"model_discounted_price":33.53,"model_id":0,"model_name":"","model_original_price":37.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58250301144,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216H9YA8YSB","order_status":"COMPLETED","package_list":[{"package_number":"OFG219594830167655","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58250301144,"model_id":0,"model_quantity":1,"order_item_id":58250301144,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765895764,"payment_method":"Pix","pickup_done_time":1765985600,"recipient_address":{"name":"A******e","phone":"******42","town":"","district":"Rodoviária","city":"João Neiva","state":"Espírito Santo","region":"BR","zipcode":"29680000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":32.52,"update_time":1767120877}]},"request_id":"e3e3e7f347337f87efae12735492cf00:0100029f51f6603c:0000009394a5d494"}
    [curl_error] => 
)

============================================================

[23:12:49] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:49] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216H9YA8YSB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:49] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251216H9YA8YSB
)

============================================================

[23:12:49] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251216H9YA8YSB.json
============================================================

[23:12:49] INFO: 📦 Item #0
Array
(
    [item_name] => Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido
    [item_sku] => DPX7240755682
    [model_sku] => 
    [sku_usado] => DPX7240755682
    [tem_dpx] => 1
)

============================================================

[23:12:49] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216H9YA8YSB
)

============================================================

[23:12:49] INFO: ✅ cURL executado
============================================================

[23:12:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1499749988,"buyer_username":"vxlyzrtdd5","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765895630,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821fn-mgmy0yimztvtf3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58250301144,"item_name":"Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido","item_sku":"DPX7240755682","main_item":false,"model_discounted_price":33.53,"model_id":0,"model_name":"","model_original_price":37.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58250301144,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216H9YA8YSB","order_status":"COMPLETED","package_list":[{"package_number":"OFG219594830167655","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58250301144,"model_id":0,"model_quantity":1,"order_item_id":58250301144,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":834,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765895764,"payment_method":"Pix","pickup_done_time":1765985600,"recipient_address":{"name":"A******e","phone":"******42","town":"","district":"Rodoviária","city":"João Neiva","state":"Espírito Santo","region":"BR","zipcode":"29680000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766026799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":32.52,"update_time":1767120877}]},"request_id":"e3e3e7f347337f8ccc472bad354b4700:0100023ba89be865:0000005bd25eda5f"}
    [curl_error] => 
)

============================================================

[23:12:49] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:49] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216H9YA8YSB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:49] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251216H9YA8YSB
)

============================================================

[23:12:49] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251216H9YA8YSB.json
============================================================

[23:12:49] INFO: 📦 Item #0
Array
(
    [item_name] => Regata Efeito Sauna Queima Gordura – Modeladora, Térmica, Alta Compressão e Emagrecimento Rápido
    [item_sku] => DPX7240755682
    [model_sku] => 
    [sku_usado] => DPX7240755682
    [tem_dpx] => 1
)

============================================================

[23:12:49] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216H9YA8YSB
)

============================================================

[23:12:49] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[23:12:49] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [shop_id] => 526192906
)

============================================================

[23:12:49] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767136369
    [base_string] => 2009491/api/v2/order/get_order_detail1767136369eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo7LjRygYwk7a6zwQ4AUAB.JxE980Ri9BsVeEqkAo6BYQwa5GER4m1tIcaxwIcI05Q526192906
    [signature] => efcab72d5391afe7...
    [url_length] => 858
)

============================================================

[23:12:49] INFO: ⏳ Executando cURL...
============================================================

[23:12:49] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[23:12:49] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251207PBV8TRSJ
    [shop_id] => 526192906
)

============================================================

[23:12:49] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767136369
    [base_string] => 2009491/api/v2/order/get_order_detail1767136369eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo7LjRygYwk7a6zwQ4AUAB.JxE980Ri9BsVeEqkAo6BYQwa5GER4m1tIcaxwIcI05Q526192906
    [signature] => efcab72d5391afe7...
    [url_length] => 858
)

============================================================

[23:12:49] INFO: ⏳ Executando cURL...
============================================================

[23:12:50] INFO: ✅ cURL executado
============================================================

[23:12:50] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":23.87,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1594863974,"buyer_username":"c0y4grgdp8","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765069475,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":23.87,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg9fuf8jls055a_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23294387452,"item_name":"Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V","item_sku":"DPX5060390289","main_item":false,"model_discounted_price":139.95,"model_id":0,"model_name":"","model_original_price":139.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":23294387452,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251207PBV8TRSJ","order_status":"COMPLETED","package_list":[{"package_number":"OFG218768675137415","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23294387452,"model_id":0,"model_quantity":1,"order_item_id":23294387452,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765069694,"payment_method":"Pix","pickup_done_time":1765229640,"recipient_address":{"name":"M******o","phone":"******73","town":"","district":"Centro","city":"Santo Antônio","state":"Rio Grande do Norte","region":"BR","zipcode":"59255000","full_address":"Ma******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765249199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":163.82,"update_time":1767121269}]},"request_id":"e3e3e7f347337fa10c269288f92c2900:010002afc5ed0813:000000f7b06c7202"}
    [curl_error] => 
)

============================================================

[23:12:50] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:50] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251207PBV8TRSJ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:50] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[23:12:50] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251207PBV8TRSJ.json
============================================================

[23:12:50] INFO: 📦 Item #0
Array
(
    [item_name] => Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V
    [item_sku] => DPX5060390289
    [model_sku] => 
    [sku_usado] => DPX5060390289
    [tem_dpx] => 1
)

============================================================

[23:12:50] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[23:12:50] INFO: ✅ cURL executado
============================================================

[23:12:50] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":23.87,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1594863974,"buyer_username":"c0y4grgdp8","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765069475,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":23.87,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mg9fuf8jls055a_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23294387452,"item_name":"Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V","item_sku":"DPX5060390289","main_item":false,"model_discounted_price":139.95,"model_id":0,"model_name":"","model_original_price":139.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":23294387452,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251207PBV8TRSJ","order_status":"COMPLETED","package_list":[{"package_number":"OFG218768675137415","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23294387452,"model_id":0,"model_quantity":1,"order_item_id":23294387452,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765069694,"payment_method":"Pix","pickup_done_time":1765229640,"recipient_address":{"name":"M******o","phone":"******73","town":"","district":"Centro","city":"Santo Antônio","state":"Rio Grande do Norte","region":"BR","zipcode":"59255000","full_address":"Ma******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765249199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":163.82,"update_time":1767121269}]},"request_id":"e3e3e7f347337fa25583e16c9d2e5100:01000271bf5a9dfb:000000488fc7a33e"}
    [curl_error] => 
)

============================================================

[23:12:50] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:50] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251207PBV8TRSJ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:50] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[23:12:50] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251207PBV8TRSJ.json
============================================================

[23:12:50] INFO: 📦 Item #0
Array
(
    [item_name] => Escova Secadora Elétrica 3 Em 1 Profissional Alisa Seca 110V
    [item_sku] => DPX5060390289
    [model_sku] => 
    [sku_usado] => DPX5060390289
    [tem_dpx] => 1
)

============================================================

[23:12:50] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251207PBV8TRSJ
)

============================================================

[23:12:50] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:50] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [shop_id] => 504113848
)

============================================================

[23:12:51] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136370
    [base_string] => 2009491/api/v2/order/get_order_detail1767136370eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 5db330a2445a63aa...
    [url_length] => 858
)

============================================================

[23:12:51] INFO: ⏳ Executando cURL...
============================================================

[23:12:51] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:51] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512235XEHM7XQ
    [shop_id] => 504113848
)

============================================================

[23:12:51] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136371
    [base_string] => 2009491/api/v2/order/get_order_detail1767136371eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => a7ce0f33ac4acd4f...
    [url_length] => 858
)

============================================================

[23:12:51] INFO: ⏳ Executando cURL...
============================================================

[23:12:52] INFO: ✅ cURL executado
============================================================

[23:12:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":975331026,"buyer_username":"francielediniz846","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766505300,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20516","series_number":"5","access_key":"41251232111081000193550050000205161259227580","issue_date":1766505518,"total_value":1.54,"products_total_value":1.54,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra2s-mbijn60k3a1935_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":15.41,"model_id":159785139713,"model_name":"12 cores","model_original_price":23,"model_quantity_purchased":1,"model_sku":"CANE12CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512235XEHM7XQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220204500112503","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139713,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766505349,"payment_method":"Pix","pickup_done_time":1766758106,"recipient_address":{"name":"F******z","phone":"******45","town":"","district":"Posse","city":"Petrópolis","state":"Rio de Janeiro","region":"BR","zipcode":"25770460","full_address":"Es******"},"region":"BR","return_request_due_date":1767724924,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.41,"update_time":1767123327}]},"request_id":"e3e3e7f347337fb6907585ba71589400:0100022aeafc496e:000000b8bd52148d"}
    [curl_error] => 
)

============================================================

[23:12:52] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:52] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512235XEHM7XQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:52] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[23:12:52] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512235XEHM7XQ.json
============================================================

[23:12:52] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE12CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[23:12:52] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[23:12:52] INFO: ✅ cURL executado
============================================================

[23:12:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":975331026,"buyer_username":"francielediniz846","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766505300,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20516","series_number":"5","access_key":"41251232111081000193550050000205161259227580","issue_date":1766505518,"total_value":1.54,"products_total_value":1.54,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra2s-mbijn60k3a1935_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":15.41,"model_id":159785139713,"model_name":"12 cores","model_original_price":23,"model_quantity_purchased":1,"model_sku":"CANE12CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512235XEHM7XQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG220204500112503","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139713,"model_quantity":1,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766505349,"payment_method":"Pix","pickup_done_time":1766758106,"recipient_address":{"name":"F******z","phone":"******45","town":"","district":"Posse","city":"Petrópolis","state":"Rio de Janeiro","region":"BR","zipcode":"25770460","full_address":"Es******"},"region":"BR","return_request_due_date":1767724924,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.41,"update_time":1767123327}]},"request_id":"e3e3e7f347337fb7522558b18c6e6700:010002e3dfec14e2:0000001af48f0937"}
    [curl_error] => 
)

============================================================

[23:12:52] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:52] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512235XEHM7XQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:52] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[23:12:52] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512235XEHM7XQ.json
============================================================

[23:12:52] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE12CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[23:12:52] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512235XEHM7XQ
)

============================================================

[23:12:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [shop_id] => 504113848
)

============================================================

[23:12:52] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136372
    [base_string] => 2009491/api/v2/order/get_order_detail1767136372eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 8032d67ad645e01f...
    [url_length] => 858
)

============================================================

[23:12:52] INFO: ⏳ Executando cURL...
============================================================

[23:12:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:12:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SDK0FF0A
    [shop_id] => 504113848
)

============================================================

[23:12:52] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136372
    [base_string] => 2009491/api/v2/order/get_order_detail1767136372eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 8032d67ad645e01f...
    [url_length] => 858
)

============================================================

[23:12:52] INFO: ⏳ Executando cURL...
============================================================

[23:12:53] INFO: ✅ cURL executado
============================================================

[23:12:53] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":331621760,"buyer_username":"amaandaakelly","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766174390,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20141","series_number":"5","access_key":"41251232111081000193550050000201411159497667","issue_date":1766174621,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SDK0FF0A","order_status":"COMPLETED","package_list":[{"package_number":"OFG219873591143550","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766174397,"payment_method":"Credit Card","pickup_done_time":1766422665,"recipient_address":{"name":"A******a","phone":"******45","town":"","district":"Chácara Italago","city":"Itapecerica da Serra","state":"São Paulo","region":"BR","zipcode":"06866670","full_address":"Ru******"},"region":"BR","return_request_due_date":1767725381,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":14.06,"update_time":1767123320}]},"request_id":"e3e3e7f347337fcd15e28899d8dd4800:0100025d9f980d14:000000c05c022c51"}
    [curl_error] => 
)

============================================================

[23:12:53] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:53] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SDK0FF0A
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:53] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SDK0FF0A
)

============================================================

[23:12:53] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SDK0FF0A.json
============================================================

[23:12:53] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[23:12:53] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SDK0FF0A
)

============================================================

[23:12:53] INFO: ✅ cURL executado
============================================================

[23:12:53] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":331621760,"buyer_username":"amaandaakelly","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766174390,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20141","series_number":"5","access_key":"41251232111081000193550050000201411159497667","issue_date":1766174621,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SDK0FF0A","order_status":"COMPLETED","package_list":[{"package_number":"OFG219873591143550","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766174397,"payment_method":"Credit Card","pickup_done_time":1766422665,"recipient_address":{"name":"A******a","phone":"******45","town":"","district":"Chácara Italago","city":"Itapecerica da Serra","state":"São Paulo","region":"BR","zipcode":"06866670","full_address":"Ru******"},"region":"BR","return_request_due_date":1767725381,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":14.06,"update_time":1767123320}]},"request_id":"e3e3e7f347337fcd7b4c37f7457d7200:0100021bc6e9371b:000000e8803a3a58"}
    [curl_error] => 
)

============================================================

[23:12:53] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:53] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SDK0FF0A
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:53] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SDK0FF0A
)

============================================================

[23:12:53] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SDK0FF0A.json
============================================================

[23:12:53] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[23:12:53] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SDK0FF0A
)

============================================================

[23:12:53] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [seller_id] => 796461485
    [user_id] => 581
    [status] => COMPLETED
)

============================================================

[23:12:53] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[23:12:53] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767136373
    [base_string] => 2009491/api/v2/order/get_order_detail1767136373eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo4biXygYwjpqauQo4AUAB.Yyb17c6rIPthIfidV4A-RGpR-bCcwhJW4ioJWoX_KF0796461485
    [signature] => 72d766d5de087592...
    [url_length] => 858
)

============================================================

[23:12:53] INFO: ⏳ Executando cURL...
============================================================

[23:12:54] INFO: ✅ cURL executado
============================================================

[23:12:54] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347337fe25f1f0c19bf6e6300"}
    [curl_error] => 
)

============================================================

[23:12:54] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:12:54] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:12:54] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 796461485
    [user_id] => 581
)

============================================================

[23:12:55] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[23:12:55] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[23:12:55] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25122475T3MHNT
    [shop_id] => 796461485
)

============================================================

[23:12:55] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 796461485
    [timestamp] => 1767136375
    [base_string] => 2009491/api/v2/order/get_order_detail1767136375eyJhbGciOiJIUzI1NiJ9.CJPTehABGK2T5PsCIAEo97jRygYw6aKEqwI4AUAB.7u404De10xqH9wMS_5vKzyplvMqrkIC9VF7eNuBP5C0796461485
    [signature] => 4a3900f42a3f010f...
    [url_length] => 858
)

============================================================

[23:12:55] INFO: ⏳ Executando cURL...
============================================================

[23:12:57] INFO: ✅ cURL executado
============================================================

[23:12:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":7.18,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":639085888,"buyer_username":"marlimartiniano758","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766547563,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":7.18,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"5","series_number":"1","access_key":"35251245877601000115550010000000051530227778","issue_date":1766578625,"total_value":29.7,"products_total_value":29.9,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mfxya25u4nwk3f_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58251362790,"item_name":"Blusa Regata  Básica Alça Fina Tecido Duna Elegante Leve e Confortável Varias Cores","item_sku":"","main_item":false,"model_discounted_price":29.9,"model_id":189182839636,"model_name":"Bege,GG","model_original_price":49.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":58251362790,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":801137683251200}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"25122475T3MHNT","order_status":"COMPLETED","package_list":[{"package_number":"OFG220246763164238","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":58251362790,"model_id":189182839636,"model_quantity":1,"order_item_id":58251362790,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":500,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766547679,"payment_method":"Pix","pickup_done_time":1766754944,"recipient_address":{"name":"M******e","phone":"******46","town":"","district":"Vila Jacuí","city":"São Paulo","state":"São Paulo","region":"BR","zipcode":"08050150","full_address":"R ******"},"region":"BR","return_request_due_date":1767724375,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":29.7,"update_time":1767121918}]},"request_id":"e3e3e7f34733800108bfc1f68aca7a00:0100029b2b90a82f:0000007dbc25ecfa"}
    [curl_error] => 
)

============================================================

[23:12:57] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:57] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 25122475T3MHNT
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:57] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 25122475T3MHNT
)

============================================================

[23:12:57] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_25122475T3MHNT.json
============================================================

[23:12:57] INFO: 📦 Item #0
Array
(
    [item_name] => Blusa Regata  Básica Alça Fina Tecido Duna Elegante Leve e Confortável Varias Cores
    [item_sku] => 
    [model_sku] => 
    [sku_usado] => 
    [tem_dpx] => 
)

============================================================

[23:12:57] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 25122475T3MHNT
)

============================================================

[23:12:57] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PT6T11R3
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[23:12:57] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PT6T11R3
    [shop_id] => 861037471
)

============================================================

[23:12:57] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767136377
    [base_string] => 2009491/api/v2/order/get_order_detail1767136377eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => ad671840c0157291...
    [url_length] => 858
)

============================================================

[23:12:57] INFO: ⏳ Executando cURL...
============================================================

[23:12:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512114TANB8C9
    [seller_id] => 944505280
    [user_id] => 255
    [status] => COMPLETED
)

============================================================

[23:12:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512114TANB8C9
    [shop_id] => 944505280
)

============================================================

[23:12:58] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 944505280
    [timestamp] => 1767136378
    [base_string] => 2009491/api/v2/order/get_order_detail1767136378eyJhbGciOiJIUzI1NiJ9.CJPTehABGMCDsMIDIAEo053RygYwuaf3qwk4AUAB.KYcykutTa3N7L1fDvNLJM6dIqHm4yrSe9VThniTcm4s944505280
    [signature] => c6b49946bc36b635...
    [url_length] => 858
)

============================================================

[23:12:58] INFO: ⏳ Executando cURL...
============================================================

[23:12:58] INFO: ✅ cURL executado
============================================================

[23:12:58] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":998280636,"buyer_username":"jamilmagalhes","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766084861,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2375","series_number":"3","access_key":"33251254881101000148550030000023751606369019","issue_date":1766085232,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219PT6T11R3","order_status":"COMPLETED","package_list":[{"package_number":"OFG219784061167881","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766085016,"payment_method":"Pix","pickup_done_time":1766157873,"recipient_address":{"name":"R******A","phone":"******40","town":"","district":"Centro","city":"Buritizeiro","state":"Minas Gerais","region":"BR","zipcode":"39280035","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.8,"update_time":1767122118}]},"request_id":"e3e3e7f34733801b001d5b38fd225b00:0100022b6911f6fc:0000002c35ee8424"}
    [curl_error] => 
)

============================================================

[23:12:58] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:12:58] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219PT6T11R3
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:12:58] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219PT6T11R3
)

============================================================

[23:12:58] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219PT6T11R3.json
============================================================

[23:12:58] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[23:12:58] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251219PT6T11R3
)

============================================================

[23:12:59] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219RUE97GMQ
    [seller_id] => 1603130895
    [user_id] => 156
    [status] => COMPLETED
)

============================================================

[23:12:59] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219RUE97GMQ
    [shop_id] => 1603130895
)

============================================================

[23:12:59] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1603130895
    [timestamp] => 1767136379
    [base_string] => 2009491/api/v2/order/get_order_detail1767136379eyJhbGciOiJIUzI1NiJ9.CJPTehABGI-st_wFIAEo9JrRygYwhefXdDgBQAE.-JPCSjZZFBLiQwZ0sCft4FcVp2hIReohikNfW5fob_k1603130895
    [signature] => 20b9f4f08113c086...
    [url_length] => 858
)

============================================================

[23:12:59] INFO: ⏳ Executando cURL...
============================================================

[23:13:00] INFO: ✅ cURL executado
============================================================

[23:13:00] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.39,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":660764553,"buyer_username":"luizalima657","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766154905,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.39,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mhuvrmvjwf7mc6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23499187237,"item_name":"Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia","item_sku":"DPX6438278502","main_item":false,"model_discounted_price":34,"model_id":0,"model_name":"","model_original_price":39.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23499187237,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":790815173952512}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219RUE97GMQ","order_status":"COMPLETED","package_list":[{"package_number":"OFG219854105154211","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23499187237,"model_id":0,"model_quantity":1,"order_item_id":23499187237,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":434,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766154912,"payment_method":"Credit Card","pickup_done_time":1766440611,"recipient_address":{"name":"L******a","phone":"******33","town":"","district":"Freguesia (Jacarepaguá)","city":"Rio de Janeiro","state":"Rio de Janeiro","region":"BR","zipcode":"22745281","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34,"update_time":1767122707}]},"request_id":"e3e3e7f347338030f20ca0842afa8c00:0100023e1d64d224:00000058e266a200"}
    [curl_error] => 
)

============================================================

[23:13:00] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:00] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219RUE97GMQ
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:00] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219RUE97GMQ
)

============================================================

[23:13:00] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219RUE97GMQ.json
============================================================

[23:13:00] INFO: 📦 Item #0
Array
(
    [item_name] => Kit de Esmaltes Infantil Glitter Magical Phantasy  Brilho e Magia
    [item_sku] => DPX6438278502
    [model_sku] => 
    [sku_usado] => DPX6438278502
    [tem_dpx] => 1
)

============================================================

[23:13:00] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219RUE97GMQ
)

============================================================

[23:13:00] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512139PDUNGB4
    [seller_id] => 513868344
    [user_id] => 144
    [status] => COMPLETED
)

============================================================

[23:13:00] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512139PDUNGB4
    [shop_id] => 513868344
)

============================================================

[23:13:00] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 513868344
    [timestamp] => 1767136380
    [base_string] => 2009491/api/v2/order/get_order_detail1767136380eyJhbGciOiJIUzI1NiJ9.CJPTehABGLiEhPUBIAEo1eTQygYwptDTYzgBQAE.YQVEkvFlx0ZSTHBEqT0BBtLdgGBFCP11mJCDaXFm_0g513868344
    [signature] => 1afab1520a881054...
    [url_length] => 857
)

============================================================

[23:13:00] INFO: ⏳ Executando cURL...
============================================================

[23:13:00] INFO: ✅ cURL executado
============================================================

[23:13:00] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":549755080,"buyer_username":"dudaxavier24","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1765466514,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-mdbwgrbxakoi18_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22893677085,"item_name":"Copo térmico  de 1200ml com canudo  personalizado","item_sku":"","main_item":false,"model_discounted_price":52.45,"model_id":159788521957,"model_name":"PRETO,Com nome","model_original_price":98.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":22893677085,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":804271532998656}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"nome: GYAN","note":"","note_update_time":0,"order_sn":"2512114TANB8C9","order_status":"COMPLETED","package_list":[{"package_number":"OFG219165714162899","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22893677085,"model_id":159788521957,"model_quantity":1,"order_item_id":22893677085,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":400,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1765466534,"payment_method":"SParcelado","pickup_done_time":1765821411,"recipient_address":{"name":"J******a","phone":"******88","town":"","district":"Imigrante Sul","city":"Campo Bom","state":"Rio Grande do Sul","region":"BR","zipcode":"93702538","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765594799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":57.84,"update_time":1767124703}]},"request_id":"e3e3e7f34733802f4b14a56959db2400:0100027410a848b8:000000c2db238b3c"}
    [curl_error] => 
)

============================================================

[23:13:00] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:00] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512114TANB8C9
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:00] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512114TANB8C9
)

============================================================

[23:13:00] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512114TANB8C9.json
============================================================

[23:13:00] INFO: 📦 Item #0
Array
(
    [item_name] => Copo térmico  de 1200ml com canudo  personalizado
    [item_sku] => 
    [model_sku] => 
    [sku_usado] => 
    [tem_dpx] => 
)

============================================================

[23:13:00] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512114TANB8C9
)

============================================================

[23:13:00] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25121389BBWEM9
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:13:00] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25121389BBWEM9
    [shop_id] => 504113848
)

============================================================

[23:13:00] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136380
    [base_string] => 2009491/api/v2/order/get_order_detail1767136380eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 0e917f9954379faa...
    [url_length] => 858
)

============================================================

[23:13:00] INFO: ⏳ Executando cURL...
============================================================

[23:13:01] INFO: ✅ cURL executado
============================================================

[23:13:01] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":19.45,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1576403234,"buyer_username":"wdad1etzpj","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765585723,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":19.45,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19317","series_number":"5","access_key":"41251232111081000193550050000193171410906049","issue_date":1765586026,"total_value":1.63,"products_total_value":1.63,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-ma969smktzllf9_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23498144258,"item_name":"Kit 3 Caixas de Massinha de Modelar 12 Cores 180g","item_sku":"mx180","main_item":false,"model_discounted_price":16.33,"model_id":0,"model_name":"","model_original_price":16.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23498144258,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"25121389BBWEM9","order_status":"COMPLETED","package_list":[{"package_number":"OFG219284924105366","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23498144258,"model_id":0,"model_quantity":1,"order_item_id":23498144258,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765585729,"payment_method":"Credit Card","pickup_done_time":1765816383,"recipient_address":{"name":"T******a","phone":"******35","town":"","district":"Plano Diretor Sul","city":"Palmas","state":"Tocantins","region":"BR","zipcode":"77015594","full_address":"Qu******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765853999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":16.33,"update_time":1767126988}]},"request_id":"e3e3e7f3473380485c80f67f6378c300:0100027cb0d0c48d:000000be3d02341a"}
    [curl_error] => 
)

============================================================

[23:13:01] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:01] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 25121389BBWEM9
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:01] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 25121389BBWEM9
)

============================================================

[23:13:01] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_25121389BBWEM9.json
============================================================

[23:13:01] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 3 Caixas de Massinha de Modelar 12 Cores 180g
    [item_sku] => mx180
    [model_sku] => 
    [sku_usado] => mx180
    [tem_dpx] => 
)

============================================================

[23:13:01] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 25121389BBWEM9
)

============================================================

[23:13:01] INFO: ✅ cURL executado
============================================================

[23:13:01] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":26.75,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1155366501,"buyer_username":"maurogelhorn650","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Correios","cod":false,"create_time":1765634125,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":26.75,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-822yl-mhzct3u6yk1v68_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58201612019,"item_name":"Mangueira Mágica 30 Metros Retrátil Flexível","item_sku":"DPX8164355654","main_item":false,"model_discounted_price":46.6,"model_id":0,"model_name":"","model_original_price":58.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":58201612019,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":805451424251904}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512139PDUNGB4","order_status":"COMPLETED","package_list":[{"package_number":"OFG219333325120390","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Correios","item_list":[{"item_id":58201612019,"model_id":0,"model_quantity":1,"order_item_id":58201612019,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90003,"sorting_group":""}],"pay_time":1765634286,"payment_method":"Pix","pickup_done_time":1765818709,"recipient_address":{"name":"L******s","phone":"******86","town":"","district":"Bigorrilho","city":"Curitiba","state":"Paraná","region":"BR","zipcode":"80730320","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765853999,"shipping_carrier":"Correios","split_up":false,"total_amount":53.35,"update_time":1767122782}]},"request_id":"e3e3e7f347338046b0d26c9b67413400:010002f6d69e171a:00000020a437ccda"}
    [curl_error] => 
)

============================================================

[23:13:01] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:01] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512139PDUNGB4
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:01] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512139PDUNGB4
)

============================================================

[23:13:01] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512139PDUNGB4.json
============================================================

[23:13:01] INFO: 📦 Item #0
Array
(
    [item_name] => Mangueira Mágica 30 Metros Retrátil Flexível
    [item_sku] => DPX8164355654
    [model_sku] => 
    [sku_usado] => DPX8164355654
    [tem_dpx] => 1
)

============================================================

[23:13:02] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512139PDUNGB4
)

============================================================

[23:13:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SQGWAC8D
    [seller_id] => 635337797
    [user_id] => 15
    [status] => COMPLETED
)

============================================================

[23:13:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SQGWAC8D
    [shop_id] => 635337797
)

============================================================

[23:13:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 635337797
    [timestamp] => 1767136382
    [base_string] => 2009491/api/v2/order/get_order_detail1767136382eyJhbGciOiJIUzI1NiJ9.CJPTehABGMX4-a4CIAEo-v3QygYw8sLQjgo4AUAB.GnS1hdnSS_lJ9NpCBJYppuIKAs4wlOPMP9-61rNAIkQ635337797
    [signature] => c7eae83b28bd038b...
    [url_length] => 858
)

============================================================

[23:13:02] INFO: ⏳ Executando cURL...
============================================================

[23:13:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251216F27C4ETD
    [seller_id] => 1564423565
    [user_id] => 35
    [status] => COMPLETED
)

============================================================

[23:13:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251216F27C4ETD
    [shop_id] => 1564423565
)

============================================================

[23:13:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1564423565
    [timestamp] => 1767136382
    [base_string] => 2009491/api/v2/order/get_order_detail1767136382eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3r_OkFIAEonMrQygYw6_jl_wM4AUAB.Ba11JIbx2p16o67S4-YM-oU8tPjkX-BM3Sb75DqmbKY1564423565
    [signature] => d46280b1ce22dc86...
    [url_length] => 859
)

============================================================

[23:13:02] INFO: ⏳ Executando cURL...
============================================================

[23:13:03] INFO: ✅ cURL executado
============================================================

[23:13:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":998961397,"buyer_username":"godryanzingamer","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765818592,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35251235473442000130550010000002221016251665","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8258b-mg2nc5eqk6j1e5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22399053877,"item_name":"Óculos 3D de Realidade Virtual VR Box + Controle Bluetooth","item_sku":"DPX5907801843","main_item":false,"model_discounted_price":84.88,"model_id":0,"model_name":"","model_original_price":121.25,"model_quantity_purchased":1,"model_sku":"","order_item_id":22399053877,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":774854647676928}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251216F27C4ETD","order_status":"COMPLETED","package_list":[{"package_number":"OFG219517792112936","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22399053877,"model_id":0,"model_quantity":1,"order_item_id":22399053877,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":382,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765818645,"payment_method":"Pix","pickup_done_time":1765989518,"recipient_address":{"name":"V******z","phone":"******61","town":"","district":"Santo Hilário","city":"Goiânia","state":"Goiás","region":"BR","zipcode":"74780170","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765940399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":84.88,"update_time":1767122947}]},"request_id":"e3e3e7f347338061073592d392878900:010002e9ddca7e70:00000046f9560efa"}
    [curl_error] => 
)

============================================================

[23:13:03] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:03] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251216F27C4ETD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:03] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251216F27C4ETD
)

============================================================

[23:13:03] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251216F27C4ETD.json
============================================================

[23:13:03] INFO: 📦 Item #0
Array
(
    [item_name] => Óculos 3D de Realidade Virtual VR Box + Controle Bluetooth
    [item_sku] => DPX5907801843
    [model_sku] => 
    [sku_usado] => DPX5907801843
    [tem_dpx] => 1
)

============================================================

[23:13:03] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251216F27C4ETD
)

============================================================

[23:13:03] INFO: ✅ cURL executado
============================================================

[23:13:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":415783641,"buyer_username":"bazzielenir14","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766185057,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfg4-m97hftef5o74c1_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":18798148557,"item_name":"Kit 10 Cartas Pokemon Folha De Ouro Edicao Limitada Douradas","item_sku":"GH-7751674","main_item":false,"model_discounted_price":13.6,"model_id":0,"model_name":"","model_original_price":13.6,"model_quantity_purchased":1,"model_sku":"","order_item_id":18798148557,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SQGWAC8D","order_status":"COMPLETED","package_list":[{"package_number":"OFG219884257170255","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":18798148557,"model_id":0,"model_quantity":1,"order_item_id":18798148557,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766185150,"payment_method":"Pix","pickup_done_time":1766514032,"recipient_address":{"name":"E******i","phone":"******42","town":"","district":"Tatuquara","city":"Curitiba","state":"Paraná","region":"BR","zipcode":"81470208","full_address":"Av******"},"region":"BR","return_request_due_date":1767703464,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":13.6,"update_time":1767124754}]},"request_id":"e3e3e7f34733805f91fd0500b768c800:0100020da9c07e4c:0000002683909c90"}
    [curl_error] => 
)

============================================================

[23:13:03] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:03] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SQGWAC8D
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:03] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SQGWAC8D
)

============================================================

[23:13:03] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SQGWAC8D.json
============================================================

[23:13:03] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 10 Cartas Pokemon Folha De Ouro Edicao Limitada Douradas
    [item_sku] => GH-7751674
    [model_sku] => 
    [sku_usado] => GH-7751674
    [tem_dpx] => 
)

============================================================

[23:13:03] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SQGWAC8D
)

============================================================

[23:13:03] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251219PX9DWW05
    [seller_id] => 675930217
    [user_id] => 27
    [status] => COMPLETED
)

============================================================

[23:13:03] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251219PX9DWW05
    [shop_id] => 675930217
)

============================================================

[23:13:03] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 675930217
    [timestamp] => 1767136383
    [base_string] => 2009491/api/v2/order/get_order_detail1767136383eyJhbGciOiJIUzI1NiJ9.CJPTehABGOnAp8ICIAEot7bRygYwvO-a8Qs4AUAB.wV64zltwyZ_6wcACIFbFivweerKkcjmAL54Qf5G0e0E675930217
    [signature] => b3815196c9b3bd43...
    [url_length] => 858
)

============================================================

[23:13:03] INFO: ⏳ Executando cURL...
============================================================

[23:13:05] INFO: ✅ cURL executado
============================================================

[23:13:05] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":13.25,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":650903425,"buyer_username":"davizinepedro","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766089243,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":13.25,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824ii-meg7eye6nd3538_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22198910565,"item_name":"Armadilha Adesiva Pega Moscas Mosquitos E Pernilongos Kit com 10 Unidades","item_sku":"DPX6136051719","main_item":false,"model_discounted_price":34.85,"model_id":0,"model_name":"","model_original_price":34.85,"model_quantity_purchased":1,"model_sku":"","order_item_id":22198910565,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251219PX9DWW05","order_status":"COMPLETED","package_list":[{"package_number":"OFG219788444106311","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22198910565,"model_id":0,"model_quantity":1,"order_item_id":22198910565,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766089303,"payment_method":"Pix","pickup_done_time":1766177087,"recipient_address":{"name":"E***a","phone":"******48","town":"","district":"Jardim Brasil","city":"Montes Claros","state":"Minas Gerais","region":"BR","zipcode":"39401221","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766199599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":34.15,"update_time":1767124774}]},"request_id":"e3e3e7f347338078a69916d1b04cf300:0100027b27952390:0000001140ff4b46"}
    [curl_error] => 
)

============================================================

[23:13:05] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:05] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251219PX9DWW05
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:05] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251219PX9DWW05
)

============================================================

[23:13:05] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251219PX9DWW05.json
============================================================

[23:13:05] INFO: 📦 Item #0
Array
(
    [item_name] => Armadilha Adesiva Pega Moscas Mosquitos E Pernilongos Kit com 10 Unidades
    [item_sku] => DPX6136051719
    [model_sku] => 
    [sku_usado] => DPX6136051719
    [tem_dpx] => 1
)

============================================================

[23:13:05] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251219PX9DWW05
)

============================================================

[23:13:05] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25121252NVW6BX
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[23:13:05] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25121252NVW6BX
    [shop_id] => 861037471
)

============================================================

[23:13:05] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767136385
    [base_string] => 2009491/api/v2/order/get_order_detail1767136385eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 67f8ead03f82f12e...
    [url_length] => 858
)

============================================================

[23:13:05] INFO: ⏳ Executando cURL...
============================================================

[23:13:06] INFO: ✅ cURL executado
============================================================

[23:13:06] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.6,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":460984023,"buyer_username":"alegrandona","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Retirada pelo Comprador","cod":false,"create_time":1765475482,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.6,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2243","series_number":"3","access_key":"33251254881101000148550030000022431700036045","issue_date":1765476046,"total_value":35.36,"products_total_value":35.36,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-824g6-mf7cztvl7jm30a_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23398937662,"item_name":"Organizador Porta Lata Cerveja Refrigerante Geladeira Armário Acrílico Resistente UZ","item_sku":"GH-9838464","main_item":false,"model_discounted_price":17.68,"model_id":0,"model_name":"","model_original_price":18.61,"model_quantity_purchased":2,"model_sku":"","order_item_id":23398937662,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":784358244286464}],"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"25121252NVW6BX","order_status":"COMPLETED","package_list":[{"package_number":"OFG219174682154422","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Retirada pelo Comprador","item_list":[{"item_id":23398937662,"model_id":0,"model_quantity":2,"order_item_id":23398937662,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2667,"allow_self_design_awb":true,"logistics_channel_id":90024,"sorting_group":""}],"pay_time":1765475542,"payment_method":"Pix","pickup_done_time":1765570935,"recipient_address":{"name":"A******s","phone":"******00","town":"","district":"","city":"Rio de Janeiro","state":"Rio de Janeiro","region":"BR","zipcode":"21321622","full_address":"PC******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1765594799,"shipping_carrier":"Retirada pelo Comprador","split_up":false,"total_amount":35.36,"update_time":1767124847}]},"request_id":"e3e3e7f34733808df9adcdb4ccd62100:0100027187f70ba6:00000002e5a77848"}
    [curl_error] => 
)

============================================================

[23:13:06] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:06] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 25121252NVW6BX
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:06] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 25121252NVW6BX
)

============================================================

[23:13:06] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_25121252NVW6BX.json
============================================================

[23:13:06] INFO: 📦 Item #0
Array
(
    [item_name] => Organizador Porta Lata Cerveja Refrigerante Geladeira Armário Acrílico Resistente UZ
    [item_sku] => GH-9838464
    [model_sku] => 
    [sku_usado] => GH-9838464
    [tem_dpx] => 
)

============================================================

[23:13:06] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 25121252NVW6BX
)

============================================================

[23:13:06] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512221UM6W3UB
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:13:06] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512221UM6W3UB
    [shop_id] => 504113848
)

============================================================

[23:13:06] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136386
    [base_string] => 2009491/api/v2/order/get_order_detail1767136386eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 4f068ed31520b996...
    [url_length] => 858
)

============================================================

[23:13:06] INFO: ⏳ Executando cURL...
============================================================

[23:13:07] INFO: ✅ cURL executado
============================================================

[23:13:07] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":600330944,"buyer_username":"miguelzinhoscassiotti","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766364829,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20369","series_number":"5","access_key":"41251232111081000193550050000203691170920386","issue_date":1766365121,"total_value":3.27,"products_total_value":3.27,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-ma969smktzllf9_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23498144258,"item_name":"Kit 3 Caixas de Massinha de Modelar 12 Cores 180g","item_sku":"mx180","main_item":false,"model_discounted_price":16.33,"model_id":0,"model_name":"","model_original_price":16.5,"model_quantity_purchased":2,"model_sku":"","order_item_id":23498144258,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512221UM6W3UB","order_status":"COMPLETED","package_list":[{"package_number":"OFG220064030108213","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23498144258,"model_id":0,"model_quantity":2,"order_item_id":23498144258,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766364858,"payment_method":"Pix","pickup_done_time":1766509637,"recipient_address":{"name":"T****** ","phone":"******05","town":"","district":"Jardim São Paulo","city":"Poços de Caldas","state":"Minas Gerais","region":"BR","zipcode":"37704000","full_address":"Av******"},"region":"BR","return_request_due_date":1767640142,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":32.66,"update_time":1767127010}]},"request_id":"e3e3e7f3473380a312fbc9fb3fa8e500:010002f11c43be01:000000bdb430fc8b"}
    [curl_error] => 
)

============================================================

[23:13:07] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:07] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512221UM6W3UB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:07] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512221UM6W3UB
)

============================================================

[23:13:07] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512221UM6W3UB.json
============================================================

[23:13:07] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 3 Caixas de Massinha de Modelar 12 Cores 180g
    [item_sku] => mx180
    [model_sku] => 
    [sku_usado] => mx180
    [tem_dpx] => 
)

============================================================

[23:13:07] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512221UM6W3UB
)

============================================================

[23:13:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MRUC0DYY
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[23:13:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MRUC0DYY
    [shop_id] => 533042255
)

============================================================

[23:13:07] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767136387
    [base_string] => 2009491/api/v2/order/get_order_detail1767136387eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 9e8d1d2104e1f8b7...
    [url_length] => 858
)

============================================================

[23:13:07] INFO: ⏳ Executando cURL...
============================================================

[23:13:08] INFO: ✅ cURL executado
============================================================

[23:13:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473380b809032a9abfe84700"}
    [curl_error] => 
)

============================================================

[23:13:08] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:13:08] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:13:08] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[23:13:09] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3473380c75e1fc5453fdd8000"}
)

============================================================

[23:13:09] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218MRUC0DYY
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[23:13:09] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MRUC0DYY
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[23:13:10] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BA6350MW
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[23:13:10] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BA6350MW
    [shop_id] => 526192906
)

============================================================

[23:13:10] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767136390
    [base_string] => 2009491/api/v2/order/get_order_detail1767136390eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEohLnRygYwzeOX9wo4AUAB.eJGV9HXpLCOVuaz6VNb-v4MLjOGTVx-8k83bSwNjnOQ526192906
    [signature] => 9f8a8affa0af90bf...
    [url_length] => 858
)

============================================================

[23:13:10] INFO: ⏳ Executando cURL...
============================================================

[23:13:11] INFO: ✅ cURL executado
============================================================

[23:13:11] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":766488649,"buyer_username":"estherbarros838","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766689699,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-man8aurm95a17d_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23298284685,"item_name":"Processador De Alimentos 2 Em 1 Sem Fio Multiprocessador","item_sku":"DPX8759738900","main_item":false,"model_discounted_price":59.95,"model_id":0,"model_name":"","model_original_price":59.95,"model_quantity_purchased":2,"model_sku":"","order_item_id":23298284685,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BA6350MW","order_status":"COMPLETED","package_list":[{"package_number":"OFG220388900173320","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23298284685,"model_id":0,"model_quantity":2,"order_item_id":23298284685,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2667,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766689705,"payment_method":"Credit Card","pickup_done_time":1766772572,"recipient_address":{"name":"E******s","phone":"******82","town":"","district":"Porto Canoa","city":"Serra","state":"Espírito Santo","region":"BR","zipcode":"29168603","full_address":"Ru******"},"region":"BR","return_request_due_date":1767648753,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":119.9,"update_time":1767125252}]},"request_id":"e3e3e7f3473380d7cf10e4de0a2a1900:0100022aa35ef229:000000e5ab113276"}
    [curl_error] => 
)

============================================================

[23:13:11] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:11] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BA6350MW
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:11] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226BA6350MW
)

============================================================

[23:13:11] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226BA6350MW.json
============================================================

[23:13:11] INFO: 📦 Item #0
Array
(
    [item_name] => Processador De Alimentos 2 Em 1 Sem Fio Multiprocessador
    [item_sku] => DPX8759738900
    [model_sku] => 
    [sku_usado] => DPX8759738900
    [tem_dpx] => 1
)

============================================================

[23:13:11] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251226BA6350MW
)

============================================================

[23:13:11] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220U0XA1HTV
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:13:11] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220U0XA1HTV
    [shop_id] => 504113848
)

============================================================

[23:13:11] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136391
    [base_string] => 2009491/api/v2/order/get_order_detail1767136391eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => b51e825a70d5885d...
    [url_length] => 858
)

============================================================

[23:13:11] INFO: ⏳ Executando cURL...
============================================================

[23:13:12] INFO: ✅ cURL executado
============================================================

[23:13:12] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":993097196,"buyer_username":"talitamadeiraverardi","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766229530,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20205","series_number":"5","access_key":"41251232111081000193550050000202051259995650","issue_date":1766229823,"total_value":1.3,"products_total_value":1.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":12.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220U0XA1HTV","order_status":"COMPLETED","package_list":[{"package_number":"OFG219928730151465","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766229561,"payment_method":"Pix","pickup_done_time":1766422695,"recipient_address":{"name":"T****** ","phone":"******68","town":"","district":"Vila da Oportunidade","city":"Carapicuíba","state":"São Paulo","region":"BR","zipcode":"06330000","full_address":"Es******"},"region":"BR","return_request_due_date":1767550218,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":12.99,"update_time":1767127006}]},"request_id":"e3e3e7f3473380ed0ee8a2cdb92a3a00:010002836631fc5d:000000df07ad48a2"}
    [curl_error] => 
)

============================================================

[23:13:12] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:13:12] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220U0XA1HTV
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:13:12] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220U0XA1HTV
)

============================================================

[23:13:12] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220U0XA1HTV.json
============================================================

[23:13:12] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[23:13:12] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220U0XA1HTV
)

============================================================

[23:14:17] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [seller_id] => 407782497
    [user_id] => 24
    [status] => COMPLETED
)

============================================================

[23:14:17] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [shop_id] => 407782497
)

============================================================

[23:14:17] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 407782497
    [timestamp] => 1767136457
    [base_string] => 2009491/api/v2/order/get_order_detail1767136457eyJhbGciOiJIUzI1NiJ9.CJPTehABGOGIucIBIAEo76bQygYwpcnPxwo4AUAB.a9B4yzpKy6IDbKHTpMz8_asWL0BPLG-IKiLtq1k6-Mw407782497
    [signature] => 69e84e7e23fc9c87...
    [url_length] => 858
)

============================================================

[23:14:17] INFO: ⏳ Executando cURL...
============================================================

[23:14:18] INFO: ✅ cURL executado
============================================================

[23:14:18] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473384e28d29dd4aa4ffec00"}
    [curl_error] => 
)

============================================================

[23:14:18] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:14:18] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:14:18] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 407782497
    [user_id] => 24
)

============================================================

[23:14:19] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[23:14:19] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[23:14:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221V118RDNN
    [shop_id] => 407782497
)

============================================================

[23:14:19] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 407782497
    [timestamp] => 1767136459
    [base_string] => 2009491/api/v2/order/get_order_detail1767136459eyJhbGciOiJIUzI1NiJ9.CJPTehABGOGIucIBIAEoy7nRygYwmNCBwwk4AUAB.WfcxlNRM1aiJveEhWN-wyi2Xmi8nPGsxGvXbSXwuhAQ407782497
    [signature] => bc97ff6a85d8e191...
    [url_length] => 858
)

============================================================

[23:14:19] INFO: ⏳ Executando cURL...
============================================================

[23:14:21] INFO: ✅ cURL executado
============================================================

[23:14:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1118189672,"buyer_username":"fabriciokadmosantosdeluc","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766263989,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"33251263517899000134550010000002711232521235","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-meexmcxffpxd60_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798746210,"item_name":"Cozimento a Vapor Cesto Inox Fruteira Banho Maria - Dieta Saudável, Praticidade e Sabor no seu dia a dia","item_sku":"DPX9337943364","main_item":false,"model_discounted_price":24.9,"model_id":0,"model_name":"","model_original_price":24.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798746210,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251221V118RDNN","order_status":"COMPLETED","package_list":[{"package_number":"OFG219963189125720","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798746210,"model_id":0,"model_quantity":1,"order_item_id":23798746210,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1320,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766264005,"payment_method":"SParcelado","pickup_done_time":1766440611,"recipient_address":{"name":"F******e","phone":"******28","town":"","district":"Diadema","city":"Nova Venécia","state":"Espírito Santo","region":"BR","zipcode":"29830000","full_address":"Id******"},"region":"BR","return_request_due_date":1767543314,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":32.25,"update_time":1767122970}]},"request_id":"e3e3e7f347338500fdce8112660c7d00:0100024ef9c99a18:000000d8390f7a98"}
    [curl_error] => 
)

============================================================

[23:14:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:21] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251221V118RDNN
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:21] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251221V118RDNN
)

============================================================

[23:14:21] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251221V118RDNN.json
============================================================

[23:14:21] INFO: 📦 Item #0
Array
(
    [item_name] => Cozimento a Vapor Cesto Inox Fruteira Banho Maria - Dieta Saudável, Praticidade e Sabor no seu dia a dia
    [item_sku] => DPX9337943364
    [model_sku] => 
    [sku_usado] => DPX9337943364
    [tem_dpx] => 1
)

============================================================

[23:14:21] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 251221V118RDNN
)

============================================================

[23:14:21] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218M9Y0GBGS
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:14:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218M9Y0GBGS
    [shop_id] => 504113848
)

============================================================

[23:14:21] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136461
    [base_string] => 2009491/api/v2/order/get_order_detail1767136461eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => d7025a1debca46eb...
    [url_length] => 858
)

============================================================

[23:14:21] INFO: ⏳ Executando cURL...
============================================================

[23:14:22] INFO: ✅ cURL executado
============================================================

[23:14:22] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":18.11,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":963916398,"buyer_username":"marianaleite891","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1765998699,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":18.11,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"19892","series_number":"5","access_key":"41251232111081000193550050000198921323838365","issue_date":1765998821,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251218M9Y0GBGS","order_status":"COMPLETED","package_list":[{"package_number":"OFG219697899114641","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1765998705,"payment_method":"Credit Card","pickup_done_time":1766075709,"recipient_address":{"name":"M******e","phone":"******62","town":"","district":"Treze de Julho","city":"Aracaju","state":"Sergipe","region":"BR","zipcode":"49020010","full_address":"Av******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766113199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767123312}]},"request_id":"e3e3e7f3473385191a31050e145ac400:01000253529c2ae4:000000b403814bf5"}
    [curl_error] => 
)

============================================================

[23:14:22] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:22] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251218M9Y0GBGS
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:22] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251218M9Y0GBGS
)

============================================================

[23:14:22] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251218M9Y0GBGS.json
============================================================

[23:14:22] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[23:14:22] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251218M9Y0GBGS
)

============================================================

[23:14:22] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220T2064F0D
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[23:14:22] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220T2064F0D
    [shop_id] => 861037471
)

============================================================

[23:14:22] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767136462
    [base_string] => 2009491/api/v2/order/get_order_detail1767136462eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEo6OrQygYwr6y-4g44AUAB.V2EG_3DintAXgCI6JTUXEueRFpgce1RXo7dvtENYmKg861037471
    [signature] => 3172c097628f0733...
    [url_length] => 858
)

============================================================

[23:14:22] INFO: ⏳ Executando cURL...
============================================================

[23:14:24] INFO: ✅ cURL executado
============================================================

[23:14:24] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":422792395,"buyer_username":"0chtgl8xj7","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766196307,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2403","series_number":"3","access_key":"33251254881101000148550030000024031664540163","issue_date":1766196535,"total_value":17.68,"products_total_value":17.68,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-824i3-mf7f180jpr0t81_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798937673,"item_name":"Molde de Resina em Formato de Coração para Exposição, Molde de Silicone em Formato de Coração","item_sku":"GH-9838783","main_item":false,"model_discounted_price":17.68,"model_id":0,"model_name":"","model_original_price":18.61,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798937673,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.564,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220T2064F0D","order_status":"COMPLETED","package_list":[{"package_number":"OFG219895508114574","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798937673,"model_id":0,"model_quantity":1,"order_item_id":23798937673,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766196342,"payment_method":"Credit Card","pickup_done_time":1766243007,"recipient_address":{"name":"A******a","phone":"******07","town":"","district":"Cruzeiro","city":"Bom Sucesso","state":"Minas Gerais","region":"BR","zipcode":"37220000","full_address":"Cí******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.13,"update_time":1767123030}]},"request_id":"e3e3e7f34733852e2b12f66df4255300:01000290b9a95458:000000fc84f58020"}
    [curl_error] => 
)

============================================================

[23:14:24] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:24] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220T2064F0D
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:24] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220T2064F0D
)

============================================================

[23:14:24] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220T2064F0D.json
============================================================

[23:14:24] INFO: 📦 Item #0
Array
(
    [item_name] => Molde de Resina em Formato de Coração para Exposição, Molde de Silicone em Formato de Coração
    [item_sku] => GH-9838783
    [model_sku] => 
    [sku_usado] => GH-9838783
    [tem_dpx] => 
)

============================================================

[23:14:24] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220T2064F0D
)

============================================================

[23:14:24] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251222286JHECY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:14:24] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251222286JHECY
    [shop_id] => 504113848
)

============================================================

[23:14:24] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136464
    [base_string] => 2009491/api/v2/order/get_order_detail1767136464eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 568c1ae71aea53d5...
    [url_length] => 858
)

============================================================

[23:14:24] INFO: ⏳ Executando cURL...
============================================================

[23:14:25] INFO: ✅ cURL executado
============================================================

[23:14:25] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.52,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":199453103,"buyer_username":"luizcardoso","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766378330,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.52,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20381","series_number":"5","access_key":"41251232111081000193550050000203811415682304","issue_date":1766378885,"total_value":2.4,"products_total_value":2.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":23.95,"model_id":149545492940,"model_name":"2","model_original_price":34.5,"model_quantity_purchased":1,"model_sku":"KIT2CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251222286JHECY","order_status":"COMPLETED","package_list":[{"package_number":"OFG220077531103702","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492940,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766378390,"payment_method":"Pix","pickup_done_time":1766421580,"recipient_address":{"name":"L******a","phone":"******54","town":"","district":"Jardim Primeiro de Maio","city":"Carapicuíba","state":"São Paulo","region":"BR","zipcode":"06365735","full_address":"Ru******"},"region":"BR","return_request_due_date":1767712066,"reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":23.94,"update_time":1767127010}]},"request_id":"e3e3e7f34733854311d050c78fb84f00:010002cb821bb2e1:000000fe69deffaf"}
    [curl_error] => 
)

============================================================

[23:14:25] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:25] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251222286JHECY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:25] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251222286JHECY
)

============================================================

[23:14:25] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251222286JHECY.json
============================================================

[23:14:25] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT2CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[23:14:25] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251222286JHECY
)

============================================================

[23:14:25] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512258P6PH6YP
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:14:25] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512258P6PH6YP
    [shop_id] => 504113848
)

============================================================

[23:14:25] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136465
    [base_string] => 2009491/api/v2/order/get_order_detail1767136465eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 6c961ed8ebcf02ea...
    [url_length] => 858
)

============================================================

[23:14:25] INFO: ⏳ Executando cURL...
============================================================

[23:14:26] INFO: ✅ cURL executado
============================================================

[23:14:26] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":652318325,"buyer_username":"silvianeves941","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766599525,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20602","series_number":"5","access_key":"41251232111081000193550050000206021973873461","issue_date":1766599720,"total_value":1.4,"products_total_value":1.4,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdyx-mdqgsykvzyu1a0_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":13.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512258P6PH6YP","order_status":"COMPLETED","package_list":[{"package_number":"OFG220298725157801","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766599633,"payment_method":"Pix","pickup_done_time":1766757778,"recipient_address":{"name":"S******s","phone":"******00","town":"","district":"Setor norte - Brazlândia","city":"Brasília","state":"Distrito Federal","region":"BR","zipcode":"72705030","full_address":"Q ******"},"region":"BR","return_request_due_date":1767721618,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":24.82,"update_time":1767127013}]},"request_id":"e3e3e7f347338557ef69cd828ff11b00:01000263e8a7b2fb:0000000fdd6a23f2"}
    [curl_error] => 
)

============================================================

[23:14:26] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:26] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512258P6PH6YP
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:26] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512258P6PH6YP
)

============================================================

[23:14:26] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512258P6PH6YP.json
============================================================

[23:14:26] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[23:14:26] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512258P6PH6YP
)

============================================================

[23:14:26] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221UHP8X7CD
    [seller_id] => 1615685780
    [user_id] => 1078
    [status] => COMPLETED
)

============================================================

[23:14:26] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221UHP8X7CD
    [shop_id] => 1615685780
)

============================================================

[23:14:26] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1615685780
    [timestamp] => 1767136466
    [base_string] => 2009491/api/v2/order/get_order_detail1767136466eyJhbGciOiJIUzI1NiJ9.CJPTehABGJTRtYIGIAEo672XygYw7rXUuAg4AUAB.g212IhuiplM0rGsnKSct4Al0ZOx9-UL9ssc8VjmldxM1615685780
    [signature] => dbedce690feb4a66...
    [url_length] => 859
)

============================================================

[23:14:26] INFO: ⏳ Executando cURL...
============================================================

[23:14:27] INFO: ✅ cURL executado
============================================================

[23:14:27] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34733856daba6719f70a0d600"}
    [curl_error] => 
)

============================================================

[23:14:27] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:14:27] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:14:27] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 1615685780
    [user_id] => 1078
)

============================================================

[23:14:28] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[23:14:28] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[23:14:28] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221UHP8X7CD
    [shop_id] => 1615685780
)

============================================================

[23:14:28] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1615685780
    [timestamp] => 1767136468
    [base_string] => 2009491/api/v2/order/get_order_detail1767136468eyJhbGciOiJIUzI1NiJ9.CJPTehABGJTRtYIGIAEo1LnRygYw_P-q2gc4AUAB.h6-15i_qKwJTuP-PtDljm8K8vdHbNwtX4WUa4msRZ3o1615685780
    [signature] => 7c4ea8d77d4bb2fe...
    [url_length] => 859
)

============================================================

[23:14:28] INFO: ⏳ Executando cURL...
============================================================

[23:14:30] INFO: ✅ cURL executado
============================================================

[23:14:30] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.69,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":384445114,"buyer_username":"tamirislaisdesouzakleno41293","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766247515,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.69,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"333","series_number":"1","access_key":"35251261425139000171550010000003331047428098","issue_date":1766396992,"total_value":34.99,"products_total_value":34.99,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824h5-me5oabs56osm65_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23694364338,"item_name":"Kit Tapete Automotivo Borracha de Alta Qualidade 4 Peças Carro Universal ","item_sku":"i3-014","main_item":false,"model_discounted_price":34.99,"model_id":0,"model_name":"","model_original_price":38.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":23694364338,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":803973846466560}],"promotion_type":"","weight":1.8,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251221UHP8X7CD","order_status":"COMPLETED","package_list":[{"package_number":"OFG219946714138783","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23694364338,"model_id":0,"model_quantity":1,"order_item_id":23694364338,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2530,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766247580,"payment_method":"Pix","pickup_done_time":1766427820,"recipient_address":{"name":"T******n","phone":"******31","town":"","district":"Setor 6","city":"Ibiporã","state":"Paraná","region":"BR","zipcode":"86202696","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":30.4,"update_time":1767124227}]},"request_id":"e3e3e7f34733858c0985738ac2859900:010002fa67d59439:000000528e9b7c40"}
    [curl_error] => 
)

============================================================

[23:14:30] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:30] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251221UHP8X7CD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:30] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251221UHP8X7CD
)

============================================================

[23:14:30] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251221UHP8X7CD.json
============================================================

[23:14:30] INFO: 📦 Item #0
Array
(
    [item_name] => Kit Tapete Automotivo Borracha de Alta Qualidade 4 Peças Carro Universal 
    [item_sku] => i3-014
    [model_sku] => 
    [sku_usado] => i3-014
    [tem_dpx] => 
)

============================================================

[23:14:30] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251221UHP8X7CD
)

============================================================

[23:14:30] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251220SNKNHQYD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[23:14:30] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251220SNKNHQYD
    [shop_id] => 504113848
)

============================================================

[23:14:30] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767136470
    [base_string] => 2009491/api/v2/order/get_order_detail1767136470eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6OvQygYwj8mX5Q84AUAB.hwb8Vj6JFaESbMNaDweRkto7R3YLAa9-B0MSxlNiSBQ504113848
    [signature] => 4794cb555ee7783f...
    [url_length] => 858
)

============================================================

[23:14:30] INFO: ⏳ Executando cURL...
============================================================

[23:14:31] INFO: ✅ cURL executado
============================================================

[23:14:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":950332899,"buyer_username":"ramonabeatriznascimento","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766183003,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20158","series_number":"5","access_key":"41251232111081000193550050000201581145575919","issue_date":1766183318,"total_value":1.5,"products_total_value":1.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":15,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251220SNKNHQYD","order_status":"COMPLETED","package_list":[{"package_number":"OFG219882203101560","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766183179,"payment_method":"Pix","pickup_done_time":1766422282,"recipient_address":{"name":"R******o","phone":"******38","town":"","district":"Vila floresta","city":"São Luiz Gonzaga","state":"Rio Grande do Sul","region":"BR","zipcode":"97800000","full_address":"Tv******"},"region":"BR","return_request_due_date":1767479846,"reverse_shipping_fee":0,"ship_by_date":1766458799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15,"update_time":1767127006}]},"request_id":"e3e3e7f3473385a45a1974e3363fe300:010002956d48e607:000000232b9f1d75"}
    [curl_error] => 
)

============================================================

[23:14:31] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:14:31] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251220SNKNHQYD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:14:31] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251220SNKNHQYD
)

============================================================

[23:14:31] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251220SNKNHQYD.json
============================================================

[23:14:31] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[23:14:31] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251220SNKNHQYD
)

============================================================

[23:28:12] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MRUC0DYY
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[23:28:12] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MRUC0DYY
    [shop_id] => 533042255
)

============================================================

[23:28:12] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767137292
    [base_string] => 2009491/api/v2/order/get_order_detail1767137292eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 69f5b1f1154a8618...
    [url_length] => 858
)

============================================================

[23:28:12] INFO: ⏳ Executando cURL...
============================================================

[23:28:13] INFO: ✅ cURL executado
============================================================

[23:28:13] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34733b69f261d76afe0b0f600"}
    [curl_error] => 
)

============================================================

[23:28:13] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[23:28:13] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[23:28:13] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[23:28:14] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34733b6ae2c43ab8d28fa0700"}
)

============================================================

[23:28:14] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218MRUC0DYY
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[23:28:14] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MRUC0DYY
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[01:14:35] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512125A3R5KBA
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[01:14:35] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512125A3R5KBA
    [shop_id] => 533042255
)

============================================================

[01:14:35] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767143675
    [base_string] => 2009491/api/v2/order/get_order_detail1767143675eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f216e99bf7a4ed15...
    [url_length] => 858
)

============================================================

[01:14:35] INFO: ⏳ Executando cURL...
============================================================

[01:14:36] INFO: ✅ cURL executado
============================================================

[01:14:36] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34735331a0825dafe6e30df00"}
    [curl_error] => 
)

============================================================

[01:14:36] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[01:14:36] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[01:14:36] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[01:14:37] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347353328f536716a49bed500"}
)

============================================================

[01:14:37] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512125A3R5KBA
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[01:14:37] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512125A3R5KBA
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[11:19:16] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218N16SCADK
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[11:19:16] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218N16SCADK
    [shop_id] => 533042255
)

============================================================

[11:19:16] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767179956
    [base_string] => 2009491/api/v2/order/get_order_detail1767179956eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f2364c0d86a1a3c9...
    [url_length] => 858
)

============================================================

[11:19:16] INFO: ⏳ Executando cURL...
============================================================

[11:19:17] INFO: ✅ cURL executado
============================================================

[11:19:17] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3473da599935de535ad5d8500"}
    [curl_error] => 
)

============================================================

[11:19:17] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[11:19:17] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[11:19:17] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[11:19:18] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3473da5a8db3907e256a2e900"}
)

============================================================

[11:19:18] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218N16SCADK
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[11:19:18] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218N16SCADK
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:39:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512125A3R5KBA
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[16:39:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512125A3R5KBA
    [shop_id] => 533042255
)

============================================================

[16:39:07] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767199147
    [base_string] => 2009491/api/v2/order/get_order_detail1767199147eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => a79dae0ad98181f6...
    [url_length] => 858
)

============================================================

[16:39:07] INFO: ⏳ Executando cURL...
============================================================

[16:39:08] INFO: ✅ cURL executado
============================================================

[16:39:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347421d81155d76c7ccd85300"}
    [curl_error] => 
)

============================================================

[16:39:08] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[16:39:08] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[16:39:08] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[16:39:09] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347421d903c66fdc5f8a55a00"}
)

============================================================

[16:39:09] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512125A3R5KBA
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[16:39:09] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512125A3R5KBA
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:44:20] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512125A3R5KBA
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[16:44:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512125A3R5KBA
    [shop_id] => 533042255
)

============================================================

[16:44:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767199460
    [base_string] => 2009491/api/v2/order/get_order_detail1767199460eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 36dd6d0157a0b42e...
    [url_length] => 858
)

============================================================

[16:44:20] INFO: ⏳ Executando cURL...
============================================================

[16:44:21] INFO: ✅ cURL executado
============================================================

[16:44:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34742301f90d1c94221727100"}
    [curl_error] => 
)

============================================================

[16:44:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[16:44:21] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[16:44:21] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[16:44:22] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34742302f0628e9fb878b2300"}
)

============================================================

[16:44:22] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512125A3R5KBA
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[16:44:22] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512125A3R5KBA
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:19:55] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233XH5WJCV
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[19:19:55] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233XH5WJCV
    [shop_id] => 533042255
)

============================================================

[19:19:55] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767208795
    [base_string] => 2009491/api/v2/order/get_order_detail1767208795eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => accb6ddbe9b389a1...
    [url_length] => 858
)

============================================================

[19:19:55] INFO: ⏳ Executando cURL...
============================================================

[19:19:56] INFO: ✅ cURL executado
============================================================

[19:19:56] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347445c8bab42eaa49e83eb00"}
    [curl_error] => 
)

============================================================

[19:19:56] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:19:56] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:19:56] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[19:19:57] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347445c9ab93bf7a64ad4fe00"}
)

============================================================

[19:19:57] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512233XH5WJCV
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[19:19:57] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512233XH5WJCV
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:25:08] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233XH5WJCV
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[19:25:08] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233XH5WJCV
    [shop_id] => 533042255
)

============================================================

[19:25:08] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767209108
    [base_string] => 2009491/api/v2/order/get_order_detail1767209108eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => e4132036a9e87f9e...
    [url_length] => 858
)

============================================================

[19:25:08] INFO: ⏳ Executando cURL...
============================================================

[19:25:09] INFO: ✅ cURL executado
============================================================

[19:25:09] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347446f3464106b79a86be400"}
    [curl_error] => 
)

============================================================

[19:25:09] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:25:09] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:25:09] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[19:25:10] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347446f436d680f7b22031300"}
)

============================================================

[19:25:10] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512233XH5WJCV
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[19:25:10] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512233XH5WJCV
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[00:47:17] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25121386JUGPA9
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[00:47:17] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25121386JUGPA9
    [shop_id] => 533042255
)

============================================================

[00:47:17] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767228437
    [base_string] => 2009491/api/v2/order/get_order_detail1767228437eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => a7f6b6c53acbddc5...
    [url_length] => 858
)

============================================================

[00:47:17] INFO: ⏳ Executando cURL...
============================================================

[00:47:18] INFO: ✅ cURL executado
============================================================

[00:47:18] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34748ef4d898f7b68c81bc200"}
    [curl_error] => 
)

============================================================

[00:47:18] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[00:47:18] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[00:47:18] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[00:47:19] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34748ef5cacbeba261e4e2500"}
)

============================================================

[00:47:19] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 25121386JUGPA9
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[00:47:19] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 25121386JUGPA9
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[10:21:44] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226D4GHSR3P
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[10:21:44] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226D4GHSR3P
    [shop_id] => 533042255
)

============================================================

[10:21:44] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767262904
    [base_string] => 2009491/api/v2/order/get_order_detail1767262904eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => db04e121474420ae...
    [url_length] => 858
)

============================================================

[10:21:45] INFO: ⏳ Executando cURL...
============================================================

[10:21:46] INFO: ✅ cURL executado
============================================================

[10:21:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34750f5bb346778854bcfb500"}
    [curl_error] => 
)

============================================================

[10:21:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[10:21:46] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[10:21:46] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[10:21:47] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34750f5ca1eb1756e873de600"}
)

============================================================

[10:21:47] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226D4GHSR3P
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[10:21:47] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226D4GHSR3P
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[10:26:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226D4GHSR3P
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[10:26:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226D4GHSR3P
    [shop_id] => 533042255
)

============================================================

[10:26:52] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767263212
    [base_string] => 2009491/api/v2/order/get_order_detail1767263212eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => a4a1d85c9950852a...
    [url_length] => 858
)

============================================================

[10:26:52] INFO: ⏳ Executando cURL...
============================================================

[10:26:53] INFO: ✅ cURL executado
============================================================

[10:26:53] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347510809bc9e231e2c668e00"}
    [curl_error] => 
)

============================================================

[10:26:53] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[10:26:53] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[10:26:53] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[10:26:54] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347510818d422ddd5f1e28000"}
)

============================================================

[10:26:54] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251226D4GHSR3P
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[10:26:54] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251226D4GHSR3P
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[22:41:12] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251206K8AQFSTT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:41:12] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251206K8AQFSTT
    [shop_id] => 533042255
)

============================================================

[22:41:12] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767307272
    [base_string] => 2009491/api/v2/order/get_order_detail1767307272eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 4df9751d22a8de3e...
    [url_length] => 858
)

============================================================

[22:41:12] INFO: ⏳ Executando cURL...
============================================================

[22:41:13] INFO: ✅ cURL executado
============================================================

[22:41:13] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3475b4a43ad89362ec2c17900"}
    [curl_error] => 
)

============================================================

[22:41:13] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:41:13] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:41:13] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:41:14] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3475b4a524c1f96263b49a500"}
)

============================================================

[22:41:14] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251206K8AQFSTT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:41:14] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251206K8AQFSTT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[22:46:20] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251206K8AQFSTT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:46:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251206K8AQFSTT
    [shop_id] => 533042255
)

============================================================

[22:46:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767307580
    [base_string] => 2009491/api/v2/order/get_order_detail1767307580eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => d9fc23d9f9c6fe70...
    [url_length] => 858
)

============================================================

[22:46:20] INFO: ⏳ Executando cURL...
============================================================

[22:46:21] INFO: ✅ cURL executado
============================================================

[22:46:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3475b5c91258dcea5eebb9700"}
    [curl_error] => 
)

============================================================

[22:46:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:46:21] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:46:21] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:46:22] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3475b5ca03ef893d8af898900"}
)

============================================================

[22:46:22] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251206K8AQFSTT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:46:22] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251206K8AQFSTT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[14:41:26] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226D0V2VAER
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[14:41:26] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226D0V2VAER
    [shop_id] => 504113848
)

============================================================

[14:41:26] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767364886
    [base_string] => 2009491/api/v2/order/get_order_detail1767364886eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoo5HfygYwyszXuQ84AUAB.VwG4Xc0sYDfta304rGhGD6JQAyOzZxbk0_5IyHR-Q4A504113848
    [signature] => 9c38867be787435c...
    [url_length] => 858
)

============================================================

[14:41:26] INFO: ⏳ Executando cURL...
============================================================

[14:41:27] INFO: ✅ cURL executado
============================================================

[14:41:27] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":13.25,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":803044999,"buyer_username":"thayanerocha568","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766748419,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":13.25,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20696","series_number":"5","access_key":"41251232111081000193550050000206961982020243","issue_date":1766748517,"total_value":2.59,"products_total_value":2.59,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":25.87,"model_id":149545492940,"model_name":"2","model_original_price":34.5,"model_quantity_purchased":1,"model_sku":"KIT2CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226D0V2VAER","order_status":"COMPLETED","package_list":[{"package_number":"OFG220447620172531","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492940,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766748433,"payment_method":"Credit Card","pickup_done_time":1766773254,"recipient_address":{"name":"T******a","phone":"******36","town":"","district":"Águas altas","city":"Cachoeira de Pajeú","state":"Minas Gerais","region":"BR","zipcode":"39980000","full_address":"Ru******"},"region":"BR","return_request_due_date":1767824886,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":39.12,"update_time":1767364863}]},"request_id":"e3e3e7f34768b447484fd150d25e0700:01000287f336b34c:0000005d68b351a6"}
    [curl_error] => 
)

============================================================

[14:41:27] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[14:41:27] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226D0V2VAER
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[14:41:27] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226D0V2VAER
)

============================================================

[14:41:27] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226D0V2VAER.json
============================================================

[14:41:27] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT2CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[14:41:27] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226D0V2VAER
)

============================================================

[22:08:25] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251225AMV9V22U
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[22:08:25] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251225AMV9V22U
    [shop_id] => 861037471
)

============================================================

[22:08:25] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767391705
    [base_string] => 2009491/api/v2/order/get_order_detail1767391705eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEoxpfgygYwwfuyog84AUAB.EpUsniCFzfrw4FFoJWNxetz-yL5RMqN19-4YyU6TyrM861037471
    [signature] => e404041ec50f3f61...
    [url_length] => 858
)

============================================================

[22:08:25] INFO: ⏳ Executando cURL...
============================================================

[22:08:26] INFO: ✅ cURL executado
============================================================

[22:08:26] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1308308687,"buyer_username":"q9culrrccp","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766666822,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2473","series_number":"3","access_key":"33251254881101000148550030000024731803524387","issue_date":1766666921,"total_value":17.8,"products_total_value":17.8,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251225AMV9V22U","order_status":"COMPLETED","package_list":[{"package_number":"OFG220366022137234","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766666838,"payment_method":"Credit Card","pickup_done_time":1766762855,"recipient_address":{"name":"P******a","phone":"******83","town":"","district":"Canabrava","city":"João Pinheiro","state":"Minas Gerais","region":"BR","zipcode":"38773000","full_address":"Ru******"},"region":"BR","return_request_due_date":1767803891,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.8,"update_time":1767391687}]},"request_id":"e3e3e7f3476ef2d121fb4f37e42a4800:0100023458cbcb45:00000097dc62881b"}
    [curl_error] => 
)

============================================================

[22:08:26] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:08:26] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251225AMV9V22U
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:08:26] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251225AMV9V22U
)

============================================================

[22:08:26] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251225AMV9V22U.json
============================================================

[22:08:26] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[22:08:26] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251225AMV9V22U
)

============================================================

[12:38:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259EV86RXV
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[12:38:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259EV86RXV
    [shop_id] => 533042255
)

============================================================

[12:38:01] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767443881
    [base_string] => 2009491/api/v2/order/get_order_detail1767443881eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 6ef79ed9bf629c8a...
    [url_length] => 858
)

============================================================

[12:38:01] INFO: ⏳ Executando cURL...
============================================================

[12:38:02] INFO: ✅ cURL executado
============================================================

[12:38:02] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3477b18c96e304999ffb27800"}
    [curl_error] => 
)

============================================================

[12:38:02] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[12:38:02] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[12:38:02] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[12:38:03] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3477b18d896aef9f970d1e900"}
)

============================================================

[12:38:03] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512259EV86RXV
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[12:38:03] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512259EV86RXV
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[20:14:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512221XG8TG94
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:14:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512221XG8TG94
    [shop_id] => 533042255
)

============================================================

[20:14:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767471279
    [base_string] => 2009491/api/v2/order/get_order_detail1767471279eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f1742d7c0135aa54...
    [url_length] => 858
)

============================================================

[20:14:39] INFO: ⏳ Executando cURL...
============================================================

[20:14:40] INFO: ✅ cURL executado
============================================================

[20:14:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3478179cc16a554eb86223500"}
    [curl_error] => 
)

============================================================

[20:14:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:14:40] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:14:40] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:14:41] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3478179db477b820aa3297000"}
)

============================================================

[20:14:41] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512221XG8TG94
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:14:41] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512221XG8TG94
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[17:20:55] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 25121254Q5DWNN
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[17:20:55] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 25121254Q5DWNN
    [shop_id] => 533042255
)

============================================================

[17:20:55] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767633655
    [base_string] => 2009491/api/v2/order/get_order_detail1767633655eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 5f738045aec39349...
    [url_length] => 858
)

============================================================

[17:20:55] INFO: ⏳ Executando cURL...
============================================================

[17:20:56] INFO: ✅ cURL executado
============================================================

[17:20:56] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347a7482dd2b2e7b3d858f900"}
    [curl_error] => 
)

============================================================

[17:20:56] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[17:20:56] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[17:20:56] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[17:20:57] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347a7483ce0247c10e9f3c200"}
)

============================================================

[17:20:57] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 25121254Q5DWNN
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[17:20:57] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 25121254Q5DWNN
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:53:29] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512246NG50YT2
    [seller_id] => 526192906
    [user_id] => 46
    [status] => COMPLETED
)

============================================================

[18:53:29] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512246NG50YT2
    [shop_id] => 526192906
)

============================================================

[18:53:29] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 526192906
    [timestamp] => 1767639209
    [base_string] => 2009491/api/v2/order/get_order_detail1767639209eyJhbGciOiJIUzI1NiJ9.CJPTehABGIqi9PoBIAEo7-jvygYwkv72_Ao4AUAB.qLF_bWVkFJzwY81zJG3suQvApI2tPVZQfqh-VIohYKo526192906
    [signature] => 8c3f7e08b60b5496...
    [url_length] => 858
)

============================================================

[18:53:29] INFO: ⏳ Executando cURL...
============================================================

[18:53:31] INFO: ✅ cURL executado
============================================================

[18:53:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":424287638,"buyer_username":"talitatremontino","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766530050,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-m6ravz8tausnf2_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22693741134,"item_name":"Mata-mosquitos Usb Com Luz Uv Potente E Sem Usar Químicos","item_sku":"DPX9881782506","main_item":false,"model_discounted_price":59.95,"model_id":0,"model_name":"","model_original_price":59.95,"model_quantity_purchased":1,"model_sku":"","order_item_id":22693741134,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512246NG50YT2","order_status":"COMPLETED","package_list":[{"package_number":"OFG220229250145540","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22693741134,"model_id":0,"model_quantity":1,"order_item_id":22693741134,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766530113,"payment_method":"Pix","pickup_done_time":1766772572,"recipient_address":{"name":"L******l","phone":"******07","town":"","district":"Centro","city":"Pirassununga","state":"São Paulo","region":"BR","zipcode":"13630095","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":65.97,"update_time":1767639187}]},"request_id":"e3e3e7f347a8933c7f8dc827dcf47900:010002e531507fc7:000000a701bfc229"}
    [curl_error] => 
)

============================================================

[18:53:31] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[18:53:31] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512246NG50YT2
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:53:31] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512246NG50YT2
)

============================================================

[18:53:31] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512246NG50YT2.json
============================================================

[18:53:31] INFO: 📦 Item #0
Array
(
    [item_name] => Mata-mosquitos Usb Com Luz Uv Potente E Sem Usar Químicos
    [item_sku] => DPX9881782506
    [model_sku] => 
    [sku_usado] => DPX9881782506
    [tem_dpx] => 1
)

============================================================

[18:53:31] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2512246NG50YT2
)

============================================================

[21:30:36] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251229JUQCF35W
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[21:30:36] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251229JUQCF35W
    [shop_id] => 533042255
)

============================================================

[21:30:36] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767648636
    [base_string] => 2009491/api/v2/order/get_order_detail1767648636eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 1ca6a488abd11b88...
    [url_length] => 858
)

============================================================

[21:30:36] INFO: ⏳ Executando cURL...
============================================================

[21:30:37] INFO: ✅ cURL executado
============================================================

[21:30:37] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347aac5232751a1963eb26f00"}
    [curl_error] => 
)

============================================================

[21:30:37] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:30:37] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:30:37] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[21:30:38] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347aac532723b5675e7a50600"}
)

============================================================

[21:30:38] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251229JUQCF35W
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[21:30:38] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251229JUQCF35W
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[12:50:32] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251230PXXK371H
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[12:50:32] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251230PXXK371H
    [shop_id] => 504113848
)

============================================================

[12:50:32] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767703832
    [base_string] => 2009491/api/v2/order/get_order_detail1767703832eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEohuTzygYwrJKdrws4AUAB.fPRodnjViarIe1zQkgXK8O9mmzqJl4cE-xzuDlNZdpw504113848
    [signature] => 5c1abe9fb1941e24...
    [url_length] => 858
)

============================================================

[12:50:32] INFO: ⏳ Executando cURL...
============================================================

[12:50:34] INFO: ✅ cURL executado
============================================================

[12:50:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.15,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1171356831,"buyer_username":"isabeladuarte758","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767089953,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.15,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21121","series_number":"5","access_key":"41251232111081000193550050000211211122233455","issue_date":1767090218,"total_value":1.6,"products_total_value":1.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-81zto-miq2l7l2q682c3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":15.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251230PXXK371H","order_status":"COMPLETED","package_list":[{"package_number":"OFG220789153181623","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767090001,"payment_method":"Pix","pickup_done_time":1767121683,"recipient_address":{"name":"I******e","phone":"******53","town":"","district":"Jardim Magalhães","city":"Francisco Morato","state":"São Paulo","region":"BR","zipcode":"07914000","full_address":"Ru******"},"region":"BR","return_request_due_date":1768230687,"reverse_shipping_fee":0,"ship_by_date":1767149999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.99,"update_time":1767703804}]},"request_id":"e3e3e7f347b79f14a799a6b450510300:010002211f02c99a:000000390f17457c"}
    [curl_error] => 
)

============================================================

[12:50:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[12:50:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251230PXXK371H
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[12:50:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251230PXXK371H
)

============================================================

[12:50:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251230PXXK371H.json
============================================================

[12:50:34] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[12:50:34] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251230PXXK371H
)

============================================================

[13:05:15] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251230N73QKT3B
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[13:05:15] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251230N73QKT3B
    [shop_id] => 504113848
)

============================================================

[13:05:15] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767704715
    [base_string] => 2009491/api/v2/order/get_order_detail1767704715eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEohuTzygYwrJKdrws4AUAB.fPRodnjViarIe1zQkgXK8O9mmzqJl4cE-xzuDlNZdpw504113848
    [signature] => df17b8a22fae3888...
    [url_length] => 858
)

============================================================

[13:05:15] INFO: ⏳ Executando cURL...
============================================================

[13:05:16] INFO: ✅ cURL executado
============================================================

[13:05:16] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":301049920,"buyer_username":"beatrizrodriguesdesouza","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767029996,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21026","series_number":"5","access_key":"41251232111081000193550050000210261902642215","issue_date":1767030217,"total_value":7.5,"products_total_value":7.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra3w-mbijn7fw1khh4b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22794180341,"item_name":"Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor","item_sku":"CANE12243648","main_item":false,"model_discounted_price":37.52,"model_id":159785139715,"model_name":"36 cores","model_original_price":56,"model_quantity_purchased":2,"model_sku":"CANE36CORES","order_item_id":22794180341,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251230N73QKT3B","order_status":"COMPLETED","package_list":[{"package_number":"OFG220729196181203","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22794180341,"model_id":159785139715,"model_quantity":2,"order_item_id":22794180341,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":800,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767030009,"payment_method":"Credit Card","pickup_done_time":1767121547,"recipient_address":{"name":"B******a","phone":"******94","town":"","district":"Centro","city":"Santa Teresa","state":"Espírito Santo","region":"BR","zipcode":"29650000","full_address":"St******"},"region":"BR","return_request_due_date":1768270682,"reverse_shipping_fee":0,"ship_by_date":1767149999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":74,"update_time":1767704706}]},"request_id":"e3e3e7f347b7d3ae3968a3f857b8fd00:010002fb6912eb72:0000006c0f420f8a"}
    [curl_error] => 
)

============================================================

[13:05:16] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[13:05:16] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251230N73QKT3B
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[13:05:16] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251230N73QKT3B
)

============================================================

[13:05:16] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251230N73QKT3B.json
============================================================

[13:05:16] INFO: 📦 Item #0
Array
(
    [item_name] => Canetinhas coloridas escolar com 12 cores/24cores/36cores/48cores hidrocor
    [item_sku] => CANE12243648
    [model_sku] => CANE36CORES
    [sku_usado] => CANE12243648
    [tem_dpx] => 
)

============================================================

[13:05:16] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251230N73QKT3B
)

============================================================

[14:14:06] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101VJHPJ5V0
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[14:14:06] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101VJHPJ5V0
    [shop_id] => 533042255
)

============================================================

[14:14:06] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767708846
    [base_string] => 2009491/api/v2/order/get_order_detail1767708846eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => ce6e8445809c8e9e...
    [url_length] => 858
)

============================================================

[14:14:06] INFO: ⏳ Executando cURL...
============================================================

[14:14:07] INFO: ✅ cURL executado
============================================================

[14:14:07] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347b8c9e4d77f431d4aea4500"}
    [curl_error] => 
)

============================================================

[14:14:07] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[14:14:07] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[14:14:07] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[14:14:08] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347b8c9f3d84f7cd054a72b00"}
)

============================================================

[14:14:08] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260101VJHPJ5V0
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[14:14:08] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260101VJHPJ5V0
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:13:11] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259A8HTH47
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:13:11] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259A8HTH47
    [shop_id] => 533042255
)

============================================================

[15:13:11] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767712391
    [base_string] => 2009491/api/v2/order/get_order_detail1767712391eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 3dcb99c912b6493b...
    [url_length] => 858
)

============================================================

[15:13:11] INFO: ⏳ Executando cURL...
============================================================

[15:13:12] INFO: ✅ cURL executado
============================================================

[15:13:12] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347b99d3917889b9044792d00"}
    [curl_error] => 
)

============================================================

[15:13:12] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:13:12] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:13:12] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:13:13] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347b99d482e91787af17c4a00"}
)

============================================================

[15:13:13] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512259A8HTH47
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:13:13] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512259A8HTH47
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:18:18] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512259A8HTH47
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:18:18] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512259A8HTH47
    [shop_id] => 533042255
)

============================================================

[15:18:18] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767712698
    [base_string] => 2009491/api/v2/order/get_order_detail1767712698eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 68bb82ef1012bcae...
    [url_length] => 858
)

============================================================

[15:18:18] INFO: ⏳ Executando cURL...
============================================================

[15:18:19] INFO: ✅ cURL executado
============================================================

[15:18:19] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347b9af87449e233736c44a00"}
    [curl_error] => 
)

============================================================

[15:18:19] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:18:19] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:18:19] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:18:20] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347b9af9657878deb002e9400"}
)

============================================================

[15:18:20] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2512259A8HTH47
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:18:20] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2512259A8HTH47
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:51:53] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251228GE9UJXAH
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[16:51:53] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251228GE9UJXAH
    [shop_id] => 533042255
)

============================================================

[16:51:53] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767804713
    [base_string] => 2009491/api/v2/order/get_order_detail1767804713eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 3a3f96bd7d226406...
    [url_length] => 858
)

============================================================

[16:51:53] INFO: ⏳ Executando cURL...
============================================================

[16:51:54] INFO: ✅ cURL executado
============================================================

[16:51:54] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347cf1c075b5b1b3c46dbc500"}
    [curl_error] => 
)

============================================================

[16:51:54] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[16:51:54] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[16:51:54] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[16:51:55] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347cf1c16f3635f189ac1c000"}
)

============================================================

[16:51:55] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251228GE9UJXAH
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[16:51:55] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251228GE9UJXAH
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:57:11] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251228GE9UJXAH
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[16:57:11] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251228GE9UJXAH
    [shop_id] => 533042255
)

============================================================

[16:57:11] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767805031
    [base_string] => 2009491/api/v2/order/get_order_detail1767805031eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 5d3b01e7222283e0...
    [url_length] => 858
)

============================================================

[16:57:11] INFO: ⏳ Executando cURL...
============================================================

[16:57:12] INFO: ✅ cURL executado
============================================================

[16:57:12] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347cf2efb3da2dcaf96ecd100"}
    [curl_error] => 
)

============================================================

[16:57:12] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[16:57:12] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[16:57:12] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[16:57:13] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347cf2f0ac8ab8b8beba2d400"}
)

============================================================

[16:57:13] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251228GE9UJXAH
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[16:57:13] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251228GE9UJXAH
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[17:44:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601044TQN4FX1
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[17:44:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601044TQN4FX1
    [shop_id] => 504113848
)

============================================================

[17:44:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767807879
    [base_string] => 2009491/api/v2/order/get_order_detail1767807879eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoi8P5ygYwu8_A8Q44AUAB.uogCCnuqZKihkhBmtRKPi_M9041VPCIThj2qVROrKl4504113848
    [signature] => afb90c47194ea539...
    [url_length] => 858
)

============================================================

[17:44:39] INFO: ⏳ Executando cURL...
============================================================

[17:44:40] INFO: ✅ cURL executado
============================================================

[17:44:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347cfd8c2bde891c98d3be600"}
    [curl_error] => 
)

============================================================

[17:44:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[17:44:40] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[17:44:40] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 504113848
    [user_id] => 519
)

============================================================

[17:44:41] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[17:44:41] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[17:44:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601044TQN4FX1
    [shop_id] => 504113848
)

============================================================

[17:44:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767807881
    [base_string] => 2009491/api/v2/order/get_order_detail1767807881eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoibf6ygYw3pffkw04AUAB.297De8t8eLFBghWeThtcxtpWGQsamhZXstQ7T4lwMOA504113848
    [signature] => 73d864afee02c596...
    [url_length] => 858
)

============================================================

[17:44:41] INFO: ⏳ Executando cURL...
============================================================

[17:44:43] INFO: ✅ cURL executado
============================================================

[17:44:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":226689539,"buyer_username":"fificat10","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767466950,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21882","series_number":"5","access_key":"41260132111081000193550050000218821834986420","issue_date":1767467021,"total_value":1.8,"products_total_value":1.8,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824jc-mf4kmtg6m03y37_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23694435597,"item_name":"Pincel Atômico Marcador Permanente  Com Ponta Chanfrada e Recarregável Compactor","item_sku":"MARCADOR PERMANETE COMPACTOR","main_item":false,"model_discounted_price":17.99,"model_id":209612391176,"model_name":"KIT 3 CORES AZ-PT- VM","model_original_price":36,"model_quantity_purchased":1,"model_sku":"KIT3 CORES MARCADOR PERMANENTE","order_item_id":23694435597,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601044TQN4FX1","order_status":"COMPLETED","package_list":[{"package_number":"OFG221166151100320","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23694435597,"model_id":209612391176,"model_quantity":1,"order_item_id":23694435597,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":100,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767466971,"payment_method":"Credit Card","pickup_done_time":1767630996,"recipient_address":{"name":"V******k","phone":"******18","town":"","district":"Aviação","city":"São José dos Pinhais","state":"Paraná","region":"BR","zipcode":"83045410","full_address":"R ******"},"region":"BR","return_request_due_date":1768406680,"reverse_shipping_fee":0,"ship_by_date":1767668399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.99,"update_time":1767807837}]},"request_id":"e3e3e7f347cfd8e14d3cc44f06f0b600:010002193daae72a:000000e3b228c0a4"}
    [curl_error] => 
)

============================================================

[17:44:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[17:44:43] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601044TQN4FX1
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[17:44:43] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601044TQN4FX1
)

============================================================

[17:44:43] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601044TQN4FX1.json
============================================================

[17:44:43] INFO: 📦 Item #0
Array
(
    [item_name] => Pincel Atômico Marcador Permanente  Com Ponta Chanfrada e Recarregável Compactor
    [item_sku] => MARCADOR PERMANETE COMPACTOR
    [model_sku] => KIT3 CORES MARCADOR PERMANENTE
    [sku_usado] => MARCADOR PERMANETE COMPACTOR
    [tem_dpx] => 
)

============================================================

[17:44:43] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601044TQN4FX1
)

============================================================

[18:05:24] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251229KMQR9PCQ
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[18:05:24] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251229KMQR9PCQ
    [shop_id] => 533042255
)

============================================================

[18:05:24] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767809124
    [base_string] => 2009491/api/v2/order/get_order_detail1767809124eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 1e511adf031cf40a...
    [url_length] => 858
)

============================================================

[18:05:24] INFO: ⏳ Executando cURL...
============================================================

[18:05:25] INFO: ✅ cURL executado
============================================================

[18:05:25] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347d022f31e4a6e5010bcab00"}
    [curl_error] => 
)

============================================================

[18:05:25] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[18:05:25] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[18:05:25] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[18:05:26] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347d0230244cffe2614a5c700"}
)

============================================================

[18:05:26] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251229KMQR9PCQ
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[18:05:26] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251229KMQR9PCQ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[20:41:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101VERG02JH
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[20:41:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101VERG02JH
    [shop_id] => 504113848
)

============================================================

[20:41:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767818491
    [base_string] => 2009491/api/v2/order/get_order_detail1767818491eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoibf6ygYw3pffkw04AUAB.297De8t8eLFBghWeThtcxtpWGQsamhZXstQ7T4lwMOA504113848
    [signature] => 34014c218986a8cd...
    [url_length] => 858
)

============================================================

[20:41:31] INFO: ⏳ Executando cURL...
============================================================

[20:41:32] INFO: ✅ cURL executado
============================================================

[20:41:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":512783638,"buyer_username":"silvaa0424","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767278727,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21368","series_number":"5","access_key":"41260132111081000193550050000213681519335528","issue_date":1767278926,"total_value":1.29,"products_total_value":1.29,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rffx-m9ahxxg2pjtzd2_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23198451439,"item_name":"KIT com 5 Caderno brochura Caligrafia Pedagogica 40  fls Jandainha 1/4","item_sku":"KIT5JANCALI","main_item":false,"model_discounted_price":12.93,"model_id":0,"model_name":"","model_original_price":19.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":23198451439,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.35,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260101VERG02JH","order_status":"COMPLETED","package_list":[{"package_number":"OFG220977927185529","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23198451439,"model_id":0,"model_quantity":1,"order_item_id":23198451439,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":350,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767278741,"payment_method":"Credit Card","pickup_done_time":1767366898,"recipient_address":{"name":"S******t","phone":"******69","town":"","district":"Vietinã","city":"Vitor Meireles","state":"Santa Catarina","region":"BR","zipcode":"89148000","full_address":"Ri******"},"region":"BR","return_request_due_date":1768405205,"reverse_shipping_fee":0,"ship_by_date":1767409199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":23.76,"update_time":1767818166}]},"request_id":"e3e3e7f347d25144adec240b671fdc00:01000205e853a4e4:000000edbed3f252"}
    [curl_error] => 
)

============================================================

[20:41:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[20:41:32] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260101VERG02JH
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[20:41:32] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260101VERG02JH
)

============================================================

[20:41:32] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260101VERG02JH.json
============================================================

[20:41:32] INFO: 📦 Item #0
Array
(
    [item_name] => KIT com 5 Caderno brochura Caligrafia Pedagogica 40  fls Jandainha 1/4
    [item_sku] => KIT5JANCALI
    [model_sku] => 
    [sku_usado] => KIT5JANCALI
    [tem_dpx] => 
)

============================================================

[20:41:32] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260101VERG02JH
)

============================================================

[22:03:56] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2512233M81KY7P
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:03:56] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2512233M81KY7P
    [shop_id] => 504113848
)

============================================================

[22:03:56] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767823436
    [base_string] => 2009491/api/v2/order/get_order_detail1767823436eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEorKn7ygYw3Neqywc4AUAB.s9UBcuw129jREwMJjKGLP8riZpqqC83tGChPTyULK4g504113848
    [signature] => 49687ae625c8accd...
    [url_length] => 858
)

============================================================

[22:03:56] INFO: ⏳ Executando cURL...
============================================================

[22:03:57] INFO: ✅ cURL executado
============================================================

[22:03:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":17.51,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":224464585,"buyer_username":"rafaelacassim","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766425624,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":17.51,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20420","series_number":"5","access_key":"41251232111081000193550050000204201179200640","issue_date":1766425726,"total_value":1.8,"products_total_value":1.8,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ra28-mbijsetlsko7aa_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22894180229,"item_name":"BALÃO CORAÇÃO N6 VERMELHO ART-LATEX 50 UNIADES","item_sku":"BACORAN6","main_item":false,"model_discounted_price":17.99,"model_id":0,"model_name":"","model_original_price":25.8,"model_quantity_purchased":1,"model_sku":"","order_item_id":22894180229,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2512233M81KY7P","order_status":"COMPLETED","package_list":[{"package_number":"OFG220124824193886","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22894180229,"model_id":0,"model_quantity":1,"order_item_id":22894180229,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":300,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766425631,"payment_method":"Credit Card","pickup_done_time":1766509653,"recipient_address":{"name":"R******m","phone":"******90","town":"","district":"Basevi","city":"Prado","state":"Bahia","region":"BR","zipcode":"45980000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1766545199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":35.5,"update_time":1767823138}]},"request_id":"e3e3e7f347d377fb23c1a045bd1d4c00:0100023b27570221:0000005d0810c2fb"}
    [curl_error] => 
)

============================================================

[22:03:57] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:03:57] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2512233M81KY7P
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:03:57] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2512233M81KY7P
)

============================================================

[22:03:57] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2512233M81KY7P.json
============================================================

[22:03:57] INFO: 📦 Item #0
Array
(
    [item_name] => BALÃO CORAÇÃO N6 VERMELHO ART-LATEX 50 UNIADES
    [item_sku] => BACORAN6
    [model_sku] => 
    [sku_usado] => BACORAN6
    [tem_dpx] => 
)

============================================================

[22:03:57] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2512233M81KY7P
)

============================================================

[22:32:18] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251227E7UC28JW
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:32:18] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251227E7UC28JW
    [shop_id] => 504113848
)

============================================================

[22:32:18] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767825138
    [base_string] => 2009491/api/v2/order/get_order_detail1767825138eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEorKn7ygYw3Neqywc4AUAB.s9UBcuw129jREwMJjKGLP8riZpqqC83tGChPTyULK4g504113848
    [signature] => e59deba248b04fd9...
    [url_length] => 858
)

============================================================

[22:32:18] INFO: ⏳ Executando cURL...
============================================================

[22:32:20] INFO: ✅ cURL executado
============================================================

[22:32:20] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":829788359,"buyer_username":"marizetequeiroz969","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766790272,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20760","series_number":"5","access_key":"41251232111081000193550050000207601778937625","issue_date":1766790527,"total_value":1.21,"products_total_value":1.21,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rau0-mamv5c4ly368d6_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998560376,"item_name":"Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report","item_sku":"SENINHA4COLO","main_item":false,"model_discounted_price":12.06,"model_id":199608168338,"model_name":"Report (Verde 100 fls)","model_original_price":18,"model_quantity_purchased":1,"model_sku":"A4VERDE","order_item_id":23998560376,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251227E7UC28JW","order_status":"COMPLETED","package_list":[{"package_number":"OFG220489472119881","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998560376,"model_id":199608168338,"model_quantity":1,"order_item_id":23998560376,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":750,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766790321,"payment_method":"Pix","pickup_done_time":1767026634,"recipient_address":{"name":"M******z","phone":"******84","town":"","district":"Sao camilo","city":"Palotina","state":"Paraná","region":"BR","zipcode":"85950000","full_address":"Ru******"},"region":"BR","return_request_due_date":1768087759,"reverse_shipping_fee":0,"ship_by_date":1767063599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.48,"update_time":1767825115}]},"request_id":"e3e3e7f347d3dd79143eadd06f647c00:01000226e09768cb:0000000133241882"}
    [curl_error] => 
)

============================================================

[22:32:20] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:32:20] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251227E7UC28JW
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:32:20] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251227E7UC28JW
)

============================================================

[22:32:20] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251227E7UC28JW.json
============================================================

[22:32:20] INFO: 📦 Item #0
Array
(
    [item_name] => Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report
    [item_sku] => SENINHA4COLO
    [model_sku] => A4VERDE
    [sku_usado] => SENINHA4COLO
    [tem_dpx] => 
)

============================================================

[22:32:20] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251227E7UC28JW
)

============================================================

[01:38:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251227ENT8E417
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[01:38:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251227ENT8E417
    [shop_id] => 504113848
)

============================================================

[01:38:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767836318
    [base_string] => 2009491/api/v2/order/get_order_detail1767836318eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEorKn7ygYw3Neqywc4AUAB.s9UBcuw129jREwMJjKGLP8riZpqqC83tGChPTyULK4g504113848
    [signature] => 5ffc5f2c4171ea34...
    [url_length] => 858
)

============================================================

[01:38:38] INFO: ⏳ Executando cURL...
============================================================

[01:38:39] INFO: ✅ cURL executado
============================================================

[01:38:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":11.51,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1087961404,"buyer_username":"wsrtb6sile","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766805266,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":11.51,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20784","series_number":"5","access_key":"41251232111081000193550050000207841440276199","issue_date":1766805518,"total_value":1.61,"products_total_value":1.61,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7repb-m8c25e95s23r4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998374014,"item_name":"KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA","item_sku":"KITSCB1000","main_item":false,"model_discounted_price":16.12,"model_id":149545492939,"model_name":"1","model_original_price":21.5,"model_quantity_purchased":1,"model_sku":"KIT1CB","order_item_id":23998374014,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1.114,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251227ENT8E417","order_status":"COMPLETED","package_list":[{"package_number":"OFG220504466135593","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998374014,"model_id":149545492939,"model_quantity":1,"order_item_id":23998374014,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1114,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766805288,"payment_method":"SParcelado","pickup_done_time":1767026309,"recipient_address":{"name":"R******s","phone":"******12","town":"","district":"Ravena","city":"Sabará","state":"Minas Gerais","region":"BR","zipcode":"34516432","full_address":"Ru******"},"region":"BR","return_request_due_date":1768136804,"reverse_shipping_fee":0,"ship_by_date":1767063599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":16.12,"update_time":1767836291}]},"request_id":"e3e3e7f347d677cfd725e04592278f00:01000224210dfcbe:000000b014718be7"}
    [curl_error] => 
)

============================================================

[01:38:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[01:38:39] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251227ENT8E417
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[01:38:39] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251227ENT8E417
)

============================================================

[01:38:39] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251227ENT8E417.json
============================================================

[01:38:39] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 1/2/3/4/5/6  Colas Liquida Branca 1kg Escolar  PVA
    [item_sku] => KITSCB1000
    [model_sku] => KIT1CB
    [sku_usado] => KITSCB1000
    [tem_dpx] => 
)

============================================================

[01:38:39] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251227ENT8E417
)

============================================================

[01:41:44] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251226BY318U1K
    [seller_id] => 942858902
    [user_id] => 16
    [status] => COMPLETED
)

============================================================

[01:41:44] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251226BY318U1K
    [shop_id] => 942858902
)

============================================================

[01:41:44] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 942858902
    [timestamp] => 1767836504
    [base_string] => 2009491/api/v2/order/get_order_detail1767836504eyJhbGciOiJIUzI1NiJ9.CJPTehABGJbFy8EDIAEo74X8ygYw0PiBowM4AUAB.lAK1QomIC5l531POsnNRLhlHh4FOxWmx7FxzxANLrtg942858902
    [signature] => 731942028a5015a4...
    [url_length] => 858
)

============================================================

[01:41:44] INFO: ⏳ Executando cURL...
============================================================

[01:41:46] INFO: ✅ cURL executado
============================================================

[01:41:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":11.59,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":489059659,"buyer_username":"vanessamasaki1992","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1766712145,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":11.59,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rdw8-mbpnuu500ldl3d_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22494195443,"item_name":"Fonte De Alimentação 12v 2a Bivolt Plug 5.5MM/1.7MM","item_sku":"GH-9041680","main_item":false,"model_discounted_price":24.9,"model_id":0,"model_name":"","model_original_price":24.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":22494195443,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251226BY318U1K","order_status":"COMPLETED","package_list":[{"package_number":"OFG220411345112677","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22494195443,"model_id":0,"model_quantity":1,"order_item_id":22494195443,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1766712205,"payment_method":"Pix","pickup_done_time":1766768073,"recipient_address":{"name":"V******i","phone":"******20","town":"","district":"Parque do Lago","city":"São Paulo","state":"São Paulo","region":"BR","zipcode":"04945020","full_address":"R ******"},"region":"BR","return_request_due_date":1767980959,"reverse_shipping_fee":0,"ship_by_date":1766804399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":24.9,"update_time":1767834368}]},"request_id":"e3e3e7f347d682eedbc36889e2dab600:0100024023710690:00000075b304d307"}
    [curl_error] => 
)

============================================================

[01:41:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[01:41:46] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251226BY318U1K
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[01:41:46] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251226BY318U1K
)

============================================================

[01:41:46] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251226BY318U1K.json
============================================================

[01:41:46] INFO: 📦 Item #0
Array
(
    [item_name] => Fonte De Alimentação 12v 2a Bivolt Plug 5.5MM/1.7MM
    [item_sku] => GH-9041680
    [model_sku] => 
    [sku_usado] => GH-9041680
    [tem_dpx] => 
)

============================================================

[01:41:46] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251226BY318U1K
)

============================================================

[10:05:40] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601057J1NY9CH
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[10:05:40] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601057J1NY9CH
    [shop_id] => 504113848
)

============================================================

[10:05:40] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767866740
    [base_string] => 2009491/api/v2/order/get_order_detail1767866740eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo9rj9ygYw6YGWmA84AUAB.Xma1UzFO3EDekfjNVk_mfSDQPGk0cVHMPJI5iD4tUww504113848
    [signature] => 16fa98ab3478e164...
    [url_length] => 858
)

============================================================

[10:05:41] INFO: ⏳ Executando cURL...
============================================================

[10:05:42] INFO: ✅ cURL executado
============================================================

[10:05:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":18.11,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1048904318,"buyer_username":"magalifarias506","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767560703,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":18.11,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"22141","series_number":"5","access_key":"41260132111081000193550050000221411308178163","issue_date":1767560928,"total_value":3.45,"products_total_value":3.45,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rat9-mamsvfs6hptvb5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19599762178,"item_name":"Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas","item_sku":"REPORTA4500","main_item":false,"model_discounted_price":34.45,"model_id":0,"model_name":"","model_original_price":53,"model_quantity_purchased":1,"model_sku":"","order_item_id":19599762178,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":3.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601057J1NY9CH","order_status":"COMPLETED","package_list":[{"package_number":"OFG221259903117322","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19599762178,"model_id":0,"model_quantity":1,"order_item_id":19599762178,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":3400,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767560783,"payment_method":"Pix","pickup_done_time":1767631977,"recipient_address":{"name":"M******s","phone":"******79","town":"","district":"Fátima","city":"Otacílio Costa","state":"Santa Catarina","region":"BR","zipcode":"88540000","full_address":"1 ******"},"region":"BR","return_request_due_date":1768414502,"reverse_shipping_fee":0,"ship_by_date":1767668399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":52.56,"update_time":1767866704}]},"request_id":"e3e3e7f347dd8d28fdd4d37815364300:010002c6b5dd1f8c:000000f6a57d3476"}
    [curl_error] => 
)

============================================================

[10:05:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[10:05:42] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601057J1NY9CH
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[10:05:42] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601057J1NY9CH
)

============================================================

[10:05:42] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601057J1NY9CH.json
============================================================

[10:05:42] INFO: 📦 Item #0
Array
(
    [item_name] => Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas
    [item_sku] => REPORTA4500
    [model_sku] => 
    [sku_usado] => REPORTA4500
    [tem_dpx] => 
)

============================================================

[10:05:42] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601057J1NY9CH
)

============================================================

[15:04:45] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251229K3XJD1BE
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:04:45] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251229K3XJD1BE
    [shop_id] => 533042255
)

============================================================

[15:04:45] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767884685
    [base_string] => 2009491/api/v2/order/get_order_detail1767884685eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 054a6d6c1567f521...
    [url_length] => 858
)

============================================================

[15:04:45] INFO: ⏳ Executando cURL...
============================================================

[15:04:46] INFO: ✅ cURL executado
============================================================

[15:04:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347e1bab47f0c784fa1acc400"}
    [curl_error] => 
)

============================================================

[15:04:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:04:46] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:04:46] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:04:47] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347e1bac415b1a1b7cd03a500"}
)

============================================================

[15:04:47] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251229K3XJD1BE
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:04:47] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251229K3XJD1BE
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:09:52] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251229K3XJD1BE
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:09:52] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251229K3XJD1BE
    [shop_id] => 533042255
)

============================================================

[15:09:52] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767884992
    [base_string] => 2009491/api/v2/order/get_order_detail1767884992eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f27963a7d1188e8a...
    [url_length] => 858
)

============================================================

[15:09:52] INFO: ⏳ Executando cURL...
============================================================

[15:09:53] INFO: ✅ cURL executado
============================================================

[15:09:53] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347e1cd0512cde0172fb0cd00"}
    [curl_error] => 
)

============================================================

[15:09:53] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:09:53] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:09:53] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:09:54] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347e1cd1409de0d199345c400"}
)

============================================================

[15:09:54] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251229K3XJD1BE
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:09:54] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251229K3XJD1BE
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:50:30] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601020C5HK4EB
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[15:50:30] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601020C5HK4EB
    [shop_id] => 504113848
)

============================================================

[15:50:30] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767887430
    [base_string] => 2009491/api/v2/order/get_order_detail1767887430eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEor5r_ygYwxZ-zlAU4AUAB.92ezh10mj0iU8GP7kJqTtPSGZdcgcwRPXjNdI3NYDnY504113848
    [signature] => 87c79e0cfe7e5f5f...
    [url_length] => 858
)

============================================================

[15:50:30] INFO: ⏳ Executando cURL...
============================================================

[15:50:32] INFO: ✅ cURL executado
============================================================

[15:50:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":29.94,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1347576115,"buyer_username":"92c2vrzp73","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767313871,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":29.94,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21489","series_number":"5","access_key":"41260132111081000193550050000214891541274159","issue_date":1767314026,"total_value":6.59,"products_total_value":6.59,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824hq-mf2ly5eigpoo5e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998924332,"item_name":"Kit 2 Pacotes Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas","item_sku":"KIT2REPORTA4500","main_item":false,"model_discounted_price":65.85,"model_id":0,"model_name":"","model_original_price":65.85,"model_quantity_purchased":1,"model_sku":"","order_item_id":23998924332,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":4.6,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601020C5HK4EB","order_status":"COMPLETED","package_list":[{"package_number":"OFG221013071136595","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998924332,"model_id":0,"model_quantity":1,"order_item_id":23998924332,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":4600,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767313891,"payment_method":"SParcelado","pickup_done_time":1767387018,"recipient_address":{"name":"F******a","phone":"******91","town":"","district":"COHAB","city":"Recife","state":"Pernambuco","region":"BR","zipcode":"51270670","full_address":"Ru******"},"region":"BR","return_request_due_date":1768426832,"reverse_shipping_fee":0,"ship_by_date":1767409199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":75.79,"update_time":1767887410}]},"request_id":"e3e3e7f347e25e5e1c0feef0d107a000:010002dab6a9ed5f:000000278b10eda6"}
    [curl_error] => 
)

============================================================

[15:50:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[15:50:32] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601020C5HK4EB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[15:50:32] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601020C5HK4EB
)

============================================================

[15:50:32] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601020C5HK4EB.json
============================================================

[15:50:32] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 2 Pacotes Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas
    [item_sku] => KIT2REPORTA4500
    [model_sku] => 
    [sku_usado] => KIT2REPORTA4500
    [tem_dpx] => 
)

============================================================

[15:50:32] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601020C5HK4EB
)

============================================================

[16:41:24] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260103280B5CKB
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[16:41:24] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260103280B5CKB
    [shop_id] => 504113848
)

============================================================

[16:41:24] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767890484
    [base_string] => 2009491/api/v2/order/get_order_detail1767890484eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEor5r_ygYwxZ-zlAU4AUAB.92ezh10mj0iU8GP7kJqTtPSGZdcgcwRPXjNdI3NYDnY504113848
    [signature] => 41dc0a2889c5eb5c...
    [url_length] => 858
)

============================================================

[16:41:24] INFO: ⏳ Executando cURL...
============================================================

[16:41:26] INFO: ✅ cURL executado
============================================================

[16:41:26] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.92,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":402823603,"buyer_username":"papelpolar","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767378121,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.92,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21678","series_number":"5","access_key":"41260132111081000193550050000216781140215787","issue_date":1767378223,"total_value":2.6,"products_total_value":2.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8259t-mfx617isijnwc7_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22499040962,"item_name":"Palito redondo de picolé e escolar com 500 unidades","item_sku":"kit500palitosorvete","main_item":false,"model_discounted_price":25.98,"model_id":0,"model_name":"","model_original_price":50,"model_quantity_purchased":1,"model_sku":"","order_item_id":22499040962,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.6,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260103280B5CKB","order_status":"COMPLETED","package_list":[{"package_number":"OFG221077322118752","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22499040962,"model_id":0,"model_quantity":1,"order_item_id":22499040962,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767378286,"payment_method":"Pix","pickup_done_time":1767631055,"recipient_address":{"name":"G******a","phone":"******90","town":"","district":"São João Clímaco","city":"São Paulo","state":"São Paulo","region":"BR","zipcode":"04240080","full_address":"R ******"},"region":"BR","return_request_due_date":1768484166,"reverse_shipping_fee":0,"ship_by_date":1767668399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":25.98,"update_time":1767890470}]},"request_id":"e3e3e7f347e314675aab2c63c1afc100:010002ffed07c138:000000f274b6d12d"}
    [curl_error] => 
)

============================================================

[16:41:26] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[16:41:26] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260103280B5CKB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[16:41:26] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260103280B5CKB
)

============================================================

[16:41:26] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260103280B5CKB.json
============================================================

[16:41:26] INFO: 📦 Item #0
Array
(
    [item_name] => Palito redondo de picolé e escolar com 500 unidades
    [item_sku] => kit500palitosorvete
    [model_sku] => 
    [sku_usado] => kit500palitosorvete
    [tem_dpx] => 
)

============================================================

[16:41:26] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260103280B5CKB
)

============================================================

[20:00:29] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221VFTSNC62
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:00:29] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221VFTSNC62
    [shop_id] => 533042255
)

============================================================

[20:00:29] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767902429
    [base_string] => 2009491/api/v2/order/get_order_detail1767902429eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 0b03c075533a0073...
    [url_length] => 858
)

============================================================

[20:00:29] INFO: ⏳ Executando cURL...
============================================================

[20:00:30] INFO: ✅ cURL executado
============================================================

[20:00:30] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347e5dc62d6d6bbedad359a00"}
    [curl_error] => 
)

============================================================

[20:00:30] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:00:30] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:00:31] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:00:32] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347e5dc726137906c36368f00"}
)

============================================================

[20:00:32] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251221VFTSNC62
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:00:32] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251221VFTSNC62
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[20:05:42] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251221VFTSNC62
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:05:42] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251221VFTSNC62
    [shop_id] => 533042255
)

============================================================

[20:05:42] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1767902742
    [base_string] => 2009491/api/v2/order/get_order_detail1767902742eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f3846bccdd016ab7...
    [url_length] => 858
)

============================================================

[20:05:42] INFO: ⏳ Executando cURL...
============================================================

[20:05:43] INFO: ✅ cURL executado
============================================================

[20:05:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347e5ef02a60b50445a611000"}
    [curl_error] => 
)

============================================================

[20:05:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:05:43] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:05:43] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:05:44] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347e5ef11c8abbb9c86adca00"}
)

============================================================

[20:05:44] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251221VFTSNC62
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:05:44] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251221VFTSNC62
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[21:53:20] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260102W11S5RC4
    [seller_id] => 566172544
    [user_id] => 16
    [status] => COMPLETED
)

============================================================

[21:53:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260102W11S5RC4
    [shop_id] => 566172544
)

============================================================

[21:53:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 566172544
    [timestamp] => 1767909200
    [base_string] => 2009491/api/v2/order/get_order_detail1767909200eyJhbGciOiJIUzI1NiJ9.CJPTehABGIC3_I0CIAEosM6AywYw_K7-wwg4AUAB.9OGaUiRrZ_UfOm91a-YIPV52F18-pPknwX4paz0lo1k566172544
    [signature] => 2409f2f3139ee832...
    [url_length] => 858
)

============================================================

[21:53:20] INFO: ⏳ Executando cURL...
============================================================

[21:53:22] INFO: ✅ cURL executado
============================================================

[21:53:22] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1553306180,"buyer_username":"cristianevieira543","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767298365,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"33260163488921000165550110000003601013262272","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7qukw-lhuuxdoke1cea4_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":17504048463,"item_name":"super oferta  Miniaturas Com 5 Bonecos Power Rangers + 3 carrinhos de formula 1","item_sku":"","main_item":false,"model_discounted_price":27.97,"model_id":0,"model_name":"","model_original_price":27.97,"model_quantity_purchased":1,"model_sku":"","order_item_id":17504048463,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260102W11S5RC4","order_status":"COMPLETED","package_list":[{"package_number":"OFG220997565182885","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":17504048463,"model_id":0,"model_quantity":1,"order_item_id":17504048463,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767298397,"payment_method":"Pix","pickup_done_time":1767376085,"recipient_address":{"name":"D******a","phone":"******18","town":"","district":"Warnow","city":"Indaial","state":"Santa Catarina","region":"BR","zipcode":"89080675","full_address":"Ru******"},"region":"BR","return_request_due_date":1768319614,"reverse_shipping_fee":0,"ship_by_date":1767409199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":27.97,"update_time":1767909175}]},"request_id":"e3e3e7f347e76ff5798b6ed88bd53800:0100020f19b12a04:0000005b98f50665"}
    [curl_error] => 
)

============================================================

[21:53:22] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:53:22] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260102W11S5RC4
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:53:22] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260102W11S5RC4
)

============================================================

[21:53:22] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260102W11S5RC4.json
============================================================

[21:53:22] INFO: 📦 Item #0
Array
(
    [item_name] => super oferta  Miniaturas Com 5 Bonecos Power Rangers + 3 carrinhos de formula 1
    [item_sku] => 
    [model_sku] => 
    [sku_usado] => 
    [tem_dpx] => 
)

============================================================

[21:53:22] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260102W11S5RC4
)

============================================================

[23:17:25] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260106BCR4M5F7
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[23:17:25] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260106BCR4M5F7
    [shop_id] => 861037471
)

============================================================

[23:17:25] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1767914245
    [base_string] => 2009491/api/v2/order/get_order_detail1767914245eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEox7CAywYwmofTywk4AUAB.pDYGtJc1ZO0o8uQJf9xvQAGT572keaN1NOuw0LV5Mew861037471
    [signature] => 102e796ed74d05bb...
    [url_length] => 858
)

============================================================

[23:17:25] INFO: ⏳ Executando cURL...
============================================================

[23:17:26] INFO: ✅ cURL executado
============================================================

[23:17:26] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1348879856,"buyer_username":"celsoalmeida325","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767692452,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2560","series_number":"3","access_key":"33260154881101000148550030000025601514262564","issue_date":1767692619,"total_value":17.8,"products_total_value":17.8,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rfif-m9dhcomlpkh365_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19098138295,"item_name":"Estilete Profissional 18mm Com Trava Aço Inox Maciço","item_sku":"GH-8624014","main_item":false,"model_discounted_price":17.8,"model_id":0,"model_name":"","model_original_price":19.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":19098138295,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.476,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260106BCR4M5F7","order_status":"COMPLETED","package_list":[{"package_number":"OFG221391652126441","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19098138295,"model_id":0,"model_quantity":1,"order_item_id":19098138295,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":476,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767692507,"payment_method":"Pix","pickup_done_time":1767730388,"recipient_address":{"name":"C******a","phone":"******97","town":"","district":"Nova Angra (Cunhambebe)","city":"Angra dos Reis","state":"Rio de Janeiro","region":"BR","zipcode":"23933115","full_address":"Av******"},"region":"BR","return_request_due_date":1768503429,"reverse_shipping_fee":0,"ship_by_date":1767754799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":29.78,"update_time":1767914220}]},"request_id":"e3e3e7f347e89ca735e9e58730f16400:010002dc663cbc19:000000521a0c8608"}
    [curl_error] => 
)

============================================================

[23:17:26] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:17:26] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260106BCR4M5F7
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:17:26] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260106BCR4M5F7
)

============================================================

[23:17:26] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260106BCR4M5F7.json
============================================================

[23:17:26] INFO: 📦 Item #0
Array
(
    [item_name] => Estilete Profissional 18mm Com Trava Aço Inox Maciço
    [item_sku] => GH-8624014
    [model_sku] => 
    [sku_usado] => GH-8624014
    [tem_dpx] => 
)

============================================================

[23:17:26] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260106BCR4M5F7
)

============================================================

[17:17:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107EA4WRF91
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[17:17:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107EA4WRF91
    [shop_id] => 504113848
)

============================================================

[17:17:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767979058
    [base_string] => 2009491/api/v2/order/get_order_detail1767979058eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEom_-DywYw_IqDmAk4AUAB.WHK9zAF072LyzetSUeMqs9Zreb4NtB99zM_nNzoU5gQ504113848
    [signature] => afa6d291c6d94101...
    [url_length] => 858
)

============================================================

[17:17:38] INFO: ⏳ Executando cURL...
============================================================

[17:17:39] INFO: ✅ cURL executado
============================================================

[17:17:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347f7b3d0b146e0424faadf00"}
    [curl_error] => 
)

============================================================

[17:17:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[17:17:39] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[17:17:39] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 504113848
    [user_id] => 519
)

============================================================

[17:17:40] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[17:17:40] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[17:17:40] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107EA4WRF91
    [shop_id] => 504113848
)

============================================================

[17:17:40] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1767979060
    [base_string] => 2009491/api/v2/order/get_order_detail1767979060eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEotPCEywYwv-D76Qg4AUAB.LRvrQdnE_MLsWrCBpG43wZk6yPrvECYeLdAWo4w9v7w504113848
    [signature] => 4b006b402662b6bd...
    [url_length] => 858
)

============================================================

[17:17:40] INFO: ⏳ Executando cURL...
============================================================

[17:17:42] INFO: ✅ cURL executado
============================================================

[17:17:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":659338895,"buyer_username":"clarissa.macedo","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767792739,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"22901","series_number":"5","access_key":"41260132111081000193550050000229011209788921","issue_date":1767792829,"total_value":1.6,"products_total_value":1.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-822zt-mhy3mddvjh1h65_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58201594324,"item_name":"Papel Mágico A4 Com Bastão Off Paper","item_sku":"kitpapelmagicoa4","main_item":false,"model_discounted_price":15.99,"model_id":239433669844,"model_name":"1 Pacote 5fls","model_original_price":32,"model_quantity_purchased":1,"model_sku":"kitpapelmagicoa4.5fls","order_item_id":58201594324,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260107EA4WRF91","order_status":"COMPLETED","package_list":[{"package_number":"OFG221491939109643","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":58201594324,"model_id":239433669844,"model_quantity":1,"order_item_id":58201594324,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":221,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767792771,"payment_method":"Pix","pickup_done_time":1767819414,"recipient_address":{"name":"C******o","phone":"******50","town":"","district":"Sagrada Família","city":"Caxias do Sul","state":"Rio Grande do Sul","region":"BR","zipcode":"95052000","full_address":"Ru******"},"region":"BR","return_request_due_date":1768573659,"reverse_shipping_fee":0,"ship_by_date":1767841199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.99,"update_time":1767979022}]},"request_id":"e3e3e7f347f7b3eed68960859dbdbc00:0100025f4cb25222:00000028af5dbb12"}
    [curl_error] => 
)

============================================================

[17:17:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[17:17:42] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260107EA4WRF91
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[17:17:42] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260107EA4WRF91
)

============================================================

[17:17:42] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260107EA4WRF91.json
============================================================

[17:17:42] INFO: 📦 Item #0
Array
(
    [item_name] => Papel Mágico A4 Com Bastão Off Paper
    [item_sku] => kitpapelmagicoa4
    [model_sku] => kitpapelmagicoa4.5fls
    [sku_usado] => kitpapelmagicoa4
    [tem_dpx] => 
)

============================================================

[17:17:42] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260107EA4WRF91
)

============================================================

[18:00:01] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260108F68YKVGX
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[18:00:01] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260108F68YKVGX
    [shop_id] => 411294579
)

============================================================

[18:00:01] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767981601
    [base_string] => 2009491/api/v2/order/get_order_detail1767981601eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEo1dSDywYwkMfK3gY4AUAB.QXHnLs6xpUZde_D3oICyJoLwnJuGa5kVpcpFoyzrKjY411294579
    [signature] => ef5fd2a54f0e0864...
    [url_length] => 858
)

============================================================

[18:00:01] INFO: ⏳ Executando cURL...
============================================================

[18:05:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260108F68YKVGX
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[18:05:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260108F68YKVGX
    [shop_id] => 411294579
)

============================================================

[18:05:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1767981902
    [base_string] => 2009491/api/v2/order/get_order_detail1767981902eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEomIaFywYwyI6OtwU4AUAB.moUj929XIDwjRKZv8ggLC636flyR7vKLEhK0pxzdZQs411294579
    [signature] => 60cad113d52bb369...
    [url_length] => 858
)

============================================================

[18:05:02] INFO: ⏳ Executando cURL...
============================================================

[18:05:23] INFO: ✅ cURL executado
============================================================

[18:05:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1014023594,"buyer_username":"lucianareis075","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1767822940,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81ztc-mj06f1eo07416b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58202632630,"item_name":"Kit 10 Adesivos Detox Pés Purificador Natural Sono Profundo Alívio Estresse E Fadiga ✨🦶","item_sku":"","main_item":false,"model_discounted_price":23.3,"model_id":0,"model_name":"","model_original_price":30,"model_quantity_purchased":1,"model_sku":"","order_item_id":58202632630,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260108F68YKVGX","order_status":"COMPLETED","package_list":[{"package_number":"OFG221522140148874","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58202632630,"model_id":0,"model_quantity":1,"order_item_id":58202632630,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":500,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1767822951,"payment_method":"SParcelado","pickup_done_time":1767885646,"recipient_address":{"name":"L******s","phone":"******46","town":"","district":"Jardim Portugal","city":"Bom Jesus dos Perdões","state":"São Paulo","region":"BR","zipcode":"12956154","full_address":"Ru******"},"region":"BR","return_request_due_date":1768585651,"reverse_shipping_fee":0,"ship_by_date":1767927599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":22.51,"update_time":1767981555}]},"request_id":"e3e3e7f347f85e838da83dff841bc700:010002a7c49c15b8:000000dff775b2be"}
    [curl_error] => 
)

============================================================

[18:05:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[18:05:23] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260108F68YKVGX
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:05:23] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260108F68YKVGX
)

============================================================

[18:05:23] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260108F68YKVGX.json
============================================================

[18:05:23] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 10 Adesivos Detox Pés Purificador Natural Sono Profundo Alívio Estresse E Fadiga ✨🦶
    [item_sku] => 
    [model_sku] => 
    [sku_usado] => 
    [tem_dpx] => 
)

============================================================

[18:05:23] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260108F68YKVGX
)

============================================================

[00:00:55] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 26010322G534F5
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[00:00:55] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010322G534F5
    [shop_id] => 533042255
)

============================================================

[00:00:55] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768003255
    [base_string] => 2009491/api/v2/order/get_order_detail1768003255eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => b51603a4cf37d01a...
    [url_length] => 858
)

============================================================

[00:00:55] INFO: ⏳ Executando cURL...
============================================================

[00:00:56] INFO: ✅ cURL executado
============================================================

[00:00:56] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347fd560b0d1e641ccbd1dd00"}
    [curl_error] => 
)

============================================================

[00:00:56] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[00:00:56] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[00:00:56] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[00:00:57] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347fd561aa90cb50a107b4c00"}
)

============================================================

[00:00:57] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 26010322G534F5
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[00:00:57] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 26010322G534F5
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[00:06:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 26010322G534F5
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[00:06:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010322G534F5
    [shop_id] => 533042255
)

============================================================

[00:06:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768003562
    [base_string] => 2009491/api/v2/order/get_order_detail1768003562eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => c44ff47a36425f8c...
    [url_length] => 858
)

============================================================

[00:06:02] INFO: ⏳ Executando cURL...
============================================================

[00:06:03] INFO: ✅ cURL executado
============================================================

[00:06:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f347fd6859c413a164c203e700"}
    [curl_error] => 
)

============================================================

[00:06:03] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[00:06:03] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[00:06:03] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[00:06:04] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f347fd686963021bd85b8a4900"}
)

============================================================

[00:06:04] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 26010322G534F5
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[00:06:04] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 26010322G534F5
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[13:59:08] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251227FNPVW2H7
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[13:59:08] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251227FNPVW2H7
    [shop_id] => 504113848
)

============================================================

[13:59:08] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768053548
    [base_string] => 2009491/api/v2/order/get_order_detail1768053548eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEogcaIywYwr9fQmwE4AUAB.DZ0ryKcgA1M9E4e4lIOTtBkduz9DTWiOp-nqM7UlfT4504113848
    [signature] => 87b477fcabf7d2ac...
    [url_length] => 858
)

============================================================

[13:59:08] INFO: ⏳ Executando cURL...
============================================================

[13:59:12] INFO: ✅ cURL executado
============================================================

[13:59:12] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.79,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1145990056,"buyer_username":"gracielchaves","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766839514,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.79,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20798","series_number":"5","access_key":"41251232111081000193550050000207981386930596","issue_date":1766839725,"total_value":9.3,"products_total_value":9.3,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-825bb-mfvhv0hqtibz3b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23699023856,"item_name":"Kit 3 Pacotes de Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas","item_sku":"KIT3REPORTA4500","main_item":false,"model_discounted_price":92.99,"model_id":0,"model_name":"","model_original_price":180,"model_quantity_purchased":1,"model_sku":"","order_item_id":23699023856,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":2.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251227FNPVW2H7","order_status":"COMPLETED","package_list":[{"package_number":"OFG220538713191573","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23699023856,"model_id":0,"model_quantity":1,"order_item_id":23699023856,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2300,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766839524,"payment_method":"Credit Card","pickup_done_time":1767026727,"recipient_address":{"name":"G******l","phone":"******53","town":"","district":"Rio das Velhas","city":"Santa Luzia","state":"Minas Gerais","region":"BR","zipcode":"33030420","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767063599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":91.99,"update_time":1768053531}]},"request_id":"e3e3e7f348090bec0dc25d6460076300:010002a6a01bd2d7:000000c4fb739dc0"}
    [curl_error] => 
)

============================================================

[13:59:12] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[13:59:12] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251227FNPVW2H7
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[13:59:12] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251227FNPVW2H7
)

============================================================

[13:59:12] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251227FNPVW2H7.json
============================================================

[13:59:12] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 3 Pacotes de Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas
    [item_sku] => KIT3REPORTA4500
    [model_sku] => 
    [sku_usado] => KIT3REPORTA4500
    [tem_dpx] => 
)

============================================================

[13:59:12] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251227FNPVW2H7
)

============================================================

[21:56:19] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 26010580F4MUFB
    [seller_id] => 411294579
    [user_id] => 198
    [status] => COMPLETED
)

============================================================

[21:56:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010580F4MUFB
    [shop_id] => 411294579
)

============================================================

[21:56:19] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1768082179
    [base_string] => 2009491/api/v2/order/get_order_detail1768082179eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEo3ZuKywYwi7TKvgc4AUAB.5CkqQSrGx4cjtxIY-1qho5ltkRqQajhZBTc7A7giD8Y411294579
    [signature] => 92d4f28ae0a84a27...
    [url_length] => 858
)

============================================================

[21:56:19] INFO: ⏳ Executando cURL...
============================================================

[21:56:20] INFO: ✅ cURL executado
============================================================

[21:56:20] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3480fb64d85974d370158d800"}
    [curl_error] => 
)

============================================================

[21:56:20] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:56:20] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:56:20] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 411294579
    [user_id] => 198
)

============================================================

[21:56:21] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[21:56:21] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[21:56:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010580F4MUFB
    [shop_id] => 411294579
)

============================================================

[21:56:21] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 411294579
    [timestamp] => 1768082181
    [base_string] => 2009491/api/v2/order/get_order_detail1768082181eyJhbGciOiJIUzI1NiJ9.CJPTehABGPO2j8QBIAEohZaLywYw55XDnQc4AUAB.qmiXU0wfkpCcMF_lWWLtktErdCBDTG3BSUuT24l6UVM411294579
    [signature] => 008b23f8120e36c3...
    [url_length] => 858
)

============================================================

[21:56:21] INFO: ⏳ Executando cURL...
============================================================

[21:56:23] INFO: ✅ cURL executado
============================================================

[21:56:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":766785825,"buyer_username":"eulaliacassotto","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1767576185,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81ztc-mj06f1eo07416b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58202632630,"item_name":"Kit 10 Adesivos Detox Pés Purificador Natural Sono Profundo Alívio Estresse E Fadiga ✨🦶","item_sku":"","main_item":false,"model_discounted_price":23.3,"model_id":0,"model_name":"","model_original_price":30,"model_quantity_purchased":1,"model_sku":"","order_item_id":58202632630,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":776916508803072}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"26010580F4MUFB","order_status":"COMPLETED","package_list":[{"package_number":"OFG221275386177393","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58202632630,"model_id":0,"model_quantity":1,"order_item_id":58202632630,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":500,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1767576274,"payment_method":"Pix","pickup_done_time":1767709581,"recipient_address":{"name":"E******o","phone":"******19","town":"","district":"Araçás","city":"Vila Velha","state":"Espírito Santo","region":"BR","zipcode":"29103130","full_address":"Ru******"},"region":"BR","return_request_due_date":1768679261,"reverse_shipping_fee":0,"ship_by_date":1767754799,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":22.6,"update_time":1768082159}]},"request_id":"e3e3e7f3480fb66e7bf40b123b719700:0100023a34e91217:0000008ba29c544b"}
    [curl_error] => 
)

============================================================

[21:56:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:56:23] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 26010580F4MUFB
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:56:23] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 26010580F4MUFB
)

============================================================

[21:56:23] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_26010580F4MUFB.json
============================================================

[21:56:23] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 10 Adesivos Detox Pés Purificador Natural Sono Profundo Alívio Estresse E Fadiga ✨🦶
    [item_sku] => 
    [model_sku] => 
    [sku_usado] => 
    [tem_dpx] => 
)

============================================================

[21:56:23] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 26010580F4MUFB
)

============================================================

[04:55:31] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 26010348908JPY
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[04:55:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010348908JPY
    [shop_id] => 533042255
)

============================================================

[04:55:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768107331
    [base_string] => 2009491/api/v2/order/get_order_detail1768107331eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 24d1c0332174098e...
    [url_length] => 858
)

============================================================

[04:55:31] INFO: ⏳ Executando cURL...
============================================================

[04:55:32] INFO: ✅ cURL executado
============================================================

[04:55:32] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3481591722950fb6f65f15600"}
    [curl_error] => 
)

============================================================

[04:55:32] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[04:55:32] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[04:55:32] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[04:55:33] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348159181a3301329d1b63700"}
)

============================================================

[04:55:33] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 26010348908JPY
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[04:55:33] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 26010348908JPY
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[10:27:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107EG83BYGQ
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[10:27:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107EG83BYGQ
    [shop_id] => 533042255
)

============================================================

[10:27:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768127261
    [base_string] => 2009491/api/v2/order/get_order_detail1768127261eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 9206fb1d7a52646d...
    [url_length] => 858
)

============================================================

[10:27:41] INFO: ⏳ Executando cURL...
============================================================

[10:27:42] INFO: ✅ cURL executado
============================================================

[10:27:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3481a35603bc49efeaba81a00"}
    [curl_error] => 
)

============================================================

[10:27:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[10:27:42] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[10:27:42] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[10:27:43] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3481a3570c1d2f48bbb866a00"}
)

============================================================

[10:27:43] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107EG83BYGQ
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[10:27:43] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107EG83BYGQ
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[17:02:29] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251230NBN8E8DK
    [seller_id] => 1163344335
    [user_id] => 1178
    [status] => COMPLETED
)

============================================================

[17:02:29] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251230NBN8E8DK
    [shop_id] => 1163344335
)

============================================================

[17:02:29] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1163344335
    [timestamp] => 1768150949
    [base_string] => 2009491/api/v2/order/get_order_detail1768150949eyJhbGciOiJIUzI1NiJ9.CJPTehABGM_z3KoEIAEo3ZCPywYwnoKm_AY4AUAB.RqQpR59Mll3iKse549er5E3WhMw5IVjyp6nNcKNcbOY1163344335
    [signature] => ce595635566276c4...
    [url_length] => 859
)

============================================================

[17:02:29] INFO: ⏳ Executando cURL...
============================================================

[17:02:31] INFO: ✅ cURL executado
============================================================

[17:02:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":17.56,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":785598260,"buyer_username":"autonieljoaquimdeoliveir","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767034879,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":17.56,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2512","series_number":"1","access_key":"31251248093937000185550010000025121744229838","issue_date":1767035194,"total_value":21.5,"products_total_value":21.5,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-mapxe3kzdd3jd7_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":18198245594,"item_name":"Capa Protetora Para Suporte Celular Sol Proteção Contra Claridade do Sol Uber 99 Indriver Ifood","item_sku":"","main_item":false,"model_discounted_price":21.5,"model_id":0,"model_name":"","model_original_price":39.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":18198245594,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":771101123067904,"promotion_list":[{"promotion_type":"platform_sale","promotion_id":771101123067904}],"promotion_type":"product_promotion_BR","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251230NBN8E8DK","order_status":"COMPLETED","package_list":[{"package_number":"OFG220734079136045","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":18198245594,"model_id":0,"model_quantity":1,"order_item_id":18198245594,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":300,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767034904,"payment_method":"SParcelado","pickup_done_time":1767128984,"recipient_address":{"name":"A******a","phone":"******21","town":"","district":"Zabelê","city":"Vitória da Conquista","state":"Bahia","region":"BR","zipcode":"45078312","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767149999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":21.5,"update_time":1768150950}]},"request_id":"e3e3e7f3481fb9551059a34e8e492700:0100020c8d5ea0aa:000000e4cf79ef35"}
    [curl_error] => 
)

============================================================

[17:02:31] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[17:02:31] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251230NBN8E8DK
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[17:02:31] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251230NBN8E8DK
)

============================================================

[17:02:31] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251230NBN8E8DK.json
============================================================

[17:02:31] INFO: 📦 Item #0
Array
(
    [item_name] => Capa Protetora Para Suporte Celular Sol Proteção Contra Claridade do Sol Uber 99 Indriver Ifood
    [item_sku] => 
    [model_sku] => 
    [sku_usado] => 
    [tem_dpx] => 
)

============================================================

[17:02:31] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251230NBN8E8DK
)

============================================================

[15:59:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101T8X45586
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[15:59:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101T8X45586
    [shop_id] => 504113848
)

============================================================

[15:59:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768233581
    [base_string] => 2009491/api/v2/order/get_order_detail1768233581eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo0NSTywYw-OS73QY4AUAB.RW2z_GKcL43aeBxecxCrBqhpovapOvIj4ph0fZzWy4U504113848
    [signature] => 0be5c43efc10705f...
    [url_length] => 858
)

============================================================

[15:59:41] INFO: ⏳ Executando cURL...
============================================================

[15:59:43] INFO: ✅ cURL executado
============================================================

[15:59:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":547154892,"buyer_username":"marianapostelhonecentamo","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767203754,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21305","series_number":"5","access_key":"41251232111081000193550050000213051863050843","issue_date":1767204485,"total_value":1.6,"products_total_value":1.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-81zto-miq2l7l2q682c3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":15.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260101T8X45586","order_status":"COMPLETED","package_list":[{"package_number":"OFG220902954138046","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767203768,"payment_method":"SParcelado","pickup_done_time":1767362075,"recipient_address":{"name":"M******i","phone":"******43","town":"","district":"Jardim Esplanada","city":"Marília","state":"São Paulo","region":"BR","zipcode":"17521182","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767409199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.99,"update_time":1768233559}]},"request_id":"e3e3e7f34832f691d97975ed8961a500:0100026f64e230cf:000000f8f595d70e"}
    [curl_error] => 
)

============================================================

[15:59:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[15:59:43] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260101T8X45586
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[15:59:43] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260101T8X45586
)

============================================================

[15:59:43] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260101T8X45586.json
============================================================

[15:59:43] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[15:59:43] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260101T8X45586
)

============================================================

[17:56:20] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260106BWQ1PE4K
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[17:56:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260106BWQ1PE4K
    [shop_id] => 504113848
)

============================================================

[17:56:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768240580
    [base_string] => 2009491/api/v2/order/get_order_detail1768240580eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEonsWUywYwl9rC7Q84AUAB.4e3F0ShkkiGCaAgWHaT7ZRwsIH3R_JgMQA2nF23wHxY504113848
    [signature] => b079f30bfe9bae52...
    [url_length] => 858
)

============================================================

[17:56:20] INFO: ⏳ Executando cURL...
============================================================

[17:56:23] INFO: ✅ cURL executado
============================================================

[17:56:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":14.48,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":609969291,"buyer_username":"thaynarasantos801","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767710669,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":14.48,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"22599","series_number":"5","access_key":"41260132111081000193550050000225991541747231","issue_date":1767710919,"total_value":1.29,"products_total_value":1.29,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rffx-m9ahxxg2pjtzd2_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23198451439,"item_name":"KIT com 5 Caderno brochura Caligrafia Pedagogica 40  fls Jandainha 1/4","item_sku":"KIT5JANCALI","main_item":false,"model_discounted_price":12.93,"model_id":0,"model_name":"","model_original_price":19.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":23198451439,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.35,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260106BWQ1PE4K","order_status":"COMPLETED","package_list":[{"package_number":"OFG221409869173062","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23198451439,"model_id":0,"model_quantity":1,"order_item_id":23198451439,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":350,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767710681,"payment_method":"SParcelado","pickup_done_time":1767811872,"recipient_address":{"name":"T******m","phone":"******86","town":"","district":"Fernando Collor","city":"Nossa Senhora do Socorro","state":"Sergipe","region":"BR","zipcode":"49155236","full_address":"Ru******"},"region":"BR","return_request_due_date":1768840251,"reverse_shipping_fee":0,"ship_by_date":1767841199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":12.93,"update_time":1768240564}]},"request_id":"e3e3e7f3483497cff447460efa944c00:0100027a2c9ca03d:00000071b94c7310"}
    [curl_error] => 
)

============================================================

[17:56:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[17:56:23] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260106BWQ1PE4K
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[17:56:23] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260106BWQ1PE4K
)

============================================================

[17:56:23] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260106BWQ1PE4K.json
============================================================

[17:56:23] INFO: 📦 Item #0
Array
(
    [item_name] => KIT com 5 Caderno brochura Caligrafia Pedagogica 40  fls Jandainha 1/4
    [item_sku] => KIT5JANCALI
    [model_sku] => 
    [sku_usado] => KIT5JANCALI
    [tem_dpx] => 
)

============================================================

[17:56:23] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260106BWQ1PE4K
)

============================================================

[20:40:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260108EPWXX11W
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[20:40:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260108EPWXX11W
    [shop_id] => 504113848
)

============================================================

[20:40:58] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768250458
    [base_string] => 2009491/api/v2/order/get_order_detail1768250458eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoxLeVywYwoaKOrww4AUAB.M7V6pYbOxJYULhnIOideuxy46COFN4Y1Sy426tmxVWY504113848
    [signature] => 30598573533071ab...
    [url_length] => 858
)

============================================================

[20:40:58] INFO: ⏳ Executando cURL...
============================================================

[20:41:11] INFO: ✅ cURL executado
============================================================

[20:41:11] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":25.07,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":293973711,"buyer_username":"cleicecidade04","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767806464,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":25.07,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"22987","series_number":"5","access_key":"41260132111081000193550050000229871667431080","issue_date":1767806625,"total_value":3.5,"products_total_value":3.5,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7reqc-m8dj3eohy5ds82_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22098413428,"item_name":"Régua de Alumínio 30cm Jocar Office - Leonora. und.","item_sku":"RE30LEONORA","main_item":false,"model_discounted_price":12,"model_id":0,"model_name":"","model_original_price":17.2,"model_quantity_purchased":1,"model_sku":"","order_item_id":22098413428,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824j7-mf4kmuim366kac_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23694435597,"item_name":"Pincel Atômico Marcador Permanente  Com Ponta Chanfrada e Recarregável Compactor","item_sku":"MARCADOR PERMANETE COMPACTOR","main_item":false,"model_discounted_price":9.99,"model_id":209612391178,"model_name":"Preto","model_original_price":20,"model_quantity_purchased":1,"model_sku":"PERMAPRETO","order_item_id":23694435597,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.1,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-821g5-mh0vvkki40zy1c_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23694680133,"item_name":"Kit 1/6/12 Tinta Guache 250ml Escolha sua cor Piratininga","item_sku":"TINTAGUACHE250ML","main_item":false,"model_discounted_price":12.99,"model_id":169410989361,"model_name":"1 cor","model_original_price":12.99,"model_quantity_purchased":1,"model_sku":"guache250ml","order_item_id":23694680133,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":3.7,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260108EPWXX11W","order_status":"COMPLETED","package_list":[{"package_number":"OFG221505663190658","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23694680133,"model_id":169410989361,"model_quantity":1,"order_item_id":23694680133,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":22098413428,"model_id":0,"model_quantity":1,"order_item_id":22098413428,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":23694435597,"model_id":209612391178,"model_quantity":1,"order_item_id":23694435597,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":4300,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767806514,"payment_method":"Pix","pickup_done_time":1767897436,"recipient_address":{"name":"C******e","phone":"******34","town":"","district":"Urlândia","city":"Santa Maria","state":"Rio Grande do Sul","region":"BR","zipcode":"97070330","full_address":"R ******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767927599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":39.97,"update_time":1768250209}]},"request_id":"e3e3e7f34836e533196738e936fafb00:0100026de47b1d2d:00000013a2b745a8"}
    [curl_error] => 
)

============================================================

[20:41:11] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[20:41:11] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260108EPWXX11W
    [order_status] => COMPLETED
    [items_count] => 3
)

============================================================

[20:41:11] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 3
    [order_sn] => 260108EPWXX11W
)

============================================================

[20:41:11] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260108EPWXX11W.json
============================================================

[20:41:11] INFO: 📦 Item #0
Array
(
    [item_name] => Régua de Alumínio 30cm Jocar Office - Leonora. und.
    [item_sku] => RE30LEONORA
    [model_sku] => 
    [sku_usado] => RE30LEONORA
    [tem_dpx] => 
)

============================================================

[20:41:11] INFO: 📦 Item #1
Array
(
    [item_name] => Pincel Atômico Marcador Permanente  Com Ponta Chanfrada e Recarregável Compactor
    [item_sku] => MARCADOR PERMANETE COMPACTOR
    [model_sku] => PERMAPRETO
    [sku_usado] => MARCADOR PERMANETE COMPACTOR
    [tem_dpx] => 
)

============================================================

[20:41:11] INFO: 📦 Item #2
Array
(
    [item_name] => Kit 1/6/12 Tinta Guache 250ml Escolha sua cor Piratininga
    [item_sku] => TINTAGUACHE250ML
    [model_sku] => guache250ml
    [sku_usado] => TINTAGUACHE250ML
    [tem_dpx] => 
)

============================================================

[20:41:11] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260108EPWXX11W
)

============================================================

[22:17:14] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601021MTYMW4E
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:17:14] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601021MTYMW4E
    [shop_id] => 533042255
)

============================================================

[22:17:14] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768256234
    [base_string] => 2009491/api/v2/order/get_order_detail1768256234eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 3ce7887321308537...
    [url_length] => 858
)

============================================================

[22:17:14] INFO: ⏳ Executando cURL...
============================================================

[22:17:15] INFO: ✅ cURL executado
============================================================

[22:17:15] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348383cc7cf3a28028c138800"}
    [curl_error] => 
)

============================================================

[22:17:15] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:17:15] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:17:15] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:17:19] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348383d0636218bb7fb388100"}
)

============================================================

[22:17:19] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601021MTYMW4E
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:17:19] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601021MTYMW4E
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[22:22:24] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601021MTYMW4E
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:22:24] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601021MTYMW4E
    [shop_id] => 533042255
)

============================================================

[22:22:24] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768256544
    [base_string] => 2009491/api/v2/order/get_order_detail1768256544eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 1f71a88bda5497fa...
    [url_length] => 858
)

============================================================

[22:22:24] INFO: ⏳ Executando cURL...
============================================================

[22:22:25] INFO: ✅ cURL executado
============================================================

[22:22:25] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348384f45a097a026169b6600"}
    [curl_error] => 
)

============================================================

[22:22:25] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:22:25] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:22:25] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:22:26] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348384f54a0e9f8e2c0956300"}
)

============================================================

[22:22:26] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601021MTYMW4E
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:22:26] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601021MTYMW4E
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[22:47:44] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601059BT5M70R
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[22:47:44] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601059BT5M70R
    [shop_id] => 504113848
)

============================================================

[22:47:44] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768258064
    [base_string] => 2009491/api/v2/order/get_order_detail1768258064eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoxLeVywYwoaKOrww4AUAB.M7V6pYbOxJYULhnIOideuxy46COFN4Y1Sy426tmxVWY504113848
    [signature] => 5dbe3cea89f60643...
    [url_length] => 858
)

============================================================

[22:47:44] INFO: ⏳ Executando cURL...
============================================================

[22:47:45] INFO: ✅ cURL executado
============================================================

[22:47:45] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":837114070,"buyer_username":"fernandalopes262","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767622727,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"22282","series_number":"5","access_key":"41260132111081000193550050000222821768367227","issue_date":1767623028,"total_value":2.79,"products_total_value":2.79,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rd4i-m7xq1bjcmz2t4e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":20199672312,"item_name":"Cola Colorida 06 Cores 25g Piratininga","item_sku":"CCPI2100","main_item":false,"model_discounted_price":14,"model_id":0,"model_name":"","model_original_price":20,"model_quantity_purchased":1,"model_sku":"","order_item_id":20199672312,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.9,"wholesale":false},{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824ik-mfn3tu4yp6odd9_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22194536816,"item_name":"Kit 12 Glitters para Artesanato e Resina - Cores Variadas","item_sku":"KITGLITTER12CORES","main_item":false,"model_discounted_price":13.9,"model_id":0,"model_name":"","model_original_price":28,"model_quantity_purchased":1,"model_sku":"","order_item_id":22194536816,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601059BT5M70R","order_status":"COMPLETED","package_list":[{"package_number":"OFG221321927192112","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":20199672312,"model_id":0,"model_quantity":1,"order_item_id":20199672312,"promotion_group_id":0,"product_location_id":"BRZ"},{"item_id":22194536816,"model_id":0,"model_quantity":1,"order_item_id":22194536816,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767622773,"payment_method":"Pix","pickup_done_time":1767811809,"recipient_address":{"name":"F******)","phone":"******58","town":"","district":"Jardim Panorama","city":"Toledo","state":"Paraná","region":"BR","zipcode":"85911000","full_address":"Av******"},"region":"BR","return_request_due_date":1768595137,"reverse_shipping_fee":0,"ship_by_date":1767754799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":27.89,"update_time":1768258030}]},"request_id":"e3e3e7f34838a9d57103eca046f37f00:010002012315530c:00000073bea40dd0"}
    [curl_error] => 
)

============================================================

[22:47:45] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:47:45] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601059BT5M70R
    [order_status] => COMPLETED
    [items_count] => 2
)

============================================================

[22:47:45] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 2
    [order_sn] => 2601059BT5M70R
)

============================================================

[22:47:45] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601059BT5M70R.json
============================================================

[22:47:45] INFO: 📦 Item #0
Array
(
    [item_name] => Cola Colorida 06 Cores 25g Piratininga
    [item_sku] => CCPI2100
    [model_sku] => 
    [sku_usado] => CCPI2100
    [tem_dpx] => 
)

============================================================

[22:47:45] INFO: 📦 Item #1
Array
(
    [item_name] => Kit 12 Glitters para Artesanato e Resina - Cores Variadas
    [item_sku] => KITGLITTER12CORES
    [model_sku] => 
    [sku_usado] => KITGLITTER12CORES
    [tem_dpx] => 
)

============================================================

[22:47:45] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601059BT5M70R
)

============================================================

[02:55:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260109KB0WFJ6C
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[02:55:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260109KB0WFJ6C
    [shop_id] => 533042255
)

============================================================

[02:55:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768272939
    [base_string] => 2009491/api/v2/order/get_order_detail1768272939eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 55670679f73c2a2f...
    [url_length] => 858
)

============================================================

[02:55:39] INFO: ⏳ Executando cURL...
============================================================

[02:55:40] INFO: ✅ cURL executado
============================================================

[02:55:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3483c207eb069027ce2d5b100"}
    [curl_error] => 
)

============================================================

[02:55:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[02:55:40] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[02:55:40] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[02:55:42] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3483c209d5ac884c39d592f00"}
)

============================================================

[02:55:42] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260109KB0WFJ6C
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[02:55:42] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260109KB0WFJ6C
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[03:00:47] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260109KB0WFJ6C
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[03:00:47] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260109KB0WFJ6C
    [shop_id] => 533042255
)

============================================================

[03:00:47] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768273247
    [base_string] => 2009491/api/v2/order/get_order_detail1768273247eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 3156842169015d25...
    [url_length] => 858
)

============================================================

[03:00:47] INFO: ⏳ Executando cURL...
============================================================

[03:00:49] INFO: ✅ cURL executado
============================================================

[03:00:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3483c32dc9313172051feac00"}
    [curl_error] => 
)

============================================================

[03:00:49] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[03:00:49] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[03:00:49] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[03:00:49] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3483c32eb8a429dfe4b75b200"}
)

============================================================

[03:00:49] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260109KB0WFJ6C
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[03:00:49] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260109KB0WFJ6C
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[04:26:20] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251229MU019U2W
    [seller_id] => 1163344335
    [user_id] => 1178
    [status] => COMPLETED
)

============================================================

[04:26:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251229MU019U2W
    [shop_id] => 1163344335
)

============================================================

[04:26:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1163344335
    [timestamp] => 1768278380
    [base_string] => 2009491/api/v2/order/get_order_detail1768278380eyJhbGciOiJIUzI1NiJ9.CJPTehABGM_z3KoEIAEooJCXywYwqc_q7go4AUAB.IVTNCCW9Qq4TzjBAv_mr64FxhSoS3XPYhYens3SRP-s1163344335
    [signature] => 2797ed2bec02a8ad...
    [url_length] => 859
)

============================================================

[04:26:20] INFO: ⏳ Executando cURL...
============================================================

[04:26:21] INFO: ✅ cURL executado
============================================================

[04:26:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":657631848,"buyer_username":"edinartesilva","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767016988,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2509","series_number":"1","access_key":"31251248093937000185550010000025091744202616","issue_date":1767017292,"total_value":56.04,"products_total_value":44,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-7r98o-m3nidvfa8c39f2_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19099245605,"item_name":"Capa Protetora Universal para Colocar no Suporte Celular Sol Claridade Anti Roubo Uber 99 Indrive BlaBlaCar mobizapSP","item_sku":"SUP-CAPAPROT-01","main_item":false,"model_discounted_price":22,"model_id":0,"model_name":"","model_original_price":57.9,"model_quantity_purchased":2,"model_sku":"","order_item_id":19099245605,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":771101123067904,"promotion_list":[{"promotion_type":"platform_sale","promotion_id":771101123067904}],"promotion_type":"product_promotion_BR","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251229MU019U2W","order_status":"COMPLETED","package_list":[{"package_number":"OFG220716188111893","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19099245605,"model_id":0,"model_quantity":2,"order_item_id":19099245605,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767017147,"payment_method":"Pix","pickup_done_time":1767032931,"recipient_address":{"name":"E******a","phone":"******78","town":"","district":"Parque São Bento","city":"Sorocaba","state":"São Paulo","region":"BR","zipcode":"18072005","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767149999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":56.04,"update_time":1768278065}]},"request_id":"e3e3e7f3483d64c49f04192be5080800:01000297f0f0dfee:0000006be0f59cb2"}
    [curl_error] => 
)

============================================================

[04:26:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[04:26:21] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251229MU019U2W
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[04:26:21] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251229MU019U2W
)

============================================================

[04:26:21] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251229MU019U2W.json
============================================================

[04:26:21] INFO: 📦 Item #0
Array
(
    [item_name] => Capa Protetora Universal para Colocar no Suporte Celular Sol Claridade Anti Roubo Uber 99 Indrive BlaBlaCar mobizapSP
    [item_sku] => SUP-CAPAPROT-01
    [model_sku] => 
    [sku_usado] => SUP-CAPAPROT-01
    [tem_dpx] => 
)

============================================================

[04:26:21] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251229MU019U2W
)

============================================================

[14:59:54] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260109HJM8PX5C
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[14:59:54] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260109HJM8PX5C
    [shop_id] => 504113848
)

============================================================

[14:59:54] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768316394
    [base_string] => 2009491/api/v2/order/get_order_detail1768316394eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoxJCZywYwnsz23QI4AUAB.VuwVeW06yASpDMr06bb-QO73FG-GsxrU6G_6dvq2-ec504113848
    [signature] => 3aa49516d8526abb...
    [url_length] => 858
)

============================================================

[14:59:54] INFO: ⏳ Executando cURL...
============================================================

[14:59:55] INFO: ✅ cURL executado
============================================================

[14:59:55] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":601350322,"buyer_username":"regina_bueno_","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767904923,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"23316","series_number":"5","access_key":"41260132111081000193550050000233161101104848","issue_date":1767905026,"total_value":1.6,"products_total_value":1.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-81zto-miq2l7l2q682c3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":15.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260109HJM8PX5C","order_status":"COMPLETED","package_list":[{"package_number":"OFG221604123169680","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767904961,"payment_method":"Pix","pickup_done_time":1767976417,"recipient_address":{"name":"R******o","phone":"******80","town":"","district":"Mulde","city":"Indaial","state":"Santa Catarina","region":"BR","zipcode":"89084790","full_address":"Ru******"},"region":"BR","return_request_due_date":1768921110,"reverse_shipping_fee":0,"ship_by_date":1768013999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.99,"update_time":1768316357}]},"request_id":"e3e3e7f348463e988913405dd4b83e00:010002c0d0ae827f:00000025b017e0e0"}
    [curl_error] => 
)

============================================================

[14:59:55] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[14:59:55] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260109HJM8PX5C
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[14:59:55] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260109HJM8PX5C
)

============================================================

[14:59:55] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260109HJM8PX5C.json
============================================================

[14:59:55] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[14:59:55] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260109HJM8PX5C
)

============================================================

[18:24:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251231QKSS173R
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[18:24:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251231QKSS173R
    [shop_id] => 533042255
)

============================================================

[18:24:07] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768328647
    [base_string] => 2009491/api/v2/order/get_order_detail1768328647eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => fd5dbe1a43f1f882...
    [url_length] => 858
)

============================================================

[18:24:07] INFO: ⏳ Executando cURL...
============================================================

[18:24:08] INFO: ✅ cURL executado
============================================================

[18:24:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3484918eaef379f9ba4cd1e00"}
    [curl_error] => 
)

============================================================

[18:24:08] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[18:24:08] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[18:24:08] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[18:24:09] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3484918fa1fc7d2f26134f300"}
)

============================================================

[18:24:09] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251231QKSS173R
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[18:24:09] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251231QKSS173R
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:55:29] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101VHXGDC8V
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[19:55:29] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101VHXGDC8V
    [shop_id] => 533042255
)

============================================================

[19:55:29] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768334129
    [base_string] => 2009491/api/v2/order/get_order_detail1768334129eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 9d579baca3dd8b5b...
    [url_length] => 858
)

============================================================

[19:55:29] INFO: ⏳ Executando cURL...
============================================================

[19:55:30] INFO: ✅ cURL executado
============================================================

[19:55:30] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3484a5fae7c6abd3d480ab000"}
    [curl_error] => 
)

============================================================

[19:55:30] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:55:30] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:55:30] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[19:55:31] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3484a5fbdece74def1cae7500"}
)

============================================================

[19:55:31] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260101VHXGDC8V
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[19:55:31] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260101VHXGDC8V
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[20:00:42] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101VHXGDC8V
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:00:42] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101VHXGDC8V
    [shop_id] => 533042255
)

============================================================

[20:00:42] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768334442
    [base_string] => 2009491/api/v2/order/get_order_detail1768334442eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => db2d890d9c523a84...
    [url_length] => 858
)

============================================================

[20:00:42] INFO: ⏳ Executando cURL...
============================================================

[20:00:43] INFO: ✅ cURL executado
============================================================

[20:00:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3484a7257d2fecb182face700"}
    [curl_error] => 
)

============================================================

[20:00:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:00:43] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:00:43] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:00:44] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3484a72673bc0c09b72e8b600"}
)

============================================================

[20:00:44] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260101VHXGDC8V
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:00:44] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260101VHXGDC8V
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[23:59:18] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260108H2QCPXR9
    [seller_id] => 1261160733
    [user_id] => 54
    [status] => COMPLETED
)

============================================================

[23:59:18] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260108H2QCPXR9
    [shop_id] => 1261160733
)

============================================================

[23:59:18] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1261160733
    [timestamp] => 1768348758
    [base_string] => 2009491/api/v2/order/get_order_detail1768348758eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ2Sr9kEIAEojNeaywYw-6LUsgQ4AUAB.uSRvOu-IP3BDOMVrkK6NovOCqsWjuHL2vENrktM-iAE1261160733
    [signature] => 54d7fe1f5894f07b...
    [url_length] => 859
)

============================================================

[23:59:18] INFO: ⏳ Executando cURL...
============================================================

[23:59:19] INFO: ✅ cURL executado
============================================================

[23:59:19] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":18.11,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":252632008,"buyer_username":"esmeraldaoliveira","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1767887848,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":18.11,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7rdy1-mbx2h0joakfp1c_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22798698565,"item_name":"Descascador De Alimentos Com Reservatório Para Frutas Legume","item_sku":"GH-9079842","main_item":false,"model_discounted_price":26,"model_id":0,"model_name":"","model_original_price":26,"model_quantity_purchased":1,"model_sku":"","order_item_id":22798698565,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260108H2QCPXR9","order_status":"COMPLETED","package_list":[{"package_number":"OFG221587048149149","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22798698565,"model_id":0,"model_quantity":1,"order_item_id":22798698565,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1767887924,"payment_method":"Pix","pickup_done_time":1767989414,"recipient_address":{"name":"E******o","phone":"******09","town":"","district":"Farolândia","city":"Aracaju","state":"Sergipe","region":"BR","zipcode":"49030210","full_address":"Av******"},"region":"BR","return_request_due_date":1768926231,"reverse_shipping_fee":0,"ship_by_date":1768013999,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":26,"update_time":1768348743}]},"request_id":"e3e3e7f3484dc79fd0ef76105ad08000:01000243125dd658:00000068ea4a4d4c"}
    [curl_error] => 
)

============================================================

[23:59:19] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[23:59:19] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260108H2QCPXR9
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[23:59:19] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260108H2QCPXR9
)

============================================================

[23:59:19] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260108H2QCPXR9.json
============================================================

[23:59:19] INFO: 📦 Item #0
Array
(
    [item_name] => Descascador De Alimentos Com Reservatório Para Frutas Legume
    [item_sku] => GH-9079842
    [model_sku] => 
    [sku_usado] => GH-9079842
    [tem_dpx] => 
)

============================================================

[23:59:19] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260108H2QCPXR9
)

============================================================

[10:11:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101UN2MHBQM
    [seller_id] => 477259463
    [user_id] => 71
    [status] => COMPLETED
)

============================================================

[10:11:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101UN2MHBQM
    [shop_id] => 477259463
)

============================================================

[10:11:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 477259463
    [timestamp] => 1768385499
    [base_string] => 2009491/api/v2/order/get_order_detail1768385499eyJhbGciOiJIUzI1NiJ9.CJPTehABGMfNyeMBIAEoq4mbywYwgMCWsgQ4AUAB.mjrye3OyfmnRTcDn79zHjo-antoibKLjEJHlLA3DZbo477259463
    [signature] => 9e3206087140106e...
    [url_length] => 858
)

============================================================

[10:11:39] INFO: ⏳ Executando cURL...
============================================================

[10:11:40] INFO: ✅ cURL executado
============================================================

[10:11:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34856559011943b39d7111300"}
    [curl_error] => 
)

============================================================

[10:11:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[10:11:40] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[10:11:40] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 477259463
    [user_id] => 71
)

============================================================

[10:11:41] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[10:11:41] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[10:11:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101UN2MHBQM
    [shop_id] => 477259463
)

============================================================

[10:11:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 477259463
    [timestamp] => 1768385501
    [base_string] => 2009491/api/v2/order/get_order_detail1768385501eyJhbGciOiJIUzI1NiJ9.CJPTehABGMfNyeMBIAEo3dedywYw7pu_7QM4AUAB.f3oYc_2sMtZYMNVZnYF9Kn1VA6VU_i1bvac8gfPtw7I477259463
    [signature] => d01d45aac7b92ddb...
    [url_length] => 858
)

============================================================

[10:11:41] INFO: ⏳ Executando cURL...
============================================================

[10:11:42] INFO: ✅ cURL executado
============================================================

[10:11:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":23.87,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":348657240,"buyer_username":"marcospereia.ofc","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767251150,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":23.87,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"132","series_number":"1","access_key":"33260143119555000160550010000001321287641348","issue_date":1767313485,"total_value":45.64,"products_total_value":45.64,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-7req1-m8y4ouoysm3r7e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23993912512,"item_name":"Mini Vibrador Batom Massageador USB Recarregável Silencioso","item_sku":"DPX6060611054","main_item":false,"model_discounted_price":42.5,"model_id":0,"model_name":"","model_original_price":42.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":23993912512,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260101UN2MHBQM","order_status":"COMPLETED","package_list":[{"package_number":"OFG220950351115186","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23993912512,"model_id":0,"model_quantity":1,"order_item_id":23993912512,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767251247,"payment_method":"Pix","pickup_done_time":1767383744,"recipient_address":{"name":"M******s","phone":"******50","town":"","district":"Centro","city":"São José do Belmonte","state":"Pernambuco","region":"BR","zipcode":"56950000","full_address":"Ru******"},"region":"BR","return_request_due_date":1768424504,"reverse_shipping_fee":0,"ship_by_date":1767409199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":45.64,"update_time":1768385473}]},"request_id":"e3e3e7f3485655b075bbea4b61326300:0100024636ecbb1e:0000006e938860bd"}
    [curl_error] => 
)

============================================================

[10:11:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[10:11:42] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260101UN2MHBQM
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[10:11:42] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260101UN2MHBQM
)

============================================================

[10:11:42] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260101UN2MHBQM.json
============================================================

[10:11:42] INFO: 📦 Item #0
Array
(
    [item_name] => Mini Vibrador Batom Massageador USB Recarregável Silencioso
    [item_sku] => DPX6060611054
    [model_sku] => 
    [sku_usado] => DPX6060611054
    [tem_dpx] => 1
)

============================================================

[10:11:42] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 260101UN2MHBQM
)

============================================================

[10:14:47] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260109H2XHJMCD
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[10:14:47] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260109H2XHJMCD
    [shop_id] => 504113848
)

============================================================

[10:14:47] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768385687
    [base_string] => 2009491/api/v2/order/get_order_detail1768385687eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo6eicywYwlKCL6wI4AUAB._QVD93qTfevhXmTikQoLSTEv2KK8EikZNaVXVcYFzgU504113848
    [signature] => 6536198edaa44f27...
    [url_length] => 858
)

============================================================

[10:14:47] INFO: ⏳ Executando cURL...
============================================================

[10:14:49] INFO: ✅ cURL executado
============================================================

[10:14:49] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":313664424,"buyer_username":"dalianamk","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767888088,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"23326","series_number":"5","access_key":"41260132111081000193550050000233261134622950","issue_date":1767908333,"total_value":1.39,"products_total_value":1.39,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824ik-mfn3tu4yp6odd9_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22194536816,"item_name":"Kit 12 Glitters para Artesanato e Resina - Cores Variadas","item_sku":"KITGLITTER12CORES","main_item":false,"model_discounted_price":13.9,"model_id":0,"model_name":"","model_original_price":28,"model_quantity_purchased":1,"model_sku":"","order_item_id":22194536816,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260109H2XHJMCD","order_status":"COMPLETED","package_list":[{"package_number":"OFG221587288151896","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22194536816,"model_id":0,"model_quantity":1,"order_item_id":22194536816,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":100,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767908336,"payment_method":"Pix","pickup_done_time":1767976527,"recipient_address":{"name":"D******n","phone":"******77","town":"","district":"Centro","city":"Atalanta","state":"Santa Catarina","region":"BR","zipcode":"88410000","full_address":"Do******"},"region":"BR","return_request_due_date":1768940919,"reverse_shipping_fee":0,"ship_by_date":1768013999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":13.9,"update_time":1768385651}]},"request_id":"e3e3e7f3485660ccebab61a533348300:010002b06e16dddd:000000fe0045f606"}
    [curl_error] => 
)

============================================================

[10:14:49] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[10:14:49] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260109H2XHJMCD
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[10:14:49] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260109H2XHJMCD
)

============================================================

[10:14:49] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260109H2XHJMCD.json
============================================================

[10:14:49] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 12 Glitters para Artesanato e Resina - Cores Variadas
    [item_sku] => KITGLITTER12CORES
    [model_sku] => 
    [sku_usado] => KITGLITTER12CORES
    [tem_dpx] => 
)

============================================================

[10:14:49] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260109H2XHJMCD
)

============================================================

[13:05:28] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260109KH6UTXXA
    [seller_id] => 861037471
    [user_id] => 41
    [status] => COMPLETED
)

============================================================

[13:05:28] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260109KH6UTXXA
    [shop_id] => 861037471
)

============================================================

[13:05:28] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 861037471
    [timestamp] => 1768395928
    [base_string] => 2009491/api/v2/order/get_order_detail1768395928eyJhbGciOiJIUzI1NiJ9.CJPTehABGJ_HyZoDIAEok-edywYw3rjxvQ84AUAB.2IKzEtBFs_GZZe8M4PKOZBqegEiCxUuwVfn2QDwPkkY861037471
    [signature] => 48ddd779aaad1568...
    [url_length] => 858
)

============================================================

[13:05:28] INFO: ⏳ Executando cURL...
============================================================

[13:05:30] INFO: ✅ cURL executado
============================================================

[13:05:30] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":11.59,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":855556398,"buyer_username":"raquelandrade387","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767972119,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":11.59,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"2642","series_number":"3","access_key":"33260154881101000148550030000026421391817307","issue_date":1767972546,"total_value":17.68,"products_total_value":17.68,"tax_code":"6102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-824i3-mf7f180jpr0t81_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798937673,"item_name":"Molde de Resina em Formato de Coração para Exposição, Molde de Silicone em Formato de Coração","item_sku":"GH-9838783","main_item":false,"model_discounted_price":17.68,"model_id":0,"model_name":"","model_original_price":18.61,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798937673,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":811737956139008}],"promotion_type":"","weight":0.564,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260109KH6UTXXA","order_status":"COMPLETED","package_list":[{"package_number":"OFG221671319118114","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798937673,"model_id":0,"model_quantity":1,"order_item_id":23798937673,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767972142,"payment_method":"SParcelado","pickup_done_time":1767990054,"recipient_address":{"name":"R******a","phone":"******71","town":"","district":"Vila São Sebastião","city":"Mogi das Cruzes","state":"São Paulo","region":"BR","zipcode":"08738200","full_address":"Ru******"},"region":"BR","return_request_due_date":1768998089,"reverse_shipping_fee":0,"ship_by_date":1768273199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":17.68,"update_time":1768395913}]},"request_id":"e3e3e7f34858c331e8ca2da71b192c00:010002c3726f84bb:00000045db582bb2"}
    [curl_error] => 
)

============================================================

[13:05:30] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[13:05:30] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260109KH6UTXXA
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[13:05:30] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260109KH6UTXXA
)

============================================================

[13:05:30] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260109KH6UTXXA.json
============================================================

[13:05:30] INFO: 📦 Item #0
Array
(
    [item_name] => Molde de Resina em Formato de Coração para Exposição, Molde de Silicone em Formato de Coração
    [item_sku] => GH-9838783
    [model_sku] => 
    [sku_usado] => GH-9838783
    [tem_dpx] => 
)

============================================================

[13:05:30] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260109KH6UTXXA
)

============================================================

[13:05:30] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260102W1WSNF4W
    [seller_id] => 349752502
    [user_id] => 1176
    [status] => COMPLETED
)

============================================================

[13:05:30] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260102W1WSNF4W
    [shop_id] => 349752502
)

============================================================

[13:05:30] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 349752502
    [timestamp] => 1768395930
    [base_string] => 2009491/api/v2/order/get_order_detail1768395930eyJhbGciOiJIUzI1NiJ9.CJPTehABGLaZ46YBIAEoisCZywYwub2J5w04AUAB.cnuumMiaSBlKF0oAdV3ZyTBIsh-3CNgzwdWcEINgb-A349752502
    [signature] => 0d532ca72a7d0e51...
    [url_length] => 858
)

============================================================

[13:05:30] INFO: ⏳ Executando cURL...
============================================================

[13:05:31] INFO: ✅ cURL executado
============================================================

[13:05:31] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34858c34accaa105d4d867600"}
    [curl_error] => 
)

============================================================

[13:05:31] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[13:05:31] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[13:05:31] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 349752502
    [user_id] => 1176
)

============================================================

[13:05:32] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[13:05:32] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[13:05:32] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260102W1WSNF4W
    [shop_id] => 349752502
)

============================================================

[13:05:32] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 349752502
    [timestamp] => 1768395932
    [base_string] => 2009491/api/v2/order/get_order_detail1768395932eyJhbGciOiJIUzI1NiJ9.CJPTehABGLaZ46YBIAEonKmeywYw0sux5gM4AUAB.hW4jUkp8KueXQNs_Jg9cT4EJhCwhs88SoRi4TGfW2RQ349752502
    [signature] => fbcbe216033c69f9...
    [url_length] => 858
)

============================================================

[13:05:32] INFO: ⏳ Executando cURL...
============================================================

[13:05:34] INFO: ✅ cURL executado
============================================================

[13:05:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":7.18,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":4479286097,"buyer_username":"r0382sxsp9","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767299306,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":7.18,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"8","series_number":"1","access_key":"35260152676474000151550010000000081503024604","issue_date":1767624201,"total_value":7,"products_total_value":7,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-822yd-mi3supg7wphj17_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23394701045,"item_name":"MODELADOR DE CACHOS COM 2 XUXINHAS COR SORTIDA","item_sku":"BC-840-7IXYX","main_item":false,"model_discounted_price":7,"model_id":0,"model_name":"","model_original_price":7,"model_quantity_purchased":1,"model_sku":"","order_item_id":23394701045,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260102W1WSNF4W","order_status":"COMPLETED","package_list":[{"package_number":"OFG220998506138483","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23394701045,"model_id":0,"model_quantity":1,"order_item_id":23394701045,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":500,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767299390,"payment_method":"Pix","pickup_done_time":1767654959,"recipient_address":{"name":"N******a","phone":"******38","town":"","district":"Jardim Lindomar","city":"Jandira","state":"São Paulo","region":"BR","zipcode":"06602295","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767409199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":7,"update_time":1768395912}]},"request_id":"e3e3e7f34858c36b14200e2f815e8a00:0100027629885284:000000f23ca21d4a"}
    [curl_error] => 
)

============================================================

[13:05:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[13:05:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260102W1WSNF4W
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[13:05:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260102W1WSNF4W
)

============================================================

[13:05:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260102W1WSNF4W.json
============================================================

[13:05:34] INFO: 📦 Item #0
Array
(
    [item_name] => MODELADOR DE CACHOS COM 2 XUXINHAS COR SORTIDA
    [item_sku] => BC-840-7IXYX
    [model_sku] => 
    [sku_usado] => BC-840-7IXYX
    [tem_dpx] => 
)

============================================================

[13:05:34] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260102W1WSNF4W
)

============================================================

[13:20:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251228J0TNE863
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[13:20:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251228J0TNE863
    [shop_id] => 504113848
)

============================================================

[13:20:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768396839
    [base_string] => 2009491/api/v2/order/get_order_detail1768396839eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEowNqdywYwxpqX-QM4AUAB.1so79fUM99HadP7xh4dx-APh8orZLSiW_9sqhc5T6ko504113848
    [signature] => 29dfbcdc3c57b4f5...
    [url_length] => 858
)

============================================================

[13:20:39] INFO: ⏳ Executando cURL...
============================================================

[13:20:40] INFO: ✅ cURL executado
============================================================

[13:20:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":17.89,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":543887375,"buyer_username":"vitormpv132","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1766920170,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":17.89,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"20883","series_number":"5","access_key":"41251232111081000193550050000208831810371059","issue_date":1766920417,"total_value":1.6,"products_total_value":1.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-81zto-miq2l7l2q682c3_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23798776467,"item_name":"PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL","item_sku":"pap.criat.24fls.120g.PB","main_item":false,"model_discounted_price":15.99,"model_id":0,"model_name":"","model_original_price":40,"model_quantity_purchased":1,"model_sku":"","order_item_id":23798776467,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.2,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"251228J0TNE863","order_status":"COMPLETED","package_list":[{"package_number":"OFG220619370137117","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23798776467,"model_id":0,"model_quantity":1,"order_item_id":23798776467,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":420,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1766920184,"payment_method":"Credit Card","pickup_done_time":1767026535,"recipient_address":{"name":"V******s","phone":"******13","town":"","district":"Santa Paula","city":"Goiatuba","state":"Goiás","region":"BR","zipcode":"75600000","full_address":"Ya******"},"region":"BR","return_request_due_date":1768399028,"reverse_shipping_fee":0,"ship_by_date":1767149999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.99,"update_time":1768396518}]},"request_id":"e3e3e7f34858f97dd2e7c12b23b23100:010002c64fdbd52b:000000b55d621680"}
    [curl_error] => 
)

============================================================

[13:20:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[13:20:40] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 251228J0TNE863
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[13:20:40] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 251228J0TNE863
)

============================================================

[13:20:40] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_251228J0TNE863.json
============================================================

[13:20:40] INFO: 📦 Item #0
Array
(
    [item_name] => PAPEL CRIATIVO A4 120G  8 CORES 24 FOLHAS PAGINA BRASIL
    [item_sku] => pap.criat.24fls.120g.PB
    [model_sku] => 
    [sku_usado] => pap.criat.24fls.120g.PB
    [tem_dpx] => 
)

============================================================

[13:20:40] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 251228J0TNE863
)

============================================================

[22:29:19] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CW4W3NXT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:29:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CW4W3NXT
    [shop_id] => 533042255
)

============================================================

[22:29:19] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768429759
    [base_string] => 2009491/api/v2/order/get_order_detail1768429759eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f6c718ebab593716...
    [url_length] => 858
)

============================================================

[22:29:19] INFO: ⏳ Executando cURL...
============================================================

[22:29:21] INFO: ✅ cURL executado
============================================================

[22:29:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34860a3b974107ca536bb4100"}
    [curl_error] => 
)

============================================================

[22:29:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:29:21] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:29:21] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:29:22] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34860a3c8b8e8c0367eb3b600"}
)

============================================================

[22:29:22] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107CW4W3NXT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:29:22] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107CW4W3NXT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[22:34:27] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CW4W3NXT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:34:27] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CW4W3NXT
    [shop_id] => 533042255
)

============================================================

[22:34:27] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768430067
    [base_string] => 2009491/api/v2/order/get_order_detail1768430067eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => f266c085f54fb8ac...
    [url_length] => 858
)

============================================================

[22:34:27] INFO: ⏳ Executando cURL...
============================================================

[22:34:28] INFO: ✅ cURL executado
============================================================

[22:34:28] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34860b607ea9bf909b0972100"}
    [curl_error] => 
)

============================================================

[22:34:28] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:34:28] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:34:28] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:34:29] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34860b6173ad0a0ff2d287b00"}
)

============================================================

[22:34:29] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107CW4W3NXT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:34:29] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107CW4W3NXT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[04:08:19] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260110P14NW324
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[04:08:19] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260110P14NW324
    [shop_id] => 504113848
)

============================================================

[04:08:19] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768450099
    [base_string] => 2009491/api/v2/order/get_order_detail1768450099eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo3aChywYw9bGOqwg4AUAB.X-F1gXiP4qbRibfJRaNi7zLszOvjrukNFq7VbMgMggg504113848
    [signature] => 37f1e8178f0c693b...
    [url_length] => 858
)

============================================================

[04:08:19] INFO: ⏳ Executando cURL...
============================================================

[04:08:23] INFO: ✅ cURL executado
============================================================

[04:08:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":673614219,"buyer_username":"natliagianelliibanez","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768057945,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"23755","series_number":"5","access_key":"41260132111081000193550050000237551151061735","issue_date":1768058327,"total_value":1.6,"products_total_value":1.6,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-82254-mhdx65rv3eobc5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58200900485,"item_name":"Kit Grampeador Metal + 1.000 Grampos 26/6 Galvanizados Escolar Escritório BRW","item_sku":"kitgramp11,5brw+grampo26/6 c/1000lyke","main_item":false,"model_discounted_price":15.99,"model_id":0,"model_name":"","model_original_price":26.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":58200900485,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260110P14NW324","order_status":"COMPLETED","package_list":[{"package_number":"OFG221757145154526","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":58200900485,"model_id":0,"model_quantity":1,"order_item_id":58200900485,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768058008,"payment_method":"Pix","pickup_done_time":1768235996,"recipient_address":{"name":"N******z","phone":"******50","town":"","district":"Santa Luzia","city":"Tubarão","state":"Santa Catarina","region":"BR","zipcode":"88706100","full_address":"Es******"},"region":"BR","return_request_due_date":1769037071,"reverse_shipping_fee":0,"ship_by_date":1768273199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":15.99,"update_time":1768450082}]},"request_id":"e3e3e7f34865602e4a0134a98de66700:0100028d7aea7ed3:0000001c0add0c61"}
    [curl_error] => 
)

============================================================

[04:08:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[04:08:23] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260110P14NW324
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[04:08:23] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260110P14NW324
)

============================================================

[04:08:23] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260110P14NW324.json
============================================================

[04:08:23] INFO: 📦 Item #0
Array
(
    [item_name] => Kit Grampeador Metal + 1.000 Grampos 26/6 Galvanizados Escolar Escritório BRW
    [item_sku] => kitgramp11,5brw+grampo26/6 c/1000lyke
    [model_sku] => 
    [sku_usado] => kitgramp11,5brw+grampo26/6 c/1000lyke
    [tem_dpx] => 
)

============================================================

[04:08:23] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260110P14NW324
)

============================================================

[14:02:23] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601057N80W6UX
    [seller_id] => 1391618769
    [user_id] => 112
    [status] => COMPLETED
)

============================================================

[14:02:23] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601057N80W6UX
    [shop_id] => 1391618769
)

============================================================

[14:02:23] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1391618769
    [timestamp] => 1768485743
    [base_string] => 2009491/api/v2/order/get_order_detail1768485743eyJhbGciOiJIUzI1NiJ9.CJPTehABGNHVyZcFIAEone6iywYwoazI3wE4AUAB.2zOa_RljYTmTGTtx6KzVddv0M_MzoCTPmjlLZdu45Uw1391618769
    [signature] => 26b039d1300c0352...
    [url_length] => 859
)

============================================================

[14:02:23] INFO: ⏳ Executando cURL...
============================================================

[14:02:24] INFO: ✅ cURL executado
============================================================

[14:02:24] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3486dac94bc676d6a6d7fb500"}
    [curl_error] => 
)

============================================================

[14:02:24] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[14:02:24] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[14:02:24] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 1391618769
    [user_id] => 112
)

============================================================

[14:02:27] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[14:02:27] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[14:02:27] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601057N80W6UX
    [shop_id] => 1391618769
)

============================================================

[14:02:27] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1391618769
    [timestamp] => 1768485747
    [base_string] => 2009491/api/v2/order/get_order_detail1768485747eyJhbGciOiJIUzI1NiJ9.CJPTehABGNHVyZcFIAEo8-ajywYwyOmS6Ac4AUAB.t_jKcmw20GLwmR2vOtRPvBVTop6zrqu7lN-6UX2AGik1391618769
    [signature] => 66f9520388564f5f...
    [url_length] => 859
)

============================================================

[14:02:27] INFO: ⏳ Executando cURL...
============================================================

[14:02:29] INFO: ✅ cURL executado
============================================================

[14:02:29] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":761464741,"buyer_username":"juscemaridossantos","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767564136,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"1331","series_number":"1","access_key":"33260158021555000108550010000013311443584050","issue_date":1767567183,"total_value":79.69,"products_total_value":68.9,"tax_code":"6108"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-minf3iqilatf3e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998755648,"item_name":"Barra de Apoio Portátil para Idosos e Deficientes Segurança e Conforto no Banheiro 02 unidades","item_sku":"GH-9476780","main_item":false,"model_discounted_price":68.9,"model_id":0,"model_name":"","model_original_price":68.9,"model_quantity_purchased":1,"model_sku":"","order_item_id":23998755648,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.21,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601057N80W6UX","order_status":"COMPLETED","package_list":[{"package_number":"OFG221263337141019","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998755648,"model_id":0,"model_quantity":1,"order_item_id":23998755648,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":435,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767564431,"payment_method":"Pix","pickup_done_time":1767664742,"recipient_address":{"name":"J******s","phone":"******72","town":"","district":"La Salle","city":"Pato Branco","state":"Paraná","region":"BR","zipcode":"85505038","full_address":"R ******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767754799,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":79.69,"update_time":1768485724}]},"request_id":"e3e3e7f3486dacd27d9e209b9a482a00:010002d87c1ab5a7:0000007486a51d11"}
    [curl_error] => 
)

============================================================

[14:02:29] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[14:02:29] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601057N80W6UX
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[14:02:29] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601057N80W6UX
)

============================================================

[14:02:29] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601057N80W6UX.json
============================================================

[14:02:29] INFO: 📦 Item #0
Array
(
    [item_name] => Barra de Apoio Portátil para Idosos e Deficientes Segurança e Conforto no Banheiro 02 unidades
    [item_sku] => GH-9476780
    [model_sku] => 
    [sku_usado] => GH-9476780
    [tem_dpx] => 
)

============================================================

[14:02:29] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601057N80W6UX
)

============================================================

[17:51:58] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 26010324QKYGBT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[17:51:58] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010324QKYGBT
    [shop_id] => 533042255
)

============================================================

[17:51:58] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768499518
    [base_string] => 2009491/api/v2/order/get_order_detail1768499518eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => fa7c32cd54afafc2...
    [url_length] => 858
)

============================================================

[17:51:58] INFO: ⏳ Executando cURL...
============================================================

[17:51:59] INFO: ✅ cURL executado
============================================================

[17:51:59] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34870e1a986eb12a5d83dd200"}
    [curl_error] => 
)

============================================================

[17:51:59] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[17:51:59] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[17:51:59] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[17:52:00] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34870e1b8dfe4d1354b307f00"}
)

============================================================

[17:52:00] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 26010324QKYGBT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[17:52:00] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 26010324QKYGBT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[17:57:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 26010324QKYGBT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[17:57:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 26010324QKYGBT
    [shop_id] => 533042255
)

============================================================

[17:57:07] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768499827
    [base_string] => 2009491/api/v2/order/get_order_detail1768499827eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => a18aa33f3fe7f707...
    [url_length] => 858
)

============================================================

[17:57:07] INFO: ⏳ Executando cURL...
============================================================

[17:57:08] INFO: ✅ cURL executado
============================================================

[17:57:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34870f4066169d1314a525000"}
    [curl_error] => 
)

============================================================

[17:57:08] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[17:57:08] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[17:57:08] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[17:57:09] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34870f415e2a005b4bf0f3100"}
)

============================================================

[17:57:09] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 26010324QKYGBT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[17:57:09] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 26010324QKYGBT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:23:29] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601044Y9CK9K2
    [seller_id] => 1408943514
    [user_id] => 1110
    [status] => COMPLETED
)

============================================================

[19:23:29] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601044Y9CK9K2
    [shop_id] => 1408943514
)

============================================================

[19:23:29] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1408943514
    [timestamp] => 1768505009
    [base_string] => 2009491/api/v2/order/get_order_detail1768505009eyJhbGciOiJIUzI1NiJ9.CJPTehABGJqL658FIAEosJ-gywYwxYPfigs4AUAB.i65Ldip7L8pkQf-p4h6OQzR2m3QJVILsRmL_UTcGS3c1408943514
    [signature] => 691d78ab48c94c5c...
    [url_length] => 859
)

============================================================

[19:23:29] INFO: ⏳ Executando cURL...
============================================================

[19:23:30] INFO: ✅ cURL executado
============================================================

[19:23:30] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3487228ed74ab0b21b16bda00"}
    [curl_error] => 
)

============================================================

[19:23:30] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:23:30] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:23:30] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 1408943514
    [user_id] => 1110
)

============================================================

[19:23:31] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[19:23:31] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[19:23:31] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601044Y9CK9K2
    [shop_id] => 1408943514
)

============================================================

[19:23:31] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1408943514
    [timestamp] => 1768505011
    [base_string] => 2009491/api/v2/order/get_order_detail1768505011eyJhbGciOiJIUzI1NiJ9.CJPTehABGJqL658FIAEos_2kywYwgq6YpQU4AUAB.xOh6ghokFR5COLwp5qr7L0X62q6PveBprwQu72G8E9Y1408943514
    [signature] => ca3391e4a9e8b1ef...
    [url_length] => 859
)

============================================================

[19:23:31] INFO: ⏳ Executando cURL...
============================================================

[19:23:33] INFO: ✅ cURL executado
============================================================

[19:23:33] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":905973271,"buyer_username":"amandascachette861","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767471840,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"35260147638789000174550020000011501013265166","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7reol-m8oz7tusx7khaf_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22098427863,"item_name":"Kit Gel Alongamento de Unha Refil 18 White C/5 Real Love","item_sku":"87250","main_item":false,"model_discounted_price":59.99,"model_id":0,"model_name":"","model_original_price":59.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":22098427863,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601044Y9CK9K2","order_status":"COMPLETED","package_list":[{"package_number":"OFG221171041106448","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22098427863,"model_id":0,"model_quantity":1,"order_item_id":22098427863,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":100,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767471846,"payment_method":"Credit Card","pickup_done_time":1767631695,"recipient_address":{"name":"A******e","phone":"******40","town":"","district":"Lauro Bueno de Camargo","city":"Indaiatuba","state":"São Paulo","region":"BR","zipcode":"13348653","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767668399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":59.99,"update_time":1768504980}]},"request_id":"e3e3e7f34872290be4aca74e439b1200:01000299c3caf75d:00000063ae119e74"}
    [curl_error] => 
)

============================================================

[19:23:33] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[19:23:33] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601044Y9CK9K2
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[19:23:33] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601044Y9CK9K2
)

============================================================

[19:23:33] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601044Y9CK9K2.json
============================================================

[19:23:33] INFO: 📦 Item #0
Array
(
    [item_name] => Kit Gel Alongamento de Unha Refil 18 White C/5 Real Love
    [item_sku] => 87250
    [model_sku] => 
    [sku_usado] => 87250
    [tem_dpx] => 
)

============================================================

[19:23:33] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601044Y9CK9K2
)

============================================================

[21:58:26] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260106ABVXKDRX
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[21:58:26] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260106ABVXKDRX
    [shop_id] => 533042255
)

============================================================

[21:58:26] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768514306
    [base_string] => 2009491/api/v2/order/get_order_detail1768514306eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => ebc3238b38107488...
    [url_length] => 858
)

============================================================

[21:58:26] INFO: ⏳ Executando cURL...
============================================================

[21:58:27] INFO: ✅ cURL executado
============================================================

[21:58:27] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348745313103d738f27321b02"}
    [curl_error] => 
)

============================================================

[21:58:27] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:58:27] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:58:27] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[21:58:28] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348745323f95aecba86178c00"}
)

============================================================

[21:58:28] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260106ABVXKDRX
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[21:58:28] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260106ABVXKDRX
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[22:03:40] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260106ABVXKDRX
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[22:03:40] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260106ABVXKDRX
    [shop_id] => 533042255
)

============================================================

[22:03:40] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768514620
    [base_string] => 2009491/api/v2/order/get_order_detail1768514620eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => fbafa6362d470c6f...
    [url_length] => 858
)

============================================================

[22:03:40] INFO: ⏳ Executando cURL...
============================================================

[22:03:41] INFO: ✅ cURL executado
============================================================

[22:03:41] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3487465c48680a0cb1ffbf900"}
    [curl_error] => 
)

============================================================

[22:03:41] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[22:03:41] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[22:03:41] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[22:03:42] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3487465d3a9223e8f4a129300"}
)

============================================================

[22:03:42] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260106ABVXKDRX
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[22:03:42] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260106ABVXKDRX
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:02:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601032B6TTW12
    [seller_id] => 1545641600
    [user_id] => 84
    [status] => COMPLETED
)

============================================================

[15:02:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601032B6TTW12
    [shop_id] => 1545641600
)

============================================================

[15:02:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1545641600
    [timestamp] => 1768575759
    [base_string] => 2009491/api/v2/order/get_order_detail1768575759eyJhbGciOiJIUzI1NiJ9.CJPTehABGIC9guEFIAEoseSZywYwy4ORowc4AUAB.JkbgDVYQvZpipyp18DxswdM337pG9xWIRfp7UK9PT601545641600
    [signature] => db1d24f53e8955b9...
    [url_length] => 859
)

============================================================

[15:02:39] INFO: ⏳ Executando cURL...
============================================================

[15:02:40] INFO: ✅ cURL executado
============================================================

[15:02:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34882a1f858b34ca4e9b1a500"}
    [curl_error] => 
)

============================================================

[15:02:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:02:40] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:02:40] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 1545641600
    [user_id] => 84
)

============================================================

[15:02:41] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[15:02:41] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[15:02:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601032B6TTW12
    [shop_id] => 1545641600
)

============================================================

[15:02:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1545641600
    [timestamp] => 1768575761
    [base_string] => 2009491/api/v2/order/get_order_detail1768575761eyJhbGciOiJIUzI1NiJ9.CJPTehABGIC9guEFIAEokaapywYwodzhxAc4AUAB.czt8UXagu9DGYiJbpl5dYJEc76wv6VgELxUqDSaZYi81545641600
    [signature] => 9ca2e901e0c694ab...
    [url_length] => 859
)

============================================================

[15:02:41] INFO: ⏳ Executando cURL...
============================================================

[15:02:43] INFO: ✅ cURL executado
============================================================

[15:02:43] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":11.59,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":4783936380,"buyer_username":"hellenyao378","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1767381560,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":11.59,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134202-8226f-mhclcoiyap707b_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58200871469,"item_name":"Difusor De Secador Modelador De Cachos 2 Em 1 Magic Roller","item_sku":"GH-10197546","main_item":false,"model_discounted_price":27.5,"model_id":0,"model_name":"","model_original_price":27.5,"model_quantity_purchased":1,"model_sku":"","order_item_id":58200871469,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601032B6TTW12","order_status":"COMPLETED","package_list":[{"package_number":"OFG221080760128133","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58200871469,"model_id":0,"model_quantity":1,"order_item_id":58200871469,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1334,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1767381606,"payment_method":"Credit Card","pickup_done_time":1767664550,"recipient_address":{"name":"H******o","phone":"******93","town":"","district":"Vila Mariana","city":"São Paulo","state":"São Paulo","region":"BR","zipcode":"04015012","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767668399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":27.5,"update_time":1768575737}]},"request_id":"e3e3e7f34882a2199ef9ea82f4635e00:0100022fa5b726f2:000000e2cab00b5e"}
    [curl_error] => 
)

============================================================

[15:02:43] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[15:02:43] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601032B6TTW12
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[15:02:43] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601032B6TTW12
)

============================================================

[15:02:43] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601032B6TTW12.json
============================================================

[15:02:43] INFO: 📦 Item #0
Array
(
    [item_name] => Difusor De Secador Modelador De Cachos 2 Em 1 Magic Roller
    [item_sku] => GH-10197546
    [model_sku] => 
    [sku_usado] => GH-10197546
    [tem_dpx] => 
)

============================================================

[15:02:43] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601032B6TTW12
)

============================================================

[15:14:18] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260110MK0Q6NFY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[15:14:18] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260110MK0Q6NFY
    [shop_id] => 504113848
)

============================================================

[15:14:18] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768576458
    [base_string] => 2009491/api/v2/order/get_order_detail1768576458eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoh-moywYwhe2Rpw04AUAB.p7imyt_0KHK-PPRkRkr6mUoGaO2RVTYRvuVGQUc1S7s504113848
    [signature] => 64e161c8623c0cd9...
    [url_length] => 858
)

============================================================

[15:14:18] INFO: ⏳ Executando cURL...
============================================================

[15:14:21] INFO: ✅ cURL executado
============================================================

[15:14:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":474832473,"buyer_username":"karysubietacampos","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768008421,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"23706","series_number":"5","access_key":"41260132111081000193550050000237061380663828","issue_date":1768008523,"total_value":1.21,"products_total_value":1.21,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ravs-mamv5bkcvxx203_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998560376,"item_name":"Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report","item_sku":"SENINHA4COLO","main_item":false,"model_discounted_price":12.06,"model_id":199608168337,"model_name":"Report (Amarelo 100 fls)","model_original_price":18,"model_quantity_purchased":1,"model_sku":"A4AMARE","order_item_id":23998560376,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260110MK0Q6NFY","order_status":"COMPLETED","package_list":[{"package_number":"OFG221707620192685","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998560376,"model_id":199608168337,"model_quantity":1,"order_item_id":23998560376,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":750,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768008429,"payment_method":"Credit Card","pickup_done_time":1768236847,"recipient_address":{"name":"K******s","phone":"******67","town":"","district":"Ponte dos Leites","city":"Araruama","state":"Rio de Janeiro","region":"BR","zipcode":"28977010","full_address":"Ro******"},"region":"BR","return_request_due_date":1769179661,"reverse_shipping_fee":0,"ship_by_date":1768273199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.85,"update_time":1768576441}]},"request_id":"e3e3e7f34882cbb14d9aeb229577eb00:010002f0d8c2ce72:000000ec603facbf"}
    [curl_error] => 
)

============================================================

[15:14:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[15:14:21] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260110MK0Q6NFY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[15:14:21] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260110MK0Q6NFY
)

============================================================

[15:14:21] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260110MK0Q6NFY.json
============================================================

[15:14:21] INFO: 📦 Item #0
Array
(
    [item_name] => Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report
    [item_sku] => SENINHA4COLO
    [model_sku] => A4AMARE
    [sku_usado] => SENINHA4COLO
    [tem_dpx] => 
)

============================================================

[15:14:21] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260110MK0Q6NFY
)

============================================================

[15:45:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601140KDTH04U
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:45:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601140KDTH04U
    [shop_id] => 533042255
)

============================================================

[15:45:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768578338
    [base_string] => 2009491/api/v2/order/get_order_detail1768578338eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 8217a9e632c02977...
    [url_length] => 858
)

============================================================

[15:45:38] INFO: ⏳ Executando cURL...
============================================================

[15:45:39] INFO: ✅ cURL executado
============================================================

[15:45:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348833ba8b6f15105ac29f500"}
    [curl_error] => 
)

============================================================

[15:45:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:45:39] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:45:39] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:45:40] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348833bb9f560ca79fb6f3a00"}
)

============================================================

[15:45:40] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601140KDTH04U
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:45:40] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601140KDTH04U
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:11:59] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260112RVVRXFV1
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[16:11:59] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260112RVVRXFV1
    [shop_id] => 504113848
)

============================================================

[16:11:59] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768579919
    [base_string] => 2009491/api/v2/order/get_order_detail1768579919eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEoh-moywYwhe2Rpw04AUAB.p7imyt_0KHK-PPRkRkr6mUoGaO2RVTYRvuVGQUc1S7s504113848
    [signature] => bbda12efedde7d24...
    [url_length] => 858
)

============================================================

[16:11:59] INFO: ⏳ Executando cURL...
============================================================

[16:12:00] INFO: ✅ cURL executado
============================================================

[16:12:00] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":27.51,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":569782347,"buyer_username":"grasyvinih","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768156465,"currency":"BRL","days_to_ship":3,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":27.51,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"23996","series_number":"5","access_key":"41260132111081000193550050000239961654503537","issue_date":1768156730,"total_value":6.59,"products_total_value":6.59,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824hq-mf2ly5eigpoo5e_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998924332,"item_name":"Kit 2 Pacotes Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas","item_sku":"KIT2REPORTA4500","main_item":false,"model_discounted_price":65.85,"model_id":0,"model_name":"","model_original_price":65.85,"model_quantity_purchased":1,"model_sku":"","order_item_id":23998924332,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":4.6,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260112RVVRXFV1","order_status":"COMPLETED","package_list":[{"package_number":"OFG221855665109665","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998924332,"model_id":0,"model_quantity":1,"order_item_id":23998924332,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":4600,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768156509,"payment_method":"Pix","pickup_done_time":1768256461,"recipient_address":{"name":"G******a","phone":"******05","town":"","district":"São gabriel","city":"Cássia","state":"Minas Gerais","region":"BR","zipcode":"37980000","full_address":"Se******"},"region":"BR","return_request_due_date":1769180905,"reverse_shipping_fee":0,"ship_by_date":1768502110,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":73.36,"update_time":1768579887}]},"request_id":"e3e3e7f3488399e86d27e2b994edcd00:010002dbf2304d85:0000007da6c84c17"}
    [curl_error] => 
)

============================================================

[16:12:00] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[16:12:00] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260112RVVRXFV1
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[16:12:00] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260112RVVRXFV1
)

============================================================

[16:12:00] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260112RVVRXFV1.json
============================================================

[16:12:00] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 2 Pacotes Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas
    [item_sku] => KIT2REPORTA4500
    [model_sku] => 
    [sku_usado] => KIT2REPORTA4500
    [tem_dpx] => 
)

============================================================

[16:12:00] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260112RVVRXFV1
)

============================================================

[17:29:35] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CN32W3PM
    [seller_id] => 489110658
    [user_id] => 236
    [status] => COMPLETED
)

============================================================

[17:29:35] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CN32W3PM
    [shop_id] => 489110658
)

============================================================

[17:29:35] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 489110658
    [timestamp] => 1768584575
    [base_string] => 2009491/api/v2/order/get_order_detail1768584575eyJhbGciOiJIUzI1NiJ9.CJPTehABGIL5nOkBIAEoh7KpywYwjvH5lAE4AUAB.gKMtRsIrCuEQC3dpjFJtD8eD-bProNzeYr1BWoRGXgE489110658
    [signature] => ae2cc0019451ebc8...
    [url_length] => 858
)

============================================================

[17:29:35] INFO: ⏳ Executando cURL...
============================================================

[17:34:56] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CN32W3PM
    [seller_id] => 489110658
    [user_id] => 236
    [status] => COMPLETED
)

============================================================

[17:34:56] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CN32W3PM
    [shop_id] => 489110658
)

============================================================

[17:34:56] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 489110658
    [timestamp] => 1768584896
    [base_string] => 2009491/api/v2/order/get_order_detail1768584896eyJhbGciOiJIUzI1NiJ9.CJPTehABGIL5nOkBIAEoh7KpywYwjvH5lAE4AUAB.gKMtRsIrCuEQC3dpjFJtD8eD-bProNzeYr1BWoRGXgE489110658
    [signature] => 400967ef5d2d2127...
    [url_length] => 858
)

============================================================

[17:34:56] INFO: ⏳ Executando cURL...
============================================================

[17:34:58] INFO: ✅ cURL executado
============================================================

[17:34:58] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.11,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1281535929,"buyer_username":"06pf_d2k6m","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1767735769,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.11,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8225s-mhvboba77qblf4_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58251513602,"item_name":"Kit Brinquedo Mechas Coloridas Menina Pinte o Cabelo Infantil Criança Presente Natal Promoção Oferta","item_sku":"DPX1739881853","main_item":false,"model_discounted_price":58,"model_id":0,"model_name":"","model_original_price":78.05,"model_quantity_purchased":1,"model_sku":"","order_item_id":58251513602,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":803144288616448}],"promotion_type":"","weight":0.3,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260107CN32W3PM","order_status":"COMPLETED","package_list":[{"package_number":"OFG221434969158720","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":58251513602,"model_id":0,"model_quantity":1,"order_item_id":58251513602,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":917,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1767735776,"payment_method":"Credit Card","pickup_done_time":1767814962,"recipient_address":{"name":"T******a","phone":"******44","town":"","district":"Arujázinho I II e III","city":"Arujá","state":"São Paulo","region":"BR","zipcode":"07435480","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767841199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":56,"update_time":1768584552}]},"request_id":"e3e3e7f34884c29e5819a5aaf4071700:01000295e5720932:000000482636c871"}
    [curl_error] => 
)

============================================================

[17:34:58] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[17:34:58] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260107CN32W3PM
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[17:34:58] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260107CN32W3PM
)

============================================================

[17:34:58] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260107CN32W3PM.json
============================================================

[17:34:58] INFO: 📦 Item #0
Array
(
    [item_name] => Kit Brinquedo Mechas Coloridas Menina Pinte o Cabelo Infantil Criança Presente Natal Promoção Oferta
    [item_sku] => DPX1739881853
    [model_sku] => 
    [sku_usado] => DPX1739881853
    [tem_dpx] => 1
)

============================================================

[17:34:58] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 260107CN32W3PM
)

============================================================

[20:11:05] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260113UMTJ27R6
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:11:05] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260113UMTJ27R6
    [shop_id] => 533042255
)

============================================================

[20:11:05] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768594265
    [base_string] => 2009491/api/v2/order/get_order_detail1768594265eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => bb3e14a7d03e70c7...
    [url_length] => 858
)

============================================================

[20:11:05] INFO: ⏳ Executando cURL...
============================================================

[20:11:09] INFO: ✅ cURL executado
============================================================

[20:11:09] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34886f1326d5a1ed20fedd900"}
    [curl_error] => 
)

============================================================

[20:11:09] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:11:09] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:11:09] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:11:46] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f34886f365eda0112877ac6000"}
)

============================================================

[20:11:46] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260113UMTJ27R6
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:11:46] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260113UMTJ27R6
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[20:16:51] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260113UMTJ27R6
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:16:51] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260113UMTJ27R6
    [shop_id] => 533042255
)

============================================================

[20:16:51] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768594611
    [base_string] => 2009491/api/v2/order/get_order_detail1768594611eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => ffcfaf029481db35...
    [url_length] => 858
)

============================================================

[20:16:51] INFO: ⏳ Executando cURL...
============================================================

[20:16:52] INFO: ✅ cURL executado
============================================================

[20:16:52] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3488705a53c6703c7fbcbcc00"}
    [curl_error] => 
)

============================================================

[20:16:52] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:16:52] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:16:52] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:16:53] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3488705b4738dc2edc4f4ec00"}
)

============================================================

[20:16:53] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260113UMTJ27R6
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:16:53] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260113UMTJ27R6
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[21:17:27] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260113UA3FC03J
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[21:17:27] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260113UA3FC03J
    [shop_id] => 504113848
)

============================================================

[21:17:27] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768598247
    [base_string] => 2009491/api/v2/order/get_order_detail1768598247eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEop82qywYwq8_L5wc4AUAB.AV_mkuD8svVcxQ9xBKa_Wm9-vmcM9p82BImTfUKnEAY504113848
    [signature] => 7a871c6869ae9eec...
    [url_length] => 858
)

============================================================

[21:17:27] INFO: ⏳ Executando cURL...
============================================================

[21:17:28] INFO: ✅ cURL executado
============================================================

[21:17:28] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":8.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":623125539,"buyer_username":"bymfmakes","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768239367,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":8.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"24421","series_number":"5","access_key":"41260132111081000193550050000244211135093857","issue_date":1768239530,"total_value":1.39,"products_total_value":1.39,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-824ik-mfn3tu4yp6odd9_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22194536816,"item_name":"Kit 12 Glitters para Artesanato e Resina - Cores Variadas","item_sku":"KITGLITTER12CORES","main_item":false,"model_discounted_price":13.9,"model_id":0,"model_name":"","model_original_price":28,"model_quantity_purchased":1,"model_sku":"","order_item_id":22194536816,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260113UA3FC03J","order_status":"COMPLETED","package_list":[{"package_number":"OFG221938567154209","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22194536816,"model_id":0,"model_quantity":1,"order_item_id":22194536816,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":100,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768239377,"payment_method":"Credit Card","pickup_done_time":1768330103,"recipient_address":{"name":"M******a","phone":"******17","town":"","district":"Solar do Madeira","city":"Contagem","state":"Minas Gerais","region":"BR","zipcode":"32065010","full_address":"Ru******"},"region":"BR","return_request_due_date":1769199162,"reverse_shipping_fee":0,"ship_by_date":1768359599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":22.81,"update_time":1768598228}]},"request_id":"e3e3e7f34887de593068e8460fc4c100:0100024103018c94:000000110b45108e"}
    [curl_error] => 
)

============================================================

[21:17:28] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[21:17:28] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260113UA3FC03J
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[21:17:28] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260113UA3FC03J
)

============================================================

[21:17:28] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260113UA3FC03J.json
============================================================

[21:17:28] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 12 Glitters para Artesanato e Resina - Cores Variadas
    [item_sku] => KITGLITTER12CORES
    [model_sku] => 
    [sku_usado] => KITGLITTER12CORES
    [tem_dpx] => 
)

============================================================

[21:17:28] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260113UA3FC03J
)

============================================================

[22:44:28] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260112SERRSFM0
    [seller_id] => 213027273
    [user_id] => 94
    [status] => COMPLETED
)

============================================================

[22:44:28] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260112SERRSFM0
    [shop_id] => 213027273
)

============================================================

[22:44:28] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 213027273
    [timestamp] => 1768603468
    [base_string] => 2009491/api/v2/order/get_order_detail1768603468eyJhbGciOiJIUzI1NiJ9.CJPTehABGMmTymUgASjd2KrLBjCNhv3AATgBQAE.TC2p-RHzUeRmUxaaE8NIpJ-ahjG3ApA3-3ivvPCU8Qg213027273
    [signature] => 8c0ddfa04631d80d...
    [url_length] => 857
)

============================================================

[22:44:28] INFO: ⏳ Executando cURL...
============================================================

[22:44:29] INFO: ✅ cURL executado
============================================================

[22:44:29] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":787148457,"buyer_username":"rodrigosanches277","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1768175657,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mia7omec4e0x43_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22094751653,"item_name":"Kit 10 Adesivos Detox para os Pés – Renove Seu Corpo Enquanto Você Dorme! 🌿🦶💤","item_sku":"DPX4071589598","main_item":false,"model_discounted_price":18.9,"model_id":0,"model_name":"","model_original_price":25.43,"model_quantity_purchased":1,"model_sku":"","order_item_id":22094751653,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":809767958675456}],"promotion_type":"","weight":0.09,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260112SERRSFM0","order_status":"COMPLETED","package_list":[{"package_number":"OFG221874858138903","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22094751653,"model_id":0,"model_quantity":1,"order_item_id":22094751653,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":300,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1768175669,"payment_method":"Credit Card","pickup_done_time":1768234359,"recipient_address":{"name":"R******s","phone":"******40","town":"","district":"Conjunto HabitacionalSalvador","city":"Ituverava","state":"São Paulo","region":"BR","zipcode":"14507330","full_address":"Ru******"},"region":"BR","return_request_due_date":1769111793,"reverse_shipping_fee":0,"ship_by_date":1768359599,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":18.9,"update_time":1768603437}]},"request_id":"e3e3e7f3488915864ff736556bc95300:010002c5e09c4620:0000008a6e5b2d3d"}
    [curl_error] => 
)

============================================================

[22:44:29] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[22:44:29] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260112SERRSFM0
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[22:44:29] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260112SERRSFM0
)

============================================================

[22:44:29] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260112SERRSFM0.json
============================================================

[22:44:29] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 10 Adesivos Detox para os Pés – Renove Seu Corpo Enquanto Você Dorme! 🌿🦶💤
    [item_sku] => DPX4071589598
    [model_sku] => 
    [sku_usado] => DPX4071589598
    [tem_dpx] => 1
)

============================================================

[22:44:29] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 260112SERRSFM0
)

============================================================

[08:50:18] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601154XNMB6D9
    [seller_id] => 213027273
    [user_id] => 94
    [status] => COMPLETED
)

============================================================

[08:50:18] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601154XNMB6D9
    [shop_id] => 213027273
)

============================================================

[08:50:18] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 213027273
    [timestamp] => 1768639818
    [base_string] => 2009491/api/v2/order/get_order_detail1768639818eyJhbGciOiJIUzI1NiJ9.CJPTehABGMmTymUgASiz0avLBjDpioL0AjgBQAE.1fW6RMw38jQeASneVTwrwkgdxm12hX8pwBVP5lxCxkQ213027273
    [signature] => 2107a14c625cd509...
    [url_length] => 857
)

============================================================

[08:50:18] INFO: ⏳ Executando cURL...
============================================================

[08:50:20] INFO: ✅ cURL executado
============================================================

[08:50:20] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348918c3c48698b0ac948d100"}
    [curl_error] => 
)

============================================================

[08:50:20] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[08:50:20] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[08:50:20] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 213027273
    [user_id] => 94
)

============================================================

[08:50:21] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[08:50:21] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[08:50:21] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601154XNMB6D9
    [shop_id] => 213027273
)

============================================================

[08:50:21] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 213027273
    [timestamp] => 1768639821
    [base_string] => 2009491/api/v2/order/get_order_detail1768639821eyJhbGciOiJIUzI1NiJ9.CJPTehABGMmTymUgASjNmq3LBjCVx639CDgBQAE.2Wxx8pLwOmjTtPjNAqmWSVG5536AHNkf4eACwNK90PQ213027273
    [signature] => 14eea1f6cb0a114f...
    [url_length] => 857
)

============================================================

[08:50:21] INFO: ⏳ Executando cURL...
============================================================

[08:50:23] INFO: ✅ cURL executado
============================================================

[08:50:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":7.18,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":308441143,"buyer_username":"pathybispo0311","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1768471177,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":7.18,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/br-11134207-81z1k-mia7omec4e0x43_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22094751653,"item_name":"Kit 10 Adesivos Detox para os Pés – Renove Seu Corpo Enquanto Você Dorme! 🌿🦶💤","item_sku":"DPX4071589598","main_item":false,"model_discounted_price":18.9,"model_id":0,"model_name":"","model_original_price":25.43,"model_quantity_purchased":1,"model_sku":"","order_item_id":22094751653,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":809767958675456}],"promotion_type":"","weight":0.09,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601154XNMB6D9","order_status":"COMPLETED","package_list":[{"package_number":"OFG222170377177412","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":22094751653,"model_id":0,"model_quantity":1,"order_item_id":22094751653,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":300,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1768471254,"payment_method":"Pix","pickup_done_time":1768495603,"recipient_address":{"name":"P******o","phone":"******63","town":"","district":"Vila Paranaguá","city":"São Paulo","state":"São Paulo","region":"BR","zipcode":"03807030","full_address":"Ru******"},"region":"BR","return_request_due_date":1769203760,"reverse_shipping_fee":0,"ship_by_date":1768532399,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":18.9,"update_time":1768639805}]},"request_id":"e3e3e7f348918c5a98a5d3fde2c6ba00:0100024bfbb713c0:0000000ca32ff3ce"}
    [curl_error] => 
)

============================================================

[08:50:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[08:50:23] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601154XNMB6D9
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[08:50:23] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601154XNMB6D9
)

============================================================

[08:50:23] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601154XNMB6D9.json
============================================================

[08:50:23] INFO: 📦 Item #0
Array
(
    [item_name] => Kit 10 Adesivos Detox para os Pés – Renove Seu Corpo Enquanto Você Dorme! 🌿🦶💤
    [item_sku] => DPX4071589598
    [model_sku] => 
    [sku_usado] => DPX4071589598
    [tem_dpx] => 1
)

============================================================

[08:50:23] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 2601154XNMB6D9
)

============================================================

[15:25:43] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CJSCFFN6
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:25:43] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CJSCFFN6
    [shop_id] => 533042255
)

============================================================

[15:25:43] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768663543
    [base_string] => 2009491/api/v2/order/get_order_detail1768663543eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 73744a4290a60071...
    [url_length] => 858
)

============================================================

[15:25:43] INFO: ⏳ Executando cURL...
============================================================

[15:25:46] INFO: ✅ cURL executado
============================================================

[15:25:46] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34897126205fecbbaedd4ae00"}
    [curl_error] => 
)

============================================================

[15:25:46] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:25:46] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:25:46] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:25:47] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348971271630ff4fdeed4bf00"}
)

============================================================

[15:25:47] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107CJSCFFN6
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:25:47] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107CJSCFFN6
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:30:59] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CJSCFFN6
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:30:59] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CJSCFFN6
    [shop_id] => 533042255
)

============================================================

[15:30:59] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768663859
    [base_string] => 2009491/api/v2/order/get_order_detail1768663859eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 4f8f936f45729ab7...
    [url_length] => 858
)

============================================================

[15:30:59] INFO: ⏳ Executando cURL...
============================================================

[15:31:00] INFO: ✅ cURL executado
============================================================

[15:31:00] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f34897251a2c454938b3207e00"}
    [curl_error] => 
)

============================================================

[15:31:00] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:31:00] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:31:00] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:31:01] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348972529a78bef29c1924100"}
)

============================================================

[15:31:01] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107CJSCFFN6
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:31:01] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107CJSCFFN6
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[17:08:20] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260113UEFSA3E3
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[17:08:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260113UEFSA3E3
    [shop_id] => 504113848
)

============================================================

[17:08:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768669700
    [base_string] => 2009491/api/v2/order/get_order_detail1768669700eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo2qmuywYw0aDCqQE4AUAB.naCxHU2-HppPk-dwSn-hVHiQk6gkGEMMgsrAp9yX96U504113848
    [signature] => 82d68d1bf1b6606d...
    [url_length] => 858
)

============================================================

[17:08:20] INFO: ⏳ Executando cURL...
============================================================

[17:08:24] INFO: ✅ cURL executado
============================================================

[17:08:24] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":16.91,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":659477657,"buyer_username":"gabrielagomes214","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768244075,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":16.91,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"24463","series_number":"5","access_key":"41260132111081000193550050000244631329280172","issue_date":1768244319,"total_value":1.19,"products_total_value":1.19,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8259t-mfx617isijnwc7_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22694544115,"item_name":"Palito redondo de picolé e escolar com 100 unidades","item_sku":"kit100palitosorvete","main_item":false,"model_discounted_price":11.87,"model_id":0,"model_name":"","model_original_price":11.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":22694544115,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.12,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260113UEFSA3E3","order_status":"COMPLETED","package_list":[{"package_number":"OFG221943276114514","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22694544115,"model_id":0,"model_quantity":1,"order_item_id":22694544115,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":667,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768244142,"payment_method":"Pix","pickup_done_time":1768356247,"recipient_address":{"name":"G******a","phone":"******23","town":"","district":"Santos Dumont","city":"Maceió","state":"Alagoas","region":"BR","zipcode":"57075091","full_address":"Lo******"},"region":"BR","return_request_due_date":1769274059,"reverse_shipping_fee":0,"ship_by_date":1768359599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":11.87,"update_time":1768669378}]},"request_id":"e3e3e7f34898816a841f0be1b12c3a00:010002ce555d524e:0000000a6672349e"}
    [curl_error] => 
)

============================================================

[17:08:24] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[17:08:24] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260113UEFSA3E3
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[17:08:24] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260113UEFSA3E3
)

============================================================

[17:08:24] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260113UEFSA3E3.json
============================================================

[17:08:24] INFO: 📦 Item #0
Array
(
    [item_name] => Palito redondo de picolé e escolar com 100 unidades
    [item_sku] => kit100palitosorvete
    [model_sku] => 
    [sku_usado] => kit100palitosorvete
    [tem_dpx] => 
)

============================================================

[17:08:24] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260113UEFSA3E3
)

============================================================

[17:16:35] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260111PKY87NW2
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[17:16:35] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260111PKY87NW2
    [shop_id] => 533042255
)

============================================================

[17:16:35] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768670195
    [base_string] => 2009491/api/v2/order/get_order_detail1768670195eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 506e3c047ab040a6...
    [url_length] => 858
)

============================================================

[17:16:35] INFO: ⏳ Executando cURL...
============================================================

[17:16:36] INFO: ✅ cURL executado
============================================================

[17:16:36] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348989ec68479f7929e13eb00"}
    [curl_error] => 
)

============================================================

[17:16:36] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[17:16:36] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[17:16:36] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[17:16:37] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348989ed5c70502631dfdde00"}
)

============================================================

[17:16:37] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260111PKY87NW2
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[17:16:37] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260111PKY87NW2
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[20:43:49] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601141HJ0SJ8R
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[20:43:49] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601141HJ0SJ8R
    [shop_id] => 533042255
)

============================================================

[20:43:49] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768682629
    [base_string] => 2009491/api/v2/order/get_order_detail1768682629eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 9ea7f69314ba983d...
    [url_length] => 858
)

============================================================

[20:43:49] INFO: ⏳ Executando cURL...
============================================================

[20:43:57] INFO: ✅ cURL executado
============================================================

[20:43:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3489b844ceb8cbbe468636300"}
    [curl_error] => 
)

============================================================

[20:43:57] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[20:43:57] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[20:43:57] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[20:44:01] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3489b848b38a3e3393e993900"}
)

============================================================

[20:44:01] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601141HJ0SJ8R
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[20:44:01] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601141HJ0SJ8R
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[21:12:48] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260111R3KDYM40
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[21:12:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260111R3KDYM40
    [shop_id] => 533042255
)

============================================================

[21:12:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768684368
    [base_string] => 2009491/api/v2/order/get_order_detail1768684368eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 83379a2d065e16b7...
    [url_length] => 858
)

============================================================

[21:12:48] INFO: ⏳ Executando cURL...
============================================================

[21:12:50] INFO: ✅ cURL executado
============================================================

[21:12:50] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3489beb95dc1824d74f424400"}
    [curl_error] => 
)

============================================================

[21:12:50] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:12:50] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:12:50] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[21:12:51] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3489beba50d3a0b812ee93900"}
)

============================================================

[21:12:51] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260111R3KDYM40
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[21:12:51] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260111R3KDYM40
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[21:18:02] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260111R3KDYM40
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[21:18:02] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260111R3KDYM40
    [shop_id] => 533042255
)

============================================================

[21:18:02] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768684682
    [base_string] => 2009491/api/v2/order/get_order_detail1768684682eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => e416424bd3346e3e...
    [url_length] => 858
)

============================================================

[21:18:02] INFO: ⏳ Executando cURL...
============================================================

[21:18:03] INFO: ✅ cURL executado
============================================================

[21:18:03] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3489bfe3f42d7509e505aa300"}
    [curl_error] => 
)

============================================================

[21:18:03] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:18:03] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:18:03] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[21:18:04] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3489bfe5043a527948717b200"}
)

============================================================

[21:18:04] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260111R3KDYM40
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[21:18:04] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260111R3KDYM40
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[00:26:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107EH4K0F76
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[00:26:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107EH4K0F76
    [shop_id] => 533042255
)

============================================================

[00:26:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768696006
    [base_string] => 2009491/api/v2/order/get_order_detail1768696006eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 1a64ae85b531356c...
    [url_length] => 858
)

============================================================

[00:26:46] INFO: ⏳ Executando cURL...
============================================================

[00:26:47] INFO: ✅ cURL executado
============================================================

[00:26:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3489ea140a0d88714dad62900"}
    [curl_error] => 
)

============================================================

[00:26:47] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[00:26:47] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[00:26:47] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[00:26:48] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3489ea150179c1510a9ff6a00"}
)

============================================================

[00:26:48] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107EH4K0F76
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[00:26:48] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107EH4K0F76
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[00:31:54] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107EH4K0F76
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[00:31:54] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107EH4K0F76
    [shop_id] => 533042255
)

============================================================

[00:31:54] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768696314
    [base_string] => 2009491/api/v2/order/get_order_detail1768696314eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => b387227fb2dba24d...
    [url_length] => 858
)

============================================================

[00:31:54] INFO: ⏳ Executando cURL...
============================================================

[00:31:55] INFO: ✅ cURL executado
============================================================

[00:31:55] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f3489eb39089a6740384ceb800"}
    [curl_error] => 
)

============================================================

[00:31:55] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[00:31:55] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[00:31:55] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[00:31:56] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f3489eb3a14967fda77430ae00"}
)

============================================================

[00:31:56] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107EH4K0F76
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[00:31:56] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107EH4K0F76
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[12:56:56] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601057BJWCE5G
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[12:56:56] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601057BJWCE5G
    [shop_id] => 533042255
)

============================================================

[12:56:56] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768741016
    [base_string] => 2009491/api/v2/order/get_order_detail1768741016eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => a1208a03069fd58d...
    [url_length] => 858
)

============================================================

[12:56:56] INFO: ⏳ Executando cURL...
============================================================

[12:56:57] INFO: ✅ cURL executado
============================================================

[12:56:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348a91c0898c658079fa08200"}
    [curl_error] => 
)

============================================================

[12:56:57] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[12:56:57] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[12:56:57] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[12:56:58] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348a91c19bffc74650f49cf00"}
)

============================================================

[12:56:58] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601057BJWCE5G
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[12:56:58] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601057BJWCE5G
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[13:02:09] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601057BJWCE5G
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[13:02:09] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601057BJWCE5G
    [shop_id] => 533042255
)

============================================================

[13:02:09] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768741329
    [base_string] => 2009491/api/v2/order/get_order_detail1768741329eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 896a94d42d6fe5a1...
    [url_length] => 858
)

============================================================

[13:02:09] INFO: ⏳ Executando cURL...
============================================================

[13:02:13] INFO: ✅ cURL executado
============================================================

[13:02:13] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348a92ee6e010c6c13d9b4000"}
    [curl_error] => 
)

============================================================

[13:02:13] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[13:02:13] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[13:02:13] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[13:02:15] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348a92ef637f18ca67d43b000"}
)

============================================================

[13:02:15] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601057BJWCE5G
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[13:02:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601057BJWCE5G
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:31:09] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260111PBVQ1NFW
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[18:31:09] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260111PBVQ1NFW
    [shop_id] => 533042255
)

============================================================

[18:31:09] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768761069
    [base_string] => 2009491/api/v2/order/get_order_detail1768761069eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => a98b1cf2ab17b6fb...
    [url_length] => 858
)

============================================================

[18:31:09] INFO: ⏳ Executando cURL...
============================================================

[18:31:10] INFO: ✅ cURL executado
============================================================

[18:31:10] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348adc743fdab2522588fd600"}
    [curl_error] => 
)

============================================================

[18:31:10] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[18:31:10] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[18:31:10] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[18:31:11] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348adc7532ba2b83d02047d00"}
)

============================================================

[18:31:11] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260111PBVQ1NFW
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[18:31:11] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260111PBVQ1NFW
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[18:35:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260110NWH7BTTP
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:35:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260110NWH7BTTP
    [shop_id] => 504113848
)

============================================================

[18:35:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768761346
    [base_string] => 2009491/api/v2/order/get_order_detail1768761346eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEogeizywYw1M-59gg4AUAB.CfkrCFieQPmHGosqvktc64p5ms3nKes3YTV_-DsD39A504113848
    [signature] => a4a27fe8848b5ea2...
    [url_length] => 858
)

============================================================

[18:35:46] INFO: ⏳ Executando cURL...
============================================================

[18:35:47] INFO: ✅ cURL executado
============================================================

[18:35:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":15.38,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":928719375,"buyer_username":"grazielacarla578","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768054071,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":15.38,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"23744","series_number":"5","access_key":"41260132111081000193550050000237441224985733","issue_date":1768054423,"total_value":1.19,"products_total_value":1.19,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-822yo-mhyxm6ji53pd46_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":58251605982,"item_name":"KIT 3/6/12/60 Tesoura Escolar De Aço Inox Com Ponta Arredondada Leonora Volta Aulas Papelaria","item_sku":"tesoura12cmpretaleo","main_item":false,"model_discounted_price":11.9,"model_id":239433684122,"model_name":"3 UNIDADES","model_original_price":20,"model_quantity_purchased":1,"model_sku":"KIT3tesoura12cmpretaleo","order_item_id":58251605982,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260110NWH7BTTP","order_status":"COMPLETED","package_list":[{"package_number":"OFG221753271134152","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":58251605982,"model_id":239433684122,"model_quantity":1,"order_item_id":58251605982,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":4000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768054106,"payment_method":"Pix","pickup_done_time":1768235975,"recipient_address":{"name":"G******a","phone":"******73","town":"","district":"Novo Horizonte","city":"Ibirité","state":"Minas Gerais","region":"BR","zipcode":"32412324","full_address":"Ru******"},"region":"BR","return_request_due_date":1769102249,"reverse_shipping_fee":0,"ship_by_date":1768273199,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":11.9,"update_time":1768761330}]},"request_id":"e3e3e7f348add7c885c58c88a27b0f00:0100022ec7811370:000000cac70b811d"}
    [curl_error] => 
)

============================================================

[18:35:47] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[18:35:47] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260110NWH7BTTP
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:35:47] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260110NWH7BTTP
)

============================================================

[18:35:47] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260110NWH7BTTP.json
============================================================

[18:35:47] INFO: 📦 Item #0
Array
(
    [item_name] => KIT 3/6/12/60 Tesoura Escolar De Aço Inox Com Ponta Arredondada Leonora Volta Aulas Papelaria
    [item_sku] => tesoura12cmpretaleo
    [model_sku] => KIT3tesoura12cmpretaleo
    [sku_usado] => tesoura12cmpretaleo
    [tem_dpx] => 
)

============================================================

[18:35:47] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260110NWH7BTTP
)

============================================================

[18:36:22] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260111PBVQ1NFW
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[18:36:22] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260111PBVQ1NFW
    [shop_id] => 533042255
)

============================================================

[18:36:22] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768761382
    [base_string] => 2009491/api/v2/order/get_order_detail1768761382eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 05f5b730dfe72c55...
    [url_length] => 858
)

============================================================

[18:36:22] INFO: ⏳ Executando cURL...
============================================================

[18:36:23] INFO: ✅ cURL executado
============================================================

[18:36:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348add9f42d0f9f6b6664e400"}
    [curl_error] => 
)

============================================================

[18:36:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[18:36:23] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[18:36:23] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[18:36:24] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348adda036063c179df975b00"}
)

============================================================

[18:36:24] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260111PBVQ1NFW
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[18:36:24] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260111PBVQ1NFW
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:08:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601166F4JFFYT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[19:08:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601166F4JFFYT
    [shop_id] => 533042255
)

============================================================

[19:08:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768763321
    [base_string] => 2009491/api/v2/order/get_order_detail1768763321eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 6b68c7572d5e6612...
    [url_length] => 858
)

============================================================

[19:08:41] INFO: ⏳ Executando cURL...
============================================================

[19:08:42] INFO: ✅ cURL executado
============================================================

[19:08:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348ae4d7f17d12457c5268500"}
    [curl_error] => 
)

============================================================

[19:08:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:08:42] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:08:42] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[19:08:43] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348ae4d8e5318676e9b8f2e00"}
)

============================================================

[19:08:43] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601166F4JFFYT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[19:08:43] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601166F4JFFYT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[19:13:48] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601166F4JFFYT
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[19:13:48] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601166F4JFFYT
    [shop_id] => 533042255
)

============================================================

[19:13:48] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768763628
    [base_string] => 2009491/api/v2/order/get_order_detail1768763628eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => e8ce28b41b9909c3...
    [url_length] => 858
)

============================================================

[19:13:48] INFO: ⏳ Executando cURL...
============================================================

[19:13:50] INFO: ✅ cURL executado
============================================================

[19:13:50] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348ae5fdcb788a0582e6ace00"}
    [curl_error] => 
)

============================================================

[19:13:50] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[19:13:50] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[19:13:50] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[19:13:55] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348ae602a23191812cf006d00"}
)

============================================================

[19:13:55] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601166F4JFFYT
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[19:13:55] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601166F4JFFYT
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[21:02:57] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260113028HDVC3
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[21:02:57] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260113028HDVC3
    [shop_id] => 533042255
)

============================================================

[21:02:57] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768770177
    [base_string] => 2009491/api/v2/order/get_order_detail1768770177eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 25a7a17341eedc93...
    [url_length] => 858
)

============================================================

[21:02:57] INFO: ⏳ Executando cURL...
============================================================

[21:02:58] INFO: ✅ cURL executado
============================================================

[21:02:58] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348afe62d3c803dfc80f46600"}
    [curl_error] => 
)

============================================================

[21:02:58] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:02:58] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:02:58] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[21:02:59] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348afe63cc0a029dde91dce00"}
)

============================================================

[21:02:59] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260113028HDVC3
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[21:02:59] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260113028HDVC3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[21:08:04] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260113028HDVC3
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[21:08:04] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260113028HDVC3
    [shop_id] => 533042255
)

============================================================

[21:08:04] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768770484
    [base_string] => 2009491/api/v2/order/get_order_detail1768770484eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => d857747d45dadeaf...
    [url_length] => 858
)

============================================================

[21:08:04] INFO: ⏳ Executando cURL...
============================================================

[21:08:25] INFO: ✅ cURL executado
============================================================

[21:08:25] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348aff9a7f673fdf8a471c000"}
    [curl_error] => 
)

============================================================

[21:08:25] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[21:08:25] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[21:08:25] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[21:08:30] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348aff9f7b12d00112de4a900"}
)

============================================================

[21:08:30] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260113028HDVC3
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[21:08:30] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260113028HDVC3
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[01:02:34] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260112U2311RM2
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[01:02:34] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260112U2311RM2
    [shop_id] => 504113848
)

============================================================

[01:02:34] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768784554
    [base_string] => 2009491/api/v2/order/get_order_detail1768784554eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo_8y1ywYw-fu1uwc4AUAB.3o7vVfF5bprZHQxxzFbHb2h5w-UuoMexT6Lv9Llpwdc504113848
    [signature] => 011f5c830aeb252c...
    [url_length] => 858
)

============================================================

[01:02:34] INFO: ⏳ Executando cURL...
============================================================

[01:02:35] INFO: ✅ cURL executado
============================================================

[01:02:35] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":12.04,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":481408033,"buyer_username":"camillacurupana","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768230762,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":12.04,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"24350","series_number":"5","access_key":"41260132111081000193550050000243501603672679","issue_date":1768231121,"total_value":2.6,"products_total_value":2.6,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8259t-mfx617isijnwc7_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22499040962,"item_name":"Palito redondo de picolé e escolar com 500 unidades","item_sku":"kit500palitosorvete","main_item":false,"model_discounted_price":25.98,"model_id":0,"model_name":"","model_original_price":50,"model_quantity_purchased":1,"model_sku":"","order_item_id":22499040962,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.6,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260112U2311RM2","order_status":"COMPLETED","package_list":[{"package_number":"OFG221929963145600","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22499040962,"model_id":0,"model_quantity":1,"order_item_id":22499040962,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":2000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768230876,"payment_method":"Pix","pickup_done_time":1768356356,"recipient_address":{"name":"C******a","phone":"******93","town":"","district":"Tindiquera","city":"Araucária","state":"Paraná","region":"BR","zipcode":"83708132","full_address":"Ru******"},"region":"BR","return_request_due_date":1769094503,"reverse_shipping_fee":0,"ship_by_date":1768359599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":25.98,"update_time":1768784531}]},"request_id":"e3e3e7f348b33f157c36cb3450f31400:010002799a815ba2:0000003bd884dbf3"}
    [curl_error] => 
)

============================================================

[01:02:35] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[01:02:35] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260112U2311RM2
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[01:02:35] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260112U2311RM2
)

============================================================

[01:02:35] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260112U2311RM2.json
============================================================

[01:02:35] INFO: 📦 Item #0
Array
(
    [item_name] => Palito redondo de picolé e escolar com 500 unidades
    [item_sku] => kit500palitosorvete
    [model_sku] => 
    [sku_usado] => kit500palitosorvete
    [tem_dpx] => 
)

============================================================

[01:02:35] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260112U2311RM2
)

============================================================

[05:14:08] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 251218MXEAUMNE
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[05:14:08] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 251218MXEAUMNE
    [shop_id] => 533042255
)

============================================================

[05:14:08] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768799648
    [base_string] => 2009491/api/v2/order/get_order_detail1768799648eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => d23b10c42c7de2f6...
    [url_length] => 858
)

============================================================

[05:14:08] INFO: ⏳ Executando cURL...
============================================================

[05:14:09] INFO: ✅ cURL executado
============================================================

[05:14:09] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348b6c2c3412b39122f6a4500"}
    [curl_error] => 
)

============================================================

[05:14:09] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[05:14:09] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[05:14:09] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[05:14:15] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348b6c321358273d9decacb00"}
)

============================================================

[05:14:15] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 251218MXEAUMNE
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[05:14:15] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 251218MXEAUMNE
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[13:47:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260106ABX9GGRC
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[13:47:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260106ABX9GGRC
    [shop_id] => 533042255
)

============================================================

[13:47:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768830461
    [base_string] => 2009491/api/v2/order/get_order_detail1768830461eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 58e6cc8109642752...
    [url_length] => 858
)

============================================================

[13:47:41] INFO: ⏳ Executando cURL...
============================================================

[13:47:42] INFO: ✅ cURL executado
============================================================

[13:47:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348bdef5e8937e3edd027a000"}
    [curl_error] => 
)

============================================================

[13:47:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[13:47:42] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[13:47:42] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[13:47:43] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348bdef6e09642ea2c25c6600"}
)

============================================================

[13:47:43] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260106ABX9GGRC
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[13:47:43] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260106ABX9GGRC
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[13:52:54] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260106ABX9GGRC
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[13:52:54] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260106ABX9GGRC
    [shop_id] => 533042255
)

============================================================

[13:52:54] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768830774
    [base_string] => 2009491/api/v2/order/get_order_detail1768830774eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 0646b8fde7773885...
    [url_length] => 858
)

============================================================

[13:52:54] INFO: ⏳ Executando cURL...
============================================================

[13:52:57] INFO: ✅ cURL executado
============================================================

[13:52:57] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348be0228d5de82dfe9ca5600"}
    [curl_error] => 
)

============================================================

[13:52:57] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[13:52:57] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[13:52:57] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[13:52:58] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348be023821fd58cae91b6800"}
)

============================================================

[13:52:58] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260106ABX9GGRC
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[13:52:58] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260106ABX9GGRC
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:07:41] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107EB6VWVX8
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[16:07:41] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107EB6VWVX8
    [shop_id] => 533042255
)

============================================================

[16:07:41] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768838861
    [base_string] => 2009491/api/v2/order/get_order_detail1768838861eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => c61be303b610cf9c...
    [url_length] => 858
)

============================================================

[16:07:41] INFO: ⏳ Executando cURL...
============================================================

[16:07:42] INFO: ✅ cURL executado
============================================================

[16:07:42] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348bfe40bfb21937c4f24dd00"}
    [curl_error] => 
)

============================================================

[16:07:42] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[16:07:42] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[16:07:42] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[16:07:43] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348bfe41b21dbabf0a98cc700"}
)

============================================================

[16:07:43] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107EB6VWVX8
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[16:07:43] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107EB6VWVX8
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[16:59:32] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601153JPKD1SY
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[16:59:32] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601153JPKD1SY
    [shop_id] => 504113848
)

============================================================

[16:59:32] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768841972
    [base_string] => 2009491/api/v2/order/get_order_detail1768841972eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEokqi5ywYw5Img1A44AUAB.gslB7DOCFNM49E-RzQzR3nBbuZ7JqdDHp9thMRUkMUs504113848
    [signature] => 612ecd81d8521113...
    [url_length] => 858
)

============================================================

[16:59:32] INFO: ⏳ Executando cURL...
============================================================

[16:59:34] INFO: ✅ cURL executado
============================================================

[16:59:34] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":10.83,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":973605032,"buyer_username":"maria5686292","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768423965,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":10.83,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"25671","series_number":"5","access_key":"41260132111081000193550050000256711196034165","issue_date":1768496140,"total_value":1.36,"products_total_value":1.36,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7ratc-mamv59prh4y816_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23998560376,"item_name":"Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report","item_sku":"SENINHA4COLO","main_item":false,"model_discounted_price":13.59,"model_id":199608168334,"model_name":"Report  (Branco 100 fls)","model_original_price":18,"model_quantity_purchased":1,"model_sku":"A4BRAN","order_item_id":23998560376,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.5,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601153JPKD1SY","order_status":"COMPLETED","package_list":[{"package_number":"OFG222123164199747","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":23998560376,"model_id":199608168334,"model_quantity":1,"order_item_id":23998560376,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":750,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768423989,"payment_method":"Pix","pickup_done_time":1768513687,"recipient_address":{"name":"M******a","phone":"******76","town":"","district":"Santos Dumont","city":"São Leopoldo","state":"Rio Grande do Sul","region":"BR","zipcode":"93113220","full_address":"Ru******"},"region":"BR","return_request_due_date":1769441673,"reverse_shipping_fee":0,"ship_by_date":1768532399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":19.01,"update_time":1768841935}]},"request_id":"e3e3e7f348c09d7f081c9873c35ea300:0100029c58bea350:000000e5dffbc29a"}
    [curl_error] => 
)

============================================================

[16:59:34] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[16:59:34] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601153JPKD1SY
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[16:59:34] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601153JPKD1SY
)

============================================================

[16:59:34] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601153JPKD1SY.json
============================================================

[16:59:34] INFO: 📦 Item #0
Array
(
    [item_name] => Papel Sulfite A4 100 Folhas 21x 29,7cm A4 (Brancas e Coloridas - Amarelo Azul Rosa Verde) -  Report
    [item_sku] => SENINHA4COLO
    [model_sku] => A4BRAN
    [sku_usado] => SENINHA4COLO
    [tem_dpx] => 
)

============================================================

[16:59:34] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601153JPKD1SY
)

============================================================

[18:53:38] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260103210VJ02U
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[18:53:38] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260103210VJ02U
    [shop_id] => 504113848
)

============================================================

[18:53:38] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768848818
    [base_string] => 2009491/api/v2/order/get_order_detail1768848818eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEokqi5ywYw5Img1A44AUAB.gslB7DOCFNM49E-RzQzR3nBbuZ7JqdDHp9thMRUkMUs504113848
    [signature] => e00944d5cc6fcd2c...
    [url_length] => 858
)

============================================================

[18:53:38] INFO: ⏳ Executando cURL...
============================================================

[18:53:39] INFO: ✅ cURL executado
============================================================

[18:53:39] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":21.44,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":779942393,"buyer_username":"diogovictor051","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767370624,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":21.44,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"21629","series_number":"5","access_key":"41260132111081000193550050000216291320861828","issue_date":1767370730,"total_value":1.19,"products_total_value":1.19,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-8259t-mfx617isijnwc7_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22694544115,"item_name":"Palito redondo de picolé e escolar com 100 unidades","item_sku":"kit100palitosorvete","main_item":false,"model_discounted_price":11.87,"model_id":0,"model_name":"","model_original_price":11.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":22694544115,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.12,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260103210VJ02U","order_status":"COMPLETED","package_list":[{"package_number":"OFG221069824102750","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22694544115,"model_id":0,"model_quantity":1,"order_item_id":22694544115,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":667,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767370631,"payment_method":"Credit Card","pickup_done_time":1767631532,"recipient_address":{"name":"D******s","phone":"******46","town":"","district":"Centro","city":"Congo","state":"Paraíba","region":"BR","zipcode":"58535000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1767668399,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":13.31,"update_time":1768848772}]},"request_id":"e3e3e7f348c235833bc7e49d89d59f00:010002e456b8c46d:0000000a6d95207f"}
    [curl_error] => 
)

============================================================

[18:53:39] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[18:53:39] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260103210VJ02U
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[18:53:39] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260103210VJ02U
)

============================================================

[18:53:39] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260103210VJ02U.json
============================================================

[18:53:39] INFO: 📦 Item #0
Array
(
    [item_name] => Palito redondo de picolé e escolar com 100 unidades
    [item_sku] => kit100palitosorvete
    [model_sku] => 
    [sku_usado] => kit100palitosorvete
    [tem_dpx] => 
)

============================================================

[18:53:39] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260103210VJ02U
)

============================================================

[05:45:39] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601032963ESYV
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[05:45:39] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601032963ESYV
    [shop_id] => 533042255
)

============================================================

[05:45:39] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768887939
    [base_string] => 2009491/api/v2/order/get_order_detail1768887939eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 6ecdb4a9bd2342b8...
    [url_length] => 858
)

============================================================

[05:45:39] INFO: ⏳ Executando cURL...
============================================================

[05:45:40] INFO: ✅ cURL executado
============================================================

[05:45:40] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348cb51588b8b7f8530399c00"}
    [curl_error] => 
)

============================================================

[05:45:40] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[05:45:40] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[05:45:40] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[05:45:41] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348cb5167e1eaf06ea0df9200"}
)

============================================================

[05:45:41] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601032963ESYV
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[05:45:41] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601032963ESYV
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[05:50:46] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601032963ESYV
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[05:50:46] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601032963ESYV
    [shop_id] => 533042255
)

============================================================

[05:50:46] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768888246
    [base_string] => 2009491/api/v2/order/get_order_detail1768888246eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 490763ca862c22aa...
    [url_length] => 858
)

============================================================

[05:50:46] INFO: ⏳ Executando cURL...
============================================================

[05:50:47] INFO: ✅ cURL executado
============================================================

[05:50:47] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348cb63a88690549cc6dfd000"}
    [curl_error] => 
)

============================================================

[05:50:47] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[05:50:47] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[05:50:47] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[05:50:49] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348cb63b7c7f8e728a2512700"}
)

============================================================

[05:50:49] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601032963ESYV
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[05:50:49] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601032963ESYV
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[11:51:22] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260101TCSRXYD0
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[11:51:22] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260101TCSRXYD0
    [shop_id] => 533042255
)

============================================================

[11:51:22] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768909882
    [base_string] => 2009491/api/v2/order/get_order_detail1768909882eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 1109beecb04f9277...
    [url_length] => 858
)

============================================================

[11:51:22] INFO: ⏳ Executando cURL...
============================================================

[11:51:23] INFO: ✅ cURL executado
============================================================

[11:51:23] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348d06d41debdfbbb9b09db00"}
    [curl_error] => 
)

============================================================

[11:51:23] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[11:51:23] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[11:51:23] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[11:51:24] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348d06d515b25beb71c08ae00"}
)

============================================================

[11:51:24] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260101TCSRXYD0
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[11:51:24] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260101TCSRXYD0
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[13:33:07] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601140U41TT3C
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[13:33:07] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601140U41TT3C
    [shop_id] => 504113848
)

============================================================

[13:33:07] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768915987
    [base_string] => 2009491/api/v2/order/get_order_detail1768915987eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo8v-9ywYwv5O1pA84AUAB.gCUxlrlVRMB2YdFToxHduPLXFD2Cho1jbmVffVs5fUU504113848
    [signature] => 34c3ba6da248482c...
    [url_length] => 858
)

============================================================

[13:33:07] INFO: ⏳ Executando cURL...
============================================================

[13:33:08] INFO: ✅ cURL executado
============================================================

[13:33:08] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":33.59,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":1496664752,"buyer_username":"_ng_d3a4ra","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1768329927,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":33.59,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"24904","series_number":"5","access_key":"41260132111081000193550050000249041449679834","issue_date":1768330129,"total_value":17,"products_total_value":17,"tax_code":"5102"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rffc-m97huo92i8t179_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":22193972330,"item_name":"Kit com 6 Pasta Catalogo 50 envelopes, preta ACP","item_sku":"KIT6ACP50EN","main_item":false,"model_discounted_price":84.99,"model_id":0,"model_name":"","model_original_price":122,"model_quantity_purchased":2,"model_sku":"","order_item_id":22193972330,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":0.8,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"2601140U41TT3C","order_status":"COMPLETED","package_list":[{"package_number":"OFG222029127148553","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":22193972330,"model_id":0,"model_quantity":2,"order_item_id":22193972330,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":9000,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1768329936,"payment_method":"Credit Card","pickup_done_time":1768422035,"recipient_address":{"name":"G******E","phone":"******79","town":"","district":"Esmeralda","city":"Cascavel","state":"Paraná","region":"BR","zipcode":"85806740","full_address":"Ru******"},"region":"BR","return_request_due_date":1769204051,"reverse_shipping_fee":0,"ship_by_date":1768445999,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":183.57,"update_time":1768915945}]},"request_id":"e3e3e7f348d1d918a1e5d61b9cab7100:01000223b4815962:000000287dc5c9aa"}
    [curl_error] => 
)

============================================================

[13:33:08] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[13:33:08] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 2601140U41TT3C
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[13:33:08] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 2601140U41TT3C
)

============================================================

[13:33:08] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_2601140U41TT3C.json
============================================================

[13:33:08] INFO: 📦 Item #0
Array
(
    [item_name] => Kit com 6 Pasta Catalogo 50 envelopes, preta ACP
    [item_sku] => KIT6ACP50EN
    [model_sku] => 
    [sku_usado] => KIT6ACP50EN
    [tem_dpx] => 
)

============================================================

[13:33:08] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 2601140U41TT3C
)

============================================================

[14:59:25] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CWJUFG52
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[14:59:25] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CWJUFG52
    [shop_id] => 533042255
)

============================================================

[14:59:25] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768921165
    [base_string] => 2009491/api/v2/order/get_order_detail1768921165eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 3a7e1e22c2ccd6ed...
    [url_length] => 858
)

============================================================

[14:59:25] INFO: ⏳ Executando cURL...
============================================================

[14:59:26] INFO: ✅ cURL executado
============================================================

[14:59:26] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348d30dbac41268e172b38100"}
    [curl_error] => 
)

============================================================

[14:59:26] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[14:59:26] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[14:59:26] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[14:59:27] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348d30dca22c0343d3b2bc700"}
)

============================================================

[14:59:27] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107CWJUFG52
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[14:59:27] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107CWJUFG52
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:04:32] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260107CWJUFG52
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:04:32] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260107CWJUFG52
    [shop_id] => 533042255
)

============================================================

[15:04:32] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768921472
    [base_string] => 2009491/api/v2/order/get_order_detail1768921472eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 9073efd96d444158...
    [url_length] => 858
)

============================================================

[15:04:32] INFO: ⏳ Executando cURL...
============================================================

[15:04:33] INFO: ✅ cURL executado
============================================================

[15:04:33] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348d3200b43e05d78769a5000"}
    [curl_error] => 
)

============================================================

[15:04:33] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[15:04:33] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[15:04:33] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 533042255
    [user_id] => 23862
)

============================================================

[15:04:34] ERROR: ❌ Falha ao atualizar token - token inválido retornado
Array
(
    [error] => {"error":"refresh_token_expired","message":"Your refresh_token expired.","request_id":"e3e3e7f348d3201adbd64a9e0b0f0600"}
)

============================================================

[15:04:34] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 260107CWJUFG52
    [error] => Token expirado e falha ao renovar. Reautorize sua conta Shopee nas configurações.
)

============================================================

[15:04:34] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 260107CWJUFG52
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[15:09:10] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260108EJT5QJ00
    [seller_id] => 504113848
    [user_id] => 519
    [status] => COMPLETED
)

============================================================

[15:09:10] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260108EJT5QJ00
    [shop_id] => 504113848
)

============================================================

[15:09:10] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 504113848
    [timestamp] => 1768921750
    [base_string] => 2009491/api/v2/order/get_order_detail1768921750eyJhbGciOiJIUzI1NiJ9.CJPTehABGLjVsPABIAEo8v-9ywYwv5O1pA84AUAB.gCUxlrlVRMB2YdFToxHduPLXFD2Cho1jbmVffVs5fUU504113848
    [signature] => 2ad1cbde5a7d9434...
    [url_length] => 858
)

============================================================

[15:09:10] INFO: ⏳ Executando cURL...
============================================================

[15:09:13] INFO: ✅ cURL executado
============================================================

[15:09:13] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":31.23,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":520729013,"buyer_username":"gabrielesivaeli","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress","cod":false,"create_time":1767802042,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":31.23,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"22966","series_number":"5","access_key":"41260132111081000193550050000229661448822815","issue_date":1767802429,"total_value":10.34,"products_total_value":10.34,"tax_code":"6104"},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rat9-mamsvfs6hptvb5_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":19599762178,"item_name":"Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas","item_sku":"REPORTA4500","main_item":false,"model_discounted_price":34.45,"model_id":0,"model_name":"","model_original_price":53,"model_quantity_purchased":3,"model_sku":"","order_item_id":19599762178,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_list":[{"promotion_type":"seller_discount","promotion_id":789258852286464}],"promotion_type":"","weight":3.4,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260108EJT5QJ00","order_status":"COMPLETED","package_list":[{"package_number":"OFG221501242191989","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress","item_list":[{"item_id":19599762178,"model_id":0,"model_quantity":3,"order_item_id":19599762178,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":10200,"allow_self_design_awb":true,"logistics_channel_id":91003,"sorting_group":""}],"pay_time":1767802054,"payment_method":"SParcelado","pickup_done_time":1768235502,"recipient_address":{"name":"G******a","phone":"******25","town":"","district":"Chácara Dona Olívia","city":"São Paulo","state":"São Paulo","region":"BR","zipcode":"08141360","full_address":"Ru******"},"region":"BR","return_request_due_date":1769209730,"reverse_shipping_fee":0,"ship_by_date":1767927599,"shipping_carrier":"Shopee Xpress","split_up":false,"total_amount":114.58,"update_time":1768921729}]},"request_id":"e3e3e7f348d330b0dd5d96be8d2a4b00:0100023276fda60f:00000091a9e1ec52"}
    [curl_error] => 
)

============================================================

[15:09:13] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[15:09:13] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260108EJT5QJ00
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[15:09:13] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260108EJT5QJ00
)

============================================================

[15:09:13] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260108EJT5QJ00.json
============================================================

[15:09:13] INFO: 📦 Item #0
Array
(
    [item_name] => Papel Sulfite Report Folha Ofício Para Impressão A4  com 500 Folhas
    [item_sku] => REPORTA4500
    [model_sku] => 
    [sku_usado] => REPORTA4500
    [tem_dpx] => 
)

============================================================

[15:09:13] INFO: ℹ️ Pedido não contém produtos DPX
Array
(
    [order_sn] => 260108EJT5QJ00
)

============================================================

[15:23:24] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 2601166FFCM7UG
    [seller_id] => 533042255
    [user_id] => 23862
    [status] => COMPLETED
)

============================================================

[15:23:24] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 2601166FFCM7UG
    [shop_id] => 533042255
)

============================================================

[15:23:24] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 533042255
    [timestamp] => 1768922604
    [base_string] => 2009491/api/v2/order/get_order_detail1768922604eyJhbGciOiJIUzI1NiJ9.CJPTehABGM-olv4BIAEo6ciYyQYwjNXvrAQ4AUAB.HPYNaOvFDySsG9Exk0-7Up8Xgg1WAw5lYOUnq4RC1QA533042255
    [signature] => 7fe9460f61bae6c1...
    [url_length] => 858
)

============================================================

[15:23:24] INFO: ⏳ Executando cURL...
============================================================

[15:23:54] INFO: ✅ cURL executado
============================================================

[15:23:54] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 0
    [response] => 
    [curl_error] => Connection timed out after 30002 milliseconds
)

============================================================

[15:23:54] ERROR: ❌ Erro ao buscar detalhes do pedido
Array
(
    [order_sn] => 2601166FFCM7UG
    [error] => Erro cURL: Connection timed out after 30002 milliseconds
)

============================================================

[15:23:54] ERROR: ❌ Erro ao processar venda
Array
(
    [order_sn] => 2601166FFCM7UG
    [error] => Não foi possível buscar detalhes do pedido na API da Shopee
    [file] => /var/www/whitelabels/envionacional/assets/ajax/plataformas/shopee/classes/WebhookVendasProcessorShopee.php
    [line] => 46
)

============================================================

[01:53:14] INFO: 🚀 Iniciando processamento de venda Shopee
Array
(
    [order_sn] => 260110M11M3QUT
    [seller_id] => 1035641613
    [user_id] => 33
    [status] => COMPLETED
)

============================================================

[01:53:14] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260110M11M3QUT
    [shop_id] => 1035641613
)

============================================================

[01:53:14] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1768960394
    [base_string] => 2009491/api/v2/order/get_order_detail1768960394eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEogeO_ywYwnv32lQg4AUAB.qJHcGDgWZyZ_lh2bmVt9wv9nzfy96GAeqmCReBJTi6Y1035641613
    [signature] => 5f44e8bcbe93f079...
    [url_length] => 859
)

============================================================

[01:53:14] INFO: ⏳ Executando cURL...
============================================================

[01:53:15] INFO: ✅ cURL executado
============================================================

[01:53:15] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 403
    [response] => {"error":"invalid_acceess_token","message":"Invalid access_token, please have a check.","request_id":"e3e3e7f348dc2ff5107fdff48bd1b400"}
    [curl_error] => 
)

============================================================

[01:53:15] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 403
    [is_403] => 1
    [type] => integer
)

============================================================

[01:53:15] INFO: 🔄 HTTP 403 detectado - Tentando refresh do access_token...
============================================================

[01:53:15] INFO: 🔄 Iniciando refresh do access_token Shopee
Array
(
    [shop_id] => 1035641613
    [user_id] => 33
)

============================================================

[01:53:20] INFO: ✅ Token atualizado com sucesso
Array
(
    [new_token_preview] => eyJhbGciOiJIUzI1NiJ9...
)

============================================================

[01:53:20] INFO: ✅ Token atualizado com sucesso! Tentando novamente...
============================================================

[01:53:20] INFO: 📡 Buscando detalhes do pedido na API Shopee
Array
(
    [order_sn] => 260110M11M3QUT
    [shop_id] => 1035641613
)

============================================================

[01:53:20] INFO: 🔗 URL da API construída
Array
(
    [partner_id] => 2009491
    [shop_id] => 1035641613
    [timestamp] => 1768960400
    [base_string] => 2009491/api/v2/order/get_order_detail1768960400eyJhbGciOiJIUzI1NiJ9.CJPTehABGI3G6u0DIAEoj-PAywYw66bt2Qk4AUAB.yuy1ndq3KcrACHdOMMkadO0Fi-uaVVVIBbzlIE6qixE1035641613
    [signature] => 8d0ee4e731c0eb9d...
    [url_length] => 859
)

============================================================

[01:53:20] INFO: ⏳ Executando cURL...
============================================================

[01:53:21] INFO: ✅ cURL executado
============================================================

[01:53:21] INFO: 📥 Resposta da API Shopee
Array
(
    [http_code] => 200
    [response] => {"error":"","message":"","response":{"order_list":[{"actual_shipping_fee":9.62,"actual_shipping_fee_confirmed":true,"advance_package":false,"booking_sn":"","buyer_cancel_reason":"","buyer_cpf_id":"******","buyer_user_id":999772125,"buyer_username":"alinexavierdasilva705","cancel_by":"","cancel_reason":"","checkout_shipping_carrier":"Shopee Xpress CPF","cod":false,"create_time":1767989123,"currency":"BRL","days_to_ship":2,"dropshipper":null,"dropshipper_phone":null,"estimated_shipping_fee":9.62,"fulfillment_flag":"fulfilled_by_local_seller","goods_to_declare":false,"hot_listing_order":false,"invoice_data":{"number":"","series_number":"","access_key":"","issue_date":0,"total_value":0,"products_total_value":0,"tax_code":""},"is_buyer_shop_collection":false,"item_list":[{"add_on_deal":false,"add_on_deal_id":0,"consultation_id":"","hot_listing_item":false,"image_info":{"image_url":"https://cf.shopee.com.br/file/sg-11134201-7rdw3-md0yqmgnyb52ca_tn"},"is_b2c_owned_item":false,"is_prescription_item":false,"item_id":23094288126,"item_name":"hidratante batom labial cupcake gloss estilo girl kids kit com 8","item_sku":"DPX4331557235","main_item":false,"model_discounted_price":44.99,"model_id":0,"model_name":"","model_original_price":44.99,"model_quantity_purchased":1,"model_sku":"","order_item_id":23094288126,"product_location_id":["BRZ"],"promotion_group_id":0,"promotion_id":0,"promotion_type":"","weight":1,"wholesale":false}],"message_to_seller":"","note":"","note_update_time":0,"order_sn":"260110M11M3QUT","order_status":"COMPLETED","package_list":[{"package_number":"OFG221688323191991","group_shipment_id":null,"logistics_status":"LOGISTICS_DELIVERY_DONE","shipping_carrier":"Shopee Xpress CPF","item_list":[{"item_id":23094288126,"model_id":0,"model_quantity":1,"order_item_id":23094288126,"promotion_group_id":0,"product_location_id":"BRZ"}],"parcel_chargeable_weight_gram":1000,"allow_self_design_awb":true,"logistics_channel_id":90016,"sorting_group":""}],"pay_time":1767989154,"payment_method":"SParcelado","pickup_done_time":1768251977,"recipient_address":{"name":"A******r","phone":"******31","town":"","district":"Realengo","city":"Rio de Janeiro","state":"Rio de Janeiro","region":"BR","zipcode":"21770000","full_address":"Ru******"},"region":"BR","reverse_shipping_fee":0,"ship_by_date":1768273199,"shipping_carrier":"Shopee Xpress CPF","split_up":false,"total_amount":28.68,"update_time":1768960374}]},"request_id":"e3e3e7f348dc3052057de941c7540c00:010002b434e42198:0000005fbd49e4fc"}
    [curl_error] => 
)

============================================================

[01:53:21] INFO: 🔍 Verificando HTTP code
Array
(
    [http_code] => 200
    [is_403] => 
    [type] => integer
)

============================================================

[01:53:21] INFO: ✅ Detalhes do pedido obtidos com sucesso
Array
(
    [order_sn] => 260110M11M3QUT
    [order_status] => COMPLETED
    [items_count] => 1
)

============================================================

[01:53:21] INFO: 🔍 Analisando items do pedido
Array
(
    [total_items] => 1
    [order_sn] => 260110M11M3QUT
)

============================================================

[01:53:21] INFO: 📝 Resposta completa salva em: /tmp/shopee_order_260110M11M3QUT.json
============================================================

[01:53:21] INFO: 📦 Item #0
Array
(
    [item_name] => hidratante batom labial cupcake gloss estilo girl kids kit com 8
    [item_sku] => DPX4331557235
    [model_sku] => 
    [sku_usado] => DPX4331557235
    [tem_dpx] => 1
)

============================================================

[01:53:21] INFO: ⚠️ Venda já existe no banco
Array
(
    [order_sn] => 260110M11M3QUT
)

============================================================
