[2025-01-07 04:50:03] Production.INFO: -- Xero Api Check -- [2025-01-07 04:50:04] Production.INFO: -- curl info --Array ( [url] => https://identity.xero.com/connect/token [content_type] => application/json; charset=UTF-8 [http_code] => 200 [header_size] => 853 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.596725 [namelookup_time] => 0.143699 [connect_time] => 0.154165 [pretransfer_time] => 0.523284 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4616 [speed_upload] => 137 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.596689 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 39660 ) [2025-01-07 04:50:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDM0MDQsImV4cCI6MTczNjI0MzcwNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQzNDA0LCJhdF9oYXNoIjoiRWtMZk94eWNBbUxHVU96TDZpLWtTQSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiL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191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.TCkdgVTBW0vU6JSgvsDlE-WNTyUAs4MYcGszfaRfWkOKG_O1LDybyQOHRb5wMWLV1bCM2Q9GfQUiYP4pTo36s8tcYP9xz8x3LoA2ydF6dd30u7_lFeWpMfCwFDTJJaDyleHNQzFlSFwrIDAA6Ink7_LB7Nt264FCiT5zQJfXKCrty8NdWIgOCj2KIczi_sohv5DfuymfsppIMx5VBV_B4naiu0yHdoz3_7esLHw83k2XR2t9ITYu28nFreIXOM3b0r8WnLkiVmGUUdM-i45ed4Ow25WIPcbT4flkRKgvt9TVrpWmxHaMsF0vmhWEUlcj85W4Ub4PpzkopupsNTzwiQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 3cUC0cXmybrI7geJrULc_3X2dyY_E2YmCSzfhCr3mZU [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 04:50:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQz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XNzIl0sImFtciI6WyJwd2QiXX0.TCkdgVTBW0vU6JSgvsDlE-WNTyUAs4MYcGszfaRfWkOKG_O1LDybyQOHRb5wMWLV1bCM2Q9GfQUiYP4pTo36s8tcYP9xz8x3LoA2ydF6dd30u7_lFeWpMfCwFDTJJaDyleHNQzFlSFwrIDAA6Ink7_LB7Nt264FCiT5zQJfXKCrty8NdWIgOCj2KIczi_sohv5DfuymfsppIMx5VBV_B4naiu0yHdoz3_7esLHw83k2XR2t9ITYu28nFreIXOM3b0r8WnLkiVmGUUdM-i45ed4Ow25WIPcbT4flkRKgvt9TVrpWmxHaMsF0vmhWEUlcj85W4Ub4PpzkopupsNTzwiQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 3cUC0cXmybrI7geJrULc_3X2dyY_E2YmCSzfhCr3mZU [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 04:50:04] Production.INFO: AccountID 195 [2025-01-07 04:50:04] Production.INFO: AccountName TSFV Management Corp (Two Small Fish) [2025-01-07 04:50:04] Production.INFO: Checkcustomer [2025-01-07 04:50:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TSFV%20Management%20Corp%20%28Two%20Small%20Fish%29" [2025-01-07 04:50:07] Production.INFO: Contact id print CheckCustomer Case===9833b5c4-71b1-4ca5-9307-986f727c9b62 [2025-01-07 04:50:07] Production.INFO: -- count --1 [2025-01-07 04:50:07] Production.INFO: AccountID 90 [2025-01-07 04:50:07] Production.INFO: AccountName Terry Anderson [2025-01-07 04:50:07] Production.INFO: Checkcustomer [2025-01-07 04:50:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Terry%20Anderson" [2025-01-07 04:50:09] Production.INFO: Contact id print CheckCustomer Case===d5be271f-e649-44ed-a97e-8af24111fe24 [2025-01-07 04:50:09] Production.INFO: -- count --1 [2025-01-07 04:50:09] Production.INFO: AccountID 45 [2025-01-07 04:50:09] Production.INFO: AccountName Metro Toronto Collision Centre [2025-01-07 04:50:09] Production.INFO: Checkcustomer [2025-01-07 04:50:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Metro%20Toronto%20Collision%20Centre" [2025-01-07 04:50:12] Production.INFO: Contact id print CheckCustomer Case===639507fe-3c02-40f6-89b2-b3a1c40bc965 [2025-01-07 04:50:12] Production.INFO: -- count --1 [2025-01-07 04:50:12] Production.INFO: AccountID 99 [2025-01-07 04:50:12] Production.INFO: AccountName LevLending [2025-01-07 04:50:12] Production.INFO: Checkcustomer [2025-01-07 04:50:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="LevLending" [2025-01-07 04:50:14] Production.INFO: Contact id print CheckCustomer Case===0c3388d2-858d-4ab0-82a5-823938ebfea0 [2025-01-07 04:50:14] Production.INFO: -- count --1 [2025-01-07 04:50:14] Production.INFO: AccountID 53 [2025-01-07 04:50:14] Production.INFO: AccountName Plus Travel Group [2025-01-07 04:50:14] Production.INFO: Checkcustomer [2025-01-07 04:50:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Plus%20Travel%20Group" [2025-01-07 04:50:16] Production.INFO: Contact id print CheckCustomer Case===5f6b39a6-c5bb-485f-9fdd-a6c7a1eccc47 [2025-01-07 04:50:16] Production.INFO: -- count --1 [2025-01-07 04:50:16] Production.INFO: -- Xero Add Inovice -- [2025-01-07 04:50:16] Production.INFO: CheckInvoice xerov2: INV11314 [2025-01-07 04:50:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11314 [2025-01-07 04:50:19] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:50:19] Production.INFO: Invoice SubTotal 1.750000 [2025-01-07 04:50:19] Production.INFO: Invoice DetTotal 1.75 [2025-01-07 04:50:19] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TSFV%20Management%20Corp%20%28Two%20Small%20Fish%29" [2025-01-07 04:50:22] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:50:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:50:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:50:31] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,"Description": "License for a VM-only line",Quantity : 1,UnitAmount : 1.750000,LineAmount : 1.750000} [2025-01-07 04:50:33] Production.INFO: ==== result ===== [2025-01-07 04:50:33] Production.INFO: { "Id": "fcabd357-b3c2-458c-a3c1-7558149965a4", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243433897)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "1ea78e30-1a4f-4d17-a7af-2ede44d6b544", "InvoiceNumber": "INV11314", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.98, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "9833b5c4-71b1-4ca5-9307-986f727c9b62", "ContactStatus": "ACTIVE", "Name": "TSFV Management Corp (Two Small Fish)", "FirstName": "Nazia", "LastName": "Khan", "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(1682945569710+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-05T00:00:00", "Date": "\/Date(1736035200000+0000)\/", "DueDateString": "2025-02-04T00:00:00", "DueDate": "\/Date(1738627200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for a VM-only line", "UnitAmount": 1.75, "TaxType": "TAX020", "TaxAmount": 0.23, "LineAmount": 1.75, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "317de27e-15d1-4cdb-971c-6fe9069aa5b2", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 1.75, "TotalTax": 0.23, "Total": 1.98, "UpdatedDateUTC": "\/Date(1736243433727+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:50:33] Production.INFO: -- Create Invoice id --1ea78e30-1a4f-4d17-a7af-2ede44d6b544 [2025-01-07 04:50:33] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:50:33] Production.INFO: CheckInvoice xerov2: INV11306 [2025-01-07 04:50:33] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11306 [2025-01-07 04:50:36] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:50:36] Production.INFO: Invoice SubTotal 3.000000 [2025-01-07 04:50:36] Production.INFO: Invoice DetTotal 3 [2025-01-07 04:50:36] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Terry%20Anderson" [2025-01-07 04:50:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:50:42] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:50:45] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:50:47] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 303,"Description": "The "You're Overcharging Me" Discount",Quantity : 1,UnitAmount : -7.000000,LineAmount : -7.000000} [2025-01-07 04:50:49] Production.INFO: ==== result ===== [2025-01-07 04:50:49] Production.INFO: { "ErrorNumber": 14, "Type": "PostDataInvalidException", "Message": "Invalid Json data" } [2025-01-07 04:50:49] Production.ERROR: exception 'ErrorException' with message 'Undefined property: stdClass::$Invoices' 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 prope...', '/var/www/html/o...', 0, Array) #1 /var/www/html/onswitch.neon.service/app/lib/XeroV2.php(0): App\Lib\XeroV2->CreateInvoice() #2 /var/www/html/onswitch.neon.service/app/Console/Commands/XeroInvoicePostV2.php(0): App\Lib\XeroV2->addInvoices() #3 [internal function]: App\Console\Commands\XeroInvoicePostV2->fire() #4 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #6 /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)) #7 /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)) #8 /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)) #9 /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)) #10 /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)) #11 /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)) #12 /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)) #13 {main} [2025-01-07 04:50:49] Production.INFO: -- Create Invoice Error --Undefined property: stdClass::$Invoices [2025-01-07 04:50:49] Production.INFO: -- Create Invoice Error -- [2025-01-07 04:50:49] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:50:49] Production.INFO: CheckInvoice xerov2: INV11303 [2025-01-07 04:50:49] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11303 [2025-01-07 04:50:51] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:50:51] Production.INFO: Invoice SubTotal 33.560000 [2025-01-07 04:50:51] Production.INFO: Invoice DetTotal 33.56 [2025-01-07 04:50:51] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Metro%20Toronto%20Collision%20Centre" [2025-01-07 04:50:54] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:50:56] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:50:58] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:51:01] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 12-03-2024 To 01-02-2025",Quantity : 1,UnitAmount : 3.060000,LineAmount : 3.060000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 4,UnitAmount : 7.000000,LineAmount : 28.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (16475609483 - 19 VANLEY CRES NORTH YORK, ON M3J2B7)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 04:51:03] Production.INFO: ==== result ===== [2025-01-07 04:51:03] Production.INFO: { "Id": "7501f00a-dbf9-44dd-81ce-d897d484f7bf", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243463817)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "96568b3c-8e66-46ad-b4f0-b35dc5d44543", "InvoiceNumber": "INV11303", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 37.93, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "639507fe-3c02-40f6-89b2-b3a1c40bc965", "ContactStatus": "ACTIVE", "Name": "Metro Toronto Collision Centre", "FirstName": "Avi", "LastName": "", "EmailAddress": "mtccinc@gmail.com", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "19 Vanley Cres.", "AddressLine2": "", "AddressLine3": "", "AddressLine4": "", "City": "North York", "Region": "ON", "PostalCode": "M3J 2B7", "Country": "Canada", "AttentionTo": "Avi" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(416) 4761593", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "4164761593", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1562268200550+0000)\/", "ContactGroups": [ { "ContactGroupID": "73efd01d-7369-4fa2-a005-8c8239e72e58", "Name": "Benjamin's Customers", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-03T00:00:00", "Date": "\/Date(1735862400000+0000)\/", "DueDateString": "2025-02-02T00:00:00", "DueDate": "\/Date(1738454400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 12-03-2024 To 01-02-2025", "UnitAmount": 3.06, "TaxType": "TAX020", "TaxAmount": 0.40, "LineAmount": 3.06, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "b9f77fe2-5c88-4d77-b1fe-e7b7669eaf1b", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 7.00, "TaxType": "TAX020", "TaxAmount": 3.64, "LineAmount": 28.00, "AccountCode": "203", "Tracking": [], "Quantity": 4.0000, "DiscountRate": 0.00, "LineItemID": "c628ac05-ca47-42aa-b243-ddf2f56864d9", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (16475609483 - 19 VANLEY CRES NORTH YORK, ON M3J2B7)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "22830a27-85fc-4cb9-9dbe-31064f656854", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 33.56, "TotalTax": 4.37, "Total": 37.93, "UpdatedDateUTC": "\/Date(1736243463707+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:51:03] Production.INFO: -- Create Invoice id --96568b3c-8e66-46ad-b4f0-b35dc5d44543 [2025-01-07 04:51:03] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:51:03] Production.INFO: CheckInvoice xerov2: INV11301 [2025-01-07 04:51:03] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11301 [2025-01-07 04:51:06] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:51:06] Production.INFO: Invoice SubTotal 77.500000 [2025-01-07 04:51:06] Production.INFO: Invoice DetTotal 77.5 [2025-01-07 04:51:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="LevLending" [2025-01-07 04:51:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:51:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:51:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:51:17] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (9057608274 - 11 Buttermill Ave. Unit 2 Concord, ON L4K 3X5 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 04:51:20] Production.INFO: ==== result ===== [2025-01-07 04:51:20] Production.INFO: { "Id": "94994a5e-682e-4573-b34c-4eeae40d84a2", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243480040)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "d3de9964-bcd1-4aaf-afa6-42c6f0481d9d", "InvoiceNumber": "INV11301", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 87.58, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "0c3388d2-858d-4ab0-82a5-823938ebfea0", "ContactStatus": "ACTIVE", "Name": "LevLending", "FirstName": "Nick", "LastName": "Levin", "EmailAddress": "Nick-levin@hotmail.com", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "11 Buttermill Ave.", "AddressLine2": "Unit 2", "AddressLine3": "", "AddressLine4": "", "City": "Concord", "Region": "ON", "PostalCode": "L4K 3X5", "Country": "Canada", "AttentionTo": "Nick Levin" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "4168288127", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "(416) 828-8127", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1542138669507+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-02T00:00:00", "Date": "\/Date(1735776000000+0000)\/", "DueDateString": "2025-02-01T00:00:00", "DueDate": "\/Date(1738368000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "f10ecc98-2465-4e0b-b588-e934f740b5ce", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (9057608274 - 11 Buttermill Ave. Unit 2 Concord, ON L4K 3X5 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "d5f159e3-7142-4adc-8044-5ce576825b99", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 77.50, "TotalTax": 10.08, "Total": 87.58, "UpdatedDateUTC": "\/Date(1736243479930+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:51:20] Production.INFO: -- Create Invoice id --d3de9964-bcd1-4aaf-afa6-42c6f0481d9d [2025-01-07 04:51:20] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:51:20] Production.INFO: CheckInvoice xerov2: INV50007 [2025-01-07 04:51:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV50007 [2025-01-07 04:51:23] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:51:23] Production.INFO: ========================== Exception occured ============================= [2025-01-07 04:51:23] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 80' 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 04:51:23] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 04:51:23] Production.INFO: ==2681== Releasing lock... [2025-01-07 04:51:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10421 #Stops# [2025-01-07 04:51:23] Production.INFO: 32.25 MB #Memory Used#