[2025-01-07 06:27:03] Production.INFO: -- Xero Api Check -- [2025-01-07 06:27: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] => 858 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.299577 [namelookup_time] => 0.548499 [connect_time] => 0.640474 [pretransfer_time] => 1.048349 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2119 [speed_upload] => 63 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.299519 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.72.248.213 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 57224 ) [2025-01-07 06:27:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDkyMjQsImV4cCI6MTczNjI0OTUyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ5MjI0LCJhdF9oYXNoIjoiRHVGUFplaFd4Y3V5dFdKR0lJN1pQUSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1Mm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yaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.SpPd2SODIGE3yje8OGWOfoK6V3Kl4-0ItoOOxCGZgrwjWtSLA2tRv_D_wDlWUqJ4evEyCKrRa00JWoaQPcvPrM8De5Xw9fs6hQ6mHGC9tPM0ij6n_DzcAyS2RQJTcWe6-vuOnEIuRthdUWwBuyzDifwx8jhpluVAX6m6o0O9dXOQtx1pRi-VFUcuhfn-xnDNBkoh2PLQmL9MM7wI8qG9UTuZsRmNiORKnSEnzLV0jveIbim_Kq9RaJFVBeScXaV0QBI9VSi69qo0zkAHGyesLRudfRNsIsWOMiWO9ma7P6dA6sXXO92Ljp_Nn49hCKuQqLHC8QcUbkCMT4I8hC8j9A [expires_in] => 1800 [token_type] => Bearer [refresh_token] => cZr0S9i6YeCZpkcSxLg3PIpoxJEsaY9F9YPzNdT0Qno [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:27:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2Nzcy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jZXNzIl0sImFtciI6WyJwd2QiXX0.SpPd2SODIGE3yje8OGWOfoK6V3Kl4-0ItoOOxCGZgrwjWtSLA2tRv_D_wDlWUqJ4evEyCKrRa00JWoaQPcvPrM8De5Xw9fs6hQ6mHGC9tPM0ij6n_DzcAyS2RQJTcWe6-vuOnEIuRthdUWwBuyzDifwx8jhpluVAX6m6o0O9dXOQtx1pRi-VFUcuhfn-xnDNBkoh2PLQmL9MM7wI8qG9UTuZsRmNiORKnSEnzLV0jveIbim_Kq9RaJFVBeScXaV0QBI9VSi69qo0zkAHGyesLRudfRNsIsWOMiWO9ma7P6dA6sXXO92Ljp_Nn49hCKuQqLHC8QcUbkCMT4I8hC8j9A [expires_in] => 1800 [token_type] => Bearer [refresh_token] => cZr0S9i6YeCZpkcSxLg3PIpoxJEsaY9F9YPzNdT0Qno [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:27:04] Production.INFO: AccountID 3 [2025-01-07 06:27:04] Production.INFO: AccountName Tundra [2025-01-07 06:27:04] Production.INFO: Checkcustomer [2025-01-07 06:27:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Tundra" [2025-01-07 06:27:08] Production.INFO: Contact id print CheckCustomer Case===623680fb-29d2-4940-8787-6a04edc9b023 [2025-01-07 06:27:08] Production.INFO: -- count --1 [2025-01-07 06:27:08] Production.INFO: AccountID 17 [2025-01-07 06:27:08] Production.INFO: AccountName UNIGLOBE Bon Voyage Travel [2025-01-07 06:27:08] Production.INFO: Checkcustomer [2025-01-07 06:27:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Bon%20Voyage%20Travel" [2025-01-07 06:27:11] Production.INFO: Contact id print CheckCustomer Case===b3f98fb9-7d83-4a9d-a9db-618acdfb5df3 [2025-01-07 06:27:11] Production.INFO: -- count --1 [2025-01-07 06:27:11] Production.INFO: AccountID 4 [2025-01-07 06:27:11] Production.INFO: AccountName UNIGLOBE Canada [2025-01-07 06:27:11] Production.INFO: Checkcustomer [2025-01-07 06:27:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Canada" [2025-01-07 06:27:13] Production.INFO: Contact id print CheckCustomer Case===d965b2fe-ffb5-4359-bc08-f6a098234349 [2025-01-07 06:27:13] Production.INFO: -- count --1 [2025-01-07 06:27:13] Production.INFO: AccountID 4 [2025-01-07 06:27:13] Production.INFO: AccountName UNIGLOBE Canada [2025-01-07 06:27:13] Production.INFO: Checkcustomer [2025-01-07 06:27:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Canada" [2025-01-07 06:27:16] Production.INFO: Contact id print CheckCustomer Case===d965b2fe-ffb5-4359-bc08-f6a098234349 [2025-01-07 06:27:16] Production.INFO: -- count --1 [2025-01-07 06:27:16] Production.INFO: AccountID 4 [2025-01-07 06:27:16] Production.INFO: AccountName UNIGLOBE Canada [2025-01-07 06:27:16] Production.INFO: Checkcustomer [2025-01-07 06:27:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Canada" [2025-01-07 06:27:19] Production.INFO: Contact id print CheckCustomer Case===d965b2fe-ffb5-4359-bc08-f6a098234349 [2025-01-07 06:27:19] Production.INFO: -- count --1 [2025-01-07 06:27:19] Production.INFO: AccountID 4 [2025-01-07 06:27:19] Production.INFO: AccountName UNIGLOBE Canada [2025-01-07 06:27:19] Production.INFO: Checkcustomer [2025-01-07 06:27:19] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Canada" [2025-01-07 06:27:21] Production.INFO: Contact id print CheckCustomer Case===d965b2fe-ffb5-4359-bc08-f6a098234349 [2025-01-07 06:27:21] Production.INFO: -- count --1 [2025-01-07 06:27:21] Production.INFO: AccountID 4 [2025-01-07 06:27:21] Production.INFO: AccountName UNIGLOBE Canada [2025-01-07 06:27:21] Production.INFO: Checkcustomer [2025-01-07 06:27:21] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Canada" [2025-01-07 06:27:23] Production.INFO: Contact id print CheckCustomer Case===d965b2fe-ffb5-4359-bc08-f6a098234349 [2025-01-07 06:27:23] Production.INFO: -- count --1 [2025-01-07 06:27:23] Production.INFO: AccountID 4 [2025-01-07 06:27:23] Production.INFO: AccountName UNIGLOBE Canada [2025-01-07 06:27:23] Production.INFO: Checkcustomer [2025-01-07 06:27:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Canada" [2025-01-07 06:27:26] Production.INFO: Contact id print CheckCustomer Case===d965b2fe-ffb5-4359-bc08-f6a098234349 [2025-01-07 06:27:26] Production.INFO: -- count --1 [2025-01-07 06:27:26] Production.INFO: AccountID 43 [2025-01-07 06:27:26] Production.INFO: AccountName Wattpad [2025-01-07 06:27:26] Production.INFO: Checkcustomer [2025-01-07 06:27:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Wattpad" [2025-01-07 06:27:28] Production.INFO: Contact id print CheckCustomer Case===8c586c5d-b401-441c-8cc4-7ca5911a8c28 [2025-01-07 06:27:28] Production.INFO: -- count --1 [2025-01-07 06:27:28] Production.INFO: AccountID 209 [2025-01-07 06:27:28] Production.INFO: AccountName Workside Early Childhood Education Centre [2025-01-07 06:27:28] Production.INFO: Checkcustomer [2025-01-07 06:27:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Workside%20Early%20Childhood%20Education%20Centre" [2025-01-07 06:27:31] Production.INFO: Contact id print CheckCustomer Case===40cecbae-263a-4b0c-adbf-5350531feed1 [2025-01-07 06:27:31] Production.INFO: -- count --1 [2025-01-07 06:27:31] Production.INFO: -- Xero Add Inovice -- [2025-01-07 06:27:31] Production.INFO: CheckInvoice xerov2: INV11122 [2025-01-07 06:27:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11122 [2025-01-07 06:27:34] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:27:34] Production.INFO: Invoice SubTotal 256.470000 [2025-01-07 06:27:34] Production.INFO: Invoice DetTotal 256.47 [2025-01-07 06:27:34] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Tundra" [2025-01-07 06:27:37] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:27:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:27:43] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:27:45] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-01-2024 To 11-30-2024",Quantity : 1,UnitAmount : 6.030000,LineAmount : 6.030000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service - Bonded - 2 Circuits (251 Laurier Ave West, Suite 1050, Ottawa, ON K1P 5J6). 36 month agreement ending April 19, 2021.",Quantity : 1,UnitAmount : 240.440000,LineAmount : 240.440000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Fax Adapter (Toronto)",Quantity : 2,UnitAmount : 5.000000,LineAmount : 10.000000} [2025-01-07 06:27:48] Production.INFO: ==== result ===== [2025-01-07 06:27:48] Production.INFO: { "Id": "8e5a1edf-c82e-41ee-b62e-bf74d9edd516", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736249268711)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "4dbbce57-65bb-4367-ba09-7f229b826744", "InvoiceNumber": "INV11122", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 289.81, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "623680fb-29d2-4940-8787-6a04edc9b023", "ContactStatus": "ACTIVE", "Name": "Tundra", "FirstName": "Tundra", "LastName": "Technical", "EmailAddress": "ap@tundratechnical.ca", "BankAccountDetails": "", "AccountsReceivableTaxType": "OUTPUT", "AccountsPayableTaxType": "OUTPUT", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "", "AttentionTo": "" }, { "AddressType": "POBOX", "AddressLine1": "1 Eglinton Ave. East", "AddressLine2": "Suite 705", "AddressLine3": "", "AddressLine4": "", "City": "Toronto", "Region": "ON", "PostalCode": "M4P 3A1", "Country": "", "AttentionTo": "Tundra Technical" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "18669886372", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "18669886372", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "6477607778", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1617722615863+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "DefaultCurrency": "CAD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-01T00:00:00", "Date": "\/Date(1733011200000+0000)\/", "DueDateString": "2024-12-31T00:00:00", "DueDate": "\/Date(1735603200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-01-2024 To 11-30-2024", "UnitAmount": 6.03, "TaxType": "TAX020", "TaxAmount": 0.78, "LineAmount": 6.03, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4325ac4b-6749-4292-83c0-420922e22000", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "VDSL Internet Service - Bonded - 2 Circuits (251 Laurier Ave West, Suite 1050, Ottawa, ON K1P 5J6). 36 month agreement ending April 19, 2021.", "UnitAmount": 240.44, "TaxType": "TAX020", "TaxAmount": 31.26, "LineAmount": 240.44, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "9dcc5717-2348-474d-8c72-7141e7ceeead", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Fax Adapter (Toronto)", "UnitAmount": 5.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "bfdf5cbb-30e7-4467-99cc-02397a3115bf", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 256.47, "TotalTax": 33.34, "Total": 289.81, "UpdatedDateUTC": "\/Date(1736249268633+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:27:48] Production.INFO: -- Create Invoice id --4dbbce57-65bb-4367-ba09-7f229b826744 [2025-01-07 06:27:48] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:27:48] Production.INFO: CheckInvoice xerov2: INV11248 [2025-01-07 06:27:48] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11248 [2025-01-07 06:27:51] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:27:51] Production.INFO: Invoice SubTotal 76.220000 [2025-01-07 06:27:51] Production.INFO: Invoice DetTotal 76.22 [2025-01-07 06:27:51] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="UNIGLOBE%20Bon%20Voyage%20Travel" [2025-01-07 06:27:53] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:27:55] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:27:58] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:28:00] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-21-2024 To 12-20-2024",Quantity : 1,UnitAmount : 9.220000,LineAmount : 9.220000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 8,UnitAmount : 10.000000,LineAmount : 80.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (1448 LAWRENCE AVE E STE 303 TORONTO, ON M4A2S8)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Digital Fax (4164255888)",Quantity : 1,UnitAmount : 5.000000,LineAmount : 5.000000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Loyalty discount - $20.50 off monthly bills, never expires (XR)",Quantity : 1,UnitAmount : -20.500000,LineAmount : -20.500000} [2025-01-07 06:28:03] Production.INFO: ==== result ===== [2025-01-07 06:28:03] Production.INFO: { "Id": "42046e70-87af-42a9-b5de-87ffb86ca01b", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736249283086)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "2acb594a-28be-463c-8090-df89376ebc7b", "InvoiceNumber": "INV11248", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 86.13, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b3f98fb9-7d83-4a9d-a9db-618acdfb5df3", "ContactStatus": "ACTIVE", "Name": "Uniglobe Bon Voyage Travel", "FirstName": "Rose", "LastName": "Chin", "EmailAddress": "rose@ubvt.ca", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "", "AttentionTo": "" }, { "AddressType": "POBOX", "AddressLine1": "1448 Lawrence Ave. East", "AddressLine2": "Suite 303", "AddressLine3": "", "AddressLine4": "", "City": "North York", "Region": "ON", "PostalCode": "M4A2V6", "Country": "Canada", "AttentionTo": "Rose Chin" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(416) 4255885", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "4164255885,4202", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1629352418927+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "DefaultCurrency": "CAD", "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": 9.22, "TaxType": "TAX020", "TaxAmount": 1.20, "LineAmount": 9.22, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7cf603fb-4207-42a9-9874-b92d4943438c", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 10.40, "LineAmount": 80.00, "AccountCode": "203", "Tracking": [], "Quantity": 8.0000, "DiscountRate": 0.00, "LineItemID": "c328a02d-4d2e-48a6-9216-9687c4376f50", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (1448 LAWRENCE AVE E STE 303 TORONTO, ON M4A2S8)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4a7741e4-44cb-48d7-b30d-9407bfbe163c", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Digital Fax (4164255888)", "UnitAmount": 5.00, "TaxType": "TAX020", "TaxAmount": 0.65, "LineAmount": 5.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "d3464315-ec58-4e11-bc08-c6acb81d7988", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Loyalty discount - $20.50 off monthly bills, never expires (XR)", "UnitAmount": -20.50, "TaxType": "TAX020", "TaxAmount": -2.67, "LineAmount": -20.50, "AccountCode": "303", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "5915238d-324f-4800-a40e-301fb4c6efe1", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 76.22, "TotalTax": 9.91, "Total": 86.13, "UpdatedDateUTC": "\/Date(1736249283023+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:28:03] Production.INFO: -- Create Invoice id --2acb594a-28be-463c-8090-df89376ebc7b [2025-01-07 06:28:03] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:28:03] Production.INFO: CheckInvoice xerov2: INV10722 [2025-01-07 06:28:03] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10722 [2025-01-07 06:28:05] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:28:05] Production.INFO: ========================== Exception occured ============================= [2025-01-07 06:28:05] Production.ERROR: exception 'ErrorException' with message 'Undefined offset: 89' 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:28:05] Production.INFO: ========================== Exception updated in job and email sent ============================= [2025-01-07 06:28:05] Production.INFO: ==11292== Releasing lock... [2025-01-07 06:28:05] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10450 #Stops# [2025-01-07 06:28:05] Production.INFO: 30.75 MB #Memory Used#