[2025-01-07 06:14:03] Production.INFO: -- Xero Api Check -- [2025-01-07 06:14: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] => 854 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.832959 [namelookup_time] => 0.539324 [connect_time] => 0.549544 [pretransfer_time] => 0.759148 [size_upload] => 82 [size_download] => 2755 [speed_download] => 3307 [speed_upload] => 98 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.83293 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 43698 ) [2025-01-07 06:14:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDg0NDQsImV4cCI6MTczNjI0ODc0NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ4NDQ0LCJhdF9oYXNoIjoia01TbHNMS1NSa1RCSHd1N2hGRUxNUSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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NCwieGVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.fdEbdCMhDLAapgtfuCchY8C6qaaXaALGjUbeGYU5SMnHO-qTQhjgb8BADy7I6WXu4xtD21iMVZ-xyV0_T78ojF7cWmKnYVHazGoRrM8aJH-YXIR1vuTDI03jaDyBEdjgFryXFWc-sX4DdxRK9sIyd7ISKRxaGPbrzWVbVhHA6hPV-HOflV2hiVzAmJ7ndwKn4eVnrkX-1RmTtgmdjlVmkakOsRGBjPKe1d0D2iw71oSSV7KlwqVOXcFzWiNdo8CWSt2f4vF_CNuMZleTxWiS7QWPcZnaTC_8v_W-9gMU964l6TO4z3NBAHeZ3MQZha99rhzQOrfkBau22WPBBUX88w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => AS1GqGslq46YH1f_4o8jd27IMidrx5TYOJUXVhxeKmY [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:14:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2Nzc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9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.fdEbdCMhDLAapgtfuCchY8C6qaaXaALGjUbeGYU5SMnHO-qTQhjgb8BADy7I6WXu4xtD21iMVZ-xyV0_T78ojF7cWmKnYVHazGoRrM8aJH-YXIR1vuTDI03jaDyBEdjgFryXFWc-sX4DdxRK9sIyd7ISKRxaGPbrzWVbVhHA6hPV-HOflV2hiVzAmJ7ndwKn4eVnrkX-1RmTtgmdjlVmkakOsRGBjPKe1d0D2iw71oSSV7KlwqVOXcFzWiNdo8CWSt2f4vF_CNuMZleTxWiS7QWPcZnaTC_8v_W-9gMU964l6TO4z3NBAHeZ3MQZha99rhzQOrfkBau22WPBBUX88w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => AS1GqGslq46YH1f_4o8jd27IMidrx5TYOJUXVhxeKmY [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:14:04] Production.INFO: AccountID 45 [2025-01-07 06:14:04] Production.INFO: AccountName Metro Toronto Collision Centre [2025-01-07 06:14:04] Production.INFO: Checkcustomer [2025-01-07 06:14:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Metro%20Toronto%20Collision%20Centre" [2025-01-07 06:14:07] Production.INFO: Contact id print CheckCustomer Case===639507fe-3c02-40f6-89b2-b3a1c40bc965 [2025-01-07 06:14:07] Production.INFO: -- count --1 [2025-01-07 06:14:07] Production.INFO: AccountID 85 [2025-01-07 06:14:07] Production.INFO: AccountName MK TAXPLUS LTD [2025-01-07 06:14:07] Production.INFO: Checkcustomer [2025-01-07 06:14:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="MK%20TAXPLUS%20LTD" [2025-01-07 06:14:10] Production.INFO: Contact id print CheckCustomer Case===b2a980df-8333-4b5e-8b50-c1d40e826ba3 [2025-01-07 06:14:10] Production.INFO: -- count --1 [2025-01-07 06:14:10] Production.INFO: AccountID 237 [2025-01-07 06:14:10] Production.INFO: AccountName Natural Insect Control [2025-01-07 06:14:10] Production.INFO: Checkcustomer [2025-01-07 06:14:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-01-07 06:14:12] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-01-07 06:14:12] Production.INFO: -- count --1 [2025-01-07 06:14:12] Production.INFO: AccountID 237 [2025-01-07 06:14:12] Production.INFO: AccountName Natural Insect Control [2025-01-07 06:14:12] Production.INFO: Checkcustomer [2025-01-07 06:14:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-01-07 06:14:15] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-01-07 06:14:15] Production.INFO: -- count --1 [2025-01-07 06:14:15] Production.INFO: AccountID 237 [2025-01-07 06:14:15] Production.INFO: AccountName Natural Insect Control [2025-01-07 06:14:15] Production.INFO: Checkcustomer [2025-01-07 06:14:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-01-07 06:14:17] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-01-07 06:14:17] Production.INFO: -- count --1 [2025-01-07 06:14:17] Production.INFO: AccountID 237 [2025-01-07 06:14:17] Production.INFO: AccountName Natural Insect Control [2025-01-07 06:14:17] Production.INFO: Checkcustomer [2025-01-07 06:14:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-01-07 06:14:20] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-01-07 06:14:20] Production.INFO: -- count --1 [2025-01-07 06:14:20] Production.INFO: AccountID 237 [2025-01-07 06:14:20] Production.INFO: AccountName Natural Insect Control [2025-01-07 06:14:20] Production.INFO: Checkcustomer [2025-01-07 06:14:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-01-07 06:14:23] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-01-07 06:14:23] Production.INFO: -- count --1 [2025-01-07 06:14:23] Production.INFO: AccountID 237 [2025-01-07 06:14:23] Production.INFO: AccountName Natural Insect Control [2025-01-07 06:14:23] Production.INFO: Checkcustomer [2025-01-07 06:14:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-01-07 06:14:25] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-01-07 06:14:25] Production.INFO: -- count --1 [2025-01-07 06:14:25] Production.INFO: -- Xero Add Inovice -- [2025-01-07 06:14:25] Production.INFO: CheckInvoice xerov2: INV11145 [2025-01-07 06:14:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11145 [2025-01-07 06:14:28] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:14:28] Production.INFO: Invoice SubTotal 34.140000 [2025-01-07 06:14:28] Production.INFO: Invoice DetTotal 34.14 [2025-01-07 06:14:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Metro%20Toronto%20Collision%20Centre" [2025-01-07 06:14:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:14:33] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:14:36] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:14:38] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-03-2024 To 12-02-2024",Quantity : 1,UnitAmount : 3.640000,LineAmount : 3.640000},{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 06:14:41] Production.INFO: ==== result ===== [2025-01-07 06:14:41] Production.INFO: { "Id": "2df7db0a-10aa-4b0b-a153-86e57d9c3b37", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736248481748)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "52a27096-4673-4e80-b045-b5afc08f06fc", "InvoiceNumber": "INV11145", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 38.58, "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": "2024-12-03T00:00:00", "Date": "\/Date(1733184000000+0000)\/", "DueDateString": "2025-01-02T00:00:00", "DueDate": "\/Date(1735776000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-03-2024 To 12-02-2024", "UnitAmount": 3.64, "TaxType": "TAX020", "TaxAmount": 0.47, "LineAmount": 3.64, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "d485bc6f-d466-494f-8e45-345b5e97f48e", "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": "76f4d8f1-e664-40b6-a754-db725728eb82", "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": "f225bede-34f6-4300-a131-317a77d138ae", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 34.14, "TotalTax": 4.44, "Total": 38.58, "UpdatedDateUTC": "\/Date(1736248481700+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:14:41] Production.INFO: -- Create Invoice id --52a27096-4673-4e80-b045-b5afc08f06fc [2025-01-07 06:14:41] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:14:41] Production.INFO: CheckInvoice xerov2: INV11252 [2025-01-07 06:14:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11252 [2025-01-07 06:14:44] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:14:44] Production.INFO: Invoice SubTotal 14.490000 [2025-01-07 06:14:44] Production.INFO: Invoice DetTotal 14.49 [2025-01-07 06:14:44] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="MK%20TAXPLUS%20LTD" [2025-01-07 06:14:46] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:14:49] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:14:51] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:14:54] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-21-2024 To 12-20-2024",Quantity : 1,UnitAmount : 3.990000,LineAmount : 3.990000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 2,UnitAmount : 4.000000,LineAmount : 8.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19057936600 - 45 BRAMALEA RD STE 202 BRAMPTON, ON L6T2W4)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 06:14:56] Production.INFO: ==== result ===== [2025-01-07 06:14:56] Production.INFO: { "Id": "a0301224-3747-44a7-a958-9c56914a7a5f", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736248496530)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "f1571a9d-e252-4415-a05e-e573b0eebfc8", "InvoiceNumber": "INV11252", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 16.38, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b2a980df-8333-4b5e-8b50-c1d40e826ba3", "ContactStatus": "ACTIVE", "Name": "MK TAXPLUS LTD", "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(1533070484890+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-21T00:00:00", "Date": "\/Date(1734739200000+0000)\/", "DueDateString": "2025-01-20T00:00:00", "DueDate": "\/Date(1737331200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-21-2024 To 12-20-2024", "UnitAmount": 3.99, "TaxType": "TAX020", "TaxAmount": 0.52, "LineAmount": 3.99, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "1094e260-4e27-4f77-adcf-5e7be3600e8a", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 4.00, "TaxType": "TAX020", "TaxAmount": 1.04, "LineAmount": 8.00, "AccountCode": "203", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "47f2824a-892b-4408-b686-7c14439471bf", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19057936600 - 45 BRAMALEA RD STE 202 BRAMPTON, ON L6T2W4)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "368b9add-c27d-4d2d-b64e-2fb3db68b845", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 14.49, "TotalTax": 1.89, "Total": 16.38, "UpdatedDateUTC": "\/Date(1736248496500+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:14:56] Production.INFO: -- Create Invoice id --f1571a9d-e252-4415-a05e-e573b0eebfc8 [2025-01-07 06:14:56] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:14:56] Production.INFO: CheckInvoice xerov2: INV10561 [2025-01-07 06:14:56] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10561 [2025-01-07 06:14:58] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:14:58] Production.INFO: ========================== Exception occured ============================= [2025-01-07 06:14:58] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 99' 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 06:14:58] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 06:14:58] Production.INFO: ==10073== Releasing lock... [2025-01-07 06:14:58] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10446 #Stops# [2025-01-07 06:14:58] Production.INFO: 30.75 MB #Memory Used#