[2025-01-07 05:12:03] Production.INFO: -- Xero Api Check -- [2025-01-07 05:12:05] Production.INFO: -- curl info --Array ( [url] => https://identity.xero.com/connect/token [content_type] => application/json; charset=UTF-8 [http_code] => 200 [header_size] => 856 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.085655 [namelookup_time] => 0.557688 [connect_time] => 0.559479 [pretransfer_time] => 0.803113 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2537 [speed_upload] => 75 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.085624 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42088 ) [2025-01-07 05:12:05] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDQ3MjQsImV4cCI6MTczNjI0NTAyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ0NzI0LCJhdF9oYXNoIjoiN2RIX0FnUGpEb0tsWXVJZEtyV1FNdyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1M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ieGVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.RNSd0qcmE9JwQxqc4KQzkav-jiSeR0-MvBuUdnEtHtPOBka65iyK_CFHTcQNWQ2ZlR3_GLrOBdpsHMv06kr4fTZoxMe-3FoJdgPzmlADotaCnA2tGDGT-unGSo1-GJfbH98BTXh1Anxw1JvLBncRUTep-q1ugwlCn4BhF_V2Rypc-pYGOCz0JuMvy4O71UUgn2z-cCdfrywT_whiCsuW4yv3PfJPO2YLGn7n4QuLaGaYw_39EFMhP3cAd4znsCyaQ_xmTMNNIOUY2T4RSofjWOBoTXRfxgZ8g7IE4EhAP-ht4tZSmtoFkkSTAzXqgnu2t4qLLgDkfYfND2z9TBUacQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => g9MBHKx_JDobkbpsxuEB1TMKzql58mftujJTxoh66A4 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:12:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2Nzc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mxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.RNSd0qcmE9JwQxqc4KQzkav-jiSeR0-MvBuUdnEtHtPOBka65iyK_CFHTcQNWQ2ZlR3_GLrOBdpsHMv06kr4fTZoxMe-3FoJdgPzmlADotaCnA2tGDGT-unGSo1-GJfbH98BTXh1Anxw1JvLBncRUTep-q1ugwlCn4BhF_V2Rypc-pYGOCz0JuMvy4O71UUgn2z-cCdfrywT_whiCsuW4yv3PfJPO2YLGn7n4QuLaGaYw_39EFMhP3cAd4znsCyaQ_xmTMNNIOUY2T4RSofjWOBoTXRfxgZ8g7IE4EhAP-ht4tZSmtoFkkSTAzXqgnu2t4qLLgDkfYfND2z9TBUacQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => g9MBHKx_JDobkbpsxuEB1TMKzql58mftujJTxoh66A4 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:12:05] Production.INFO: AccountID 242 [2025-01-07 05:12:05] Production.INFO: AccountName Ball Construction [2025-01-07 05:12:05] Production.INFO: Checkcustomer [2025-01-07 05:12:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Ball%20Construction" [2025-01-07 05:12:07] Production.INFO: Contact id print CheckCustomer Case===b0bd4d3e-7d9a-4f7f-a743-aafe2ee02798 [2025-01-07 05:12:07] Production.INFO: -- count --1 [2025-01-07 05:12:07] Production.INFO: AccountID 189 [2025-01-07 05:12:07] Production.INFO: AccountName Bauman Group Inc. [2025-01-07 05:12:07] Production.INFO: Checkcustomer [2025-01-07 05:12:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Bauman%20Group%20Inc." [2025-01-07 05:12:10] Production.INFO: Contact id print CheckCustomer Case===55837711-2979-41d6-b74d-0bee4c711dc6 [2025-01-07 05:12:10] Production.INFO: -- count --1 [2025-01-07 05:12:10] Production.INFO: AccountID 190 [2025-01-07 05:12:10] Production.INFO: AccountName Behrns Metal Fabricating Inc [2025-01-07 05:12:10] Production.INFO: Checkcustomer [2025-01-07 05:12:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Behrns%20Metal%20Fabricating%20Inc" [2025-01-07 05:12:12] Production.INFO: Contact id print CheckCustomer Case===b5208613-a884-49ac-9417-cb8891a7008b [2025-01-07 05:12:12] Production.INFO: -- count --1 [2025-01-07 05:12:12] Production.INFO: AccountID 243 [2025-01-07 05:12:12] Production.INFO: AccountName Bio-Ag Consultants & Distributors Inc. [2025-01-07 05:12:12] Production.INFO: Checkcustomer [2025-01-07 05:12:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Bio-Ag%20Consultants%20%26%20Distributors%20Inc." [2025-01-07 05:12:15] Production.INFO: Contact id print CheckCustomer Case===d07f68ac-89bd-4e73-ae6e-c60c05b83dae [2025-01-07 05:12:15] Production.INFO: -- count --1 [2025-01-07 05:12:15] Production.INFO: AccountID 95 [2025-01-07 05:12:15] Production.INFO: AccountName CanTrust Insurance Services [2025-01-07 05:12:15] Production.INFO: Checkcustomer [2025-01-07 05:12:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="CanTrust%20Insurance%20Services" [2025-01-07 05:12:17] Production.INFO: Contact id print CheckCustomer Case===d5a46ee9-fef7-49ae-981c-b537df046ad7 [2025-01-07 05:12:17] Production.INFO: -- count --1 [2025-01-07 05:12:17] Production.INFO: -- Xero Add Inovice -- [2025-01-07 05:12:17] Production.INFO: CheckInvoice xerov2: INV11023 [2025-01-07 05:12:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11023 [2025-01-07 05:12:20] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:12:20] Production.INFO: Invoice SubTotal 344.260000 [2025-01-07 05:12:20] Production.INFO: Invoice DetTotal 344.26 [2025-01-07 05:12:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Ball%20Construction" [2025-01-07 05:12:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:12:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:12:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:12:30] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 25,UnitAmount : 12.990000,LineAmount : 308.510000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal",Quantity : 1,UnitAmount : 10.000000,LineAmount : 9.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "CloudPhone.ONE Softphone add-on",Quantity : 25,UnitAmount : 1.000000,LineAmount : 23.750000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (5197425851 - 5 Shirley Ave, Kitchener, ON N2B 2E6)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 05:12:33] Production.INFO: ==== result ===== [2025-01-07 05:12:33] Production.INFO: { "Id": "ea47ba3f-ffaf-4222-aa24-2bbf8a1e33d3", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244753253)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "45c3bda0-6ac8-4fa5-9b95-83eb54b881dd", "InvoiceNumber": "INV11023", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 389.03, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 17.99, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b0bd4d3e-7d9a-4f7f-a743-aafe2ee02798", "ContactStatus": "ACTIVE", "Name": "Ball Construction", "FirstName": "Byron", "LastName": "Noseworthy", "EmailAddress": "", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1736242068147+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-08T00:00:00", "Date": "\/Date(1731024000000+0000)\/", "DueDateString": "2024-12-08T00:00:00", "DueDate": "\/Date(1733616000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 12.99, "TaxType": "TAX020", "TaxAmount": 40.11, "LineAmount": 308.51, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "LineItemID": "4a2bdd0f-030c-4129-b0b6-aaecd172ebee", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 16.2400, "ValidationErrors": [] }, { "Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.24, "LineAmount": 9.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 5.00, "LineItemID": "d306ebd9-d26c-4ac7-b110-2cc17442d2b8", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 0.5000, "ValidationErrors": [] }, { "Description": "CloudPhone.ONE Softphone add-on", "UnitAmount": 1.00, "TaxType": "TAX020", "TaxAmount": 3.09, "LineAmount": 23.75, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "LineItemID": "08506f27-c8e2-4fe0-a772-d4e1c985f9d3", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 1.2500, "ValidationErrors": [] }, { "Description": "e911 address registration (5197425851 - 5 Shirley Ave, Kitchener, ON N2B 2E6)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "4843518b-c3c6-4d06-8c85-3f2fd0da9507", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 344.26, "TotalTax": 44.77, "Total": 389.03, "UpdatedDateUTC": "\/Date(1736244753223+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:12:33] Production.INFO: -- Create Invoice id --45c3bda0-6ac8-4fa5-9b95-83eb54b881dd [2025-01-07 05:12:33] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:12:33] Production.INFO: CheckInvoice xerov2: INV11210 [2025-01-07 05:12:33] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11210 [2025-01-07 05:12:35] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:12:35] Production.INFO: Invoice SubTotal 221.200000 [2025-01-07 05:12:35] Production.INFO: Invoice DetTotal 221.2 [2025-01-07 05:12:35] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Bauman%20Group%20Inc." [2025-01-07 05:12:37] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:12:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:12:43] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:12:46] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 10.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 27,UnitAmount : 9.000000,LineAmount : 218.700000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (15196694333 - 3 Industrial Drive Elmira, ON N3B 2S1 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 05:12:48] Production.INFO: ==== result ===== [2025-01-07 05:12:48] Production.INFO: { "Id": "b39ca204-5a0b-40c0-a6fd-8951850c9f17", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244768875)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "5442a57e-948b-40c9-9e17-efeb6f355cbb", "InvoiceNumber": "INV11210", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 249.96, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 24.30, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "55837711-2979-41d6-b74d-0bee4c711dc6", "ContactStatus": "ACTIVE", "Name": "Bauman Group Inc.", "FirstName": "Randy", "LastName": "Bauman", "EmailAddress": "", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1700566819650+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-13T00:00:00", "Date": "\/Date(1734048000000+0000)\/", "DueDateString": "2025-01-12T00:00:00", "DueDate": "\/Date(1736640000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 9.00, "TaxType": "TAX020", "TaxAmount": 28.43, "LineAmount": 218.70, "AccountCode": "203", "Tracking": [], "Quantity": 27.0000, "DiscountRate": 10.00, "LineItemID": "e17c1d50-ed9d-42d1-b6d7-23e2a21b7cbf", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 24.3000, "ValidationErrors": [] }, { "Description": "e911 address registration (15196694333 - 3 Industrial Drive Elmira, ON N3B 2S1 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "4172adaa-d9ae-48a1-825d-8173f97bf678", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 221.20, "TotalTax": 28.76, "Total": 249.96, "UpdatedDateUTC": "\/Date(1736244768830+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:12:48] Production.INFO: -- Create Invoice id --5442a57e-948b-40c9-9e17-efeb6f355cbb [2025-01-07 05:12:48] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:12:48] Production.INFO: CheckInvoice xerov2: INV11049 [2025-01-07 05:12:48] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11049 [2025-01-07 05:12:51] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:12:51] Production.INFO: Invoice SubTotal 77.430000 [2025-01-07 05:12:51] Production.INFO: Invoice DetTotal 77.43 [2025-01-07 05:12:51] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Behrns%20Metal%20Fabricating%20Inc" [2025-01-07 05:12:53] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:12:56] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:12:59] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:13:01] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 10-13-2024 To 11-12-2024",Quantity : 1,UnitAmount : 2.930000,LineAmount : 2.930000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 10.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 8,UnitAmount : 10.000000,LineAmount : 72.000000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (15192914136 - 6650 Perth County Line 88 Gowanstown, ON N0G 1Y0 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 05:13:04] Production.INFO: ==== result ===== [2025-01-07 05:13:04] Production.INFO: { "Id": "a5ea224e-6687-48d4-8e90-6e5a7c5c5bed", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244784255)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "3291da16-e996-4003-894d-82551aa76f6c", "InvoiceNumber": "INV11049", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 87.50, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 8.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b5208613-a884-49ac-9417-cb8891a7008b", "ContactStatus": "ACTIVE", "Name": "Behrns Metal Fabricating Inc", "FirstName": "Janice", "LastName": "George", "EmailAddress": "", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1686216462723+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-13T00:00:00", "Date": "\/Date(1731456000000+0000)\/", "DueDateString": "2024-12-13T00:00:00", "DueDate": "\/Date(1734048000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 10-13-2024 To 11-12-2024", "UnitAmount": 2.93, "TaxType": "TAX020", "TaxAmount": 0.38, "LineAmount": 2.93, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "d71ba785-6566-4352-a6b4-a80e8e129f63", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 9.36, "LineAmount": 72.00, "AccountCode": "203", "Tracking": [], "Quantity": 8.0000, "DiscountRate": 10.00, "LineItemID": "b36a6dd9-4ed7-49b1-b1ac-f2cc6c95dc0d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 8.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (15192914136 - 6650 Perth County Line 88 Gowanstown, ON N0G 1Y0 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "10496ecf-324c-4820-a798-b0bc60c0b220", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 77.43, "TotalTax": 10.07, "Total": 87.50, "UpdatedDateUTC": "\/Date(1736244784193+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:13:04] Production.INFO: -- Create Invoice id --3291da16-e996-4003-894d-82551aa76f6c [2025-01-07 05:13:04] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:13:04] Production.INFO: CheckInvoice xerov2: INV10862 [2025-01-07 05:13:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10862 [2025-01-07 05:13:07] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:13:07] Production.INFO: ========================== Exception occured ============================= [2025-01-07 05:13:07] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 48' in /var/www/html/onswitch.neon.service/app/lib/XeroV2.php:0 Stack trace: #0 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined offse...', '/var/www/html/o...', 0, Array) #1 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): App\Lib\XeroV2->GetInvoiceData() #2 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): App\Lib\XeroV2->CreateInvoice() #3 /var/www/html/onswitch.neon.service/app/Console/Commands/XeroInvoicePostV2.php(0): App\Lib\XeroV2->addInvoices() #4 [internal function]: App\Console\Commands\XeroInvoicePostV2->fire() #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #6 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\XeroInvoicePostV2), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 {main} [2025-01-07 05:13:07] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 05:13:07] Production.INFO: ==4460== Releasing lock... [2025-01-07 05:13:07] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10425 #Stops# [2025-01-07 05:13:07] Production.INFO: 31.5 MB #Memory Used#