[2025-03-20 09:13:04] Production.INFO: -- Xero Api Check -- [2025-03-20 09:13: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] => 854 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.22018 [namelookup_time] => 0.528901 [connect_time] => 0.604776 [pretransfer_time] => 1.006228 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2257 [speed_upload] => 67 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.220087 [redirect_time] => 0 [redirect_url] => [primary_ip] => 2.21.67.50 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 39468 ) [2025-03-20 09:13:05] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3NDI0NzYzODUsImV4cCI6MTc0MjQ3NjY4NSwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzQyNDc2Mzg1LCJhdF9oYXNoIjoiNTJTa0pZSDRJRlJfMmVUak1scUJDUSIsInN1YiI6Ijc1NGMxN2Q3MTA0YTUxODViYjEyZmM5ODFiN2VlMzliIiwiYXV0aF90aW1lIjoxNzQyNDY2MzA1LCJ4ZXJvX3VzZXJpZCI6IjFiOGM2ODExLTJmMGItNGU3Mi05Y2JhLTY5ZDVlM2RmOTEyYyIsImdsb2JhbF9zZXNzaW9uX2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiLCJ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2VyaWQiOiIxYjhjNjgxMS0yZjBiLTRlNzItOWNiYS02OWQ1ZTNkZjkxMmMiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6IjllYWZkYTEzZjk1YTQ2YmM4MjZjNzg3YjFlNGM1ZjUwIiwic2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiLCJqdGkiOiIyNUNEQkY1RjBBNTRGMjlDNjBDNUE2RjU4Qzg3NzMyQSIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiMGZlNDU1NWEtNmNkMy00YjFkLTljNjEtMzAzMjBmMjBmZGFkIiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.gxxKNk99Gj3DyoMVTZgadrYdHEW9gaoDQ0f0CsgV2Q6yxqN2ky12U1V5xSli_xu7dgvBUzD5tzcaEVj80pEMQ3Kek4quxjBzQudb8RzS8SLLAYn3rAFk4bPRU_WDlxbm6rHXg1o6JStNYpmb1KQ7qjxmVZ5MyyvPSDqrlcXEm6_Utp1MzhAll9nrx_wHvKO8BHFK2hrLEzggUNWfGiRqeIWo5aln2oKbYtEQjP5PdYW_mRQxB92lusxh3VDyf0B0yBlfBhWS_CK-_JSuxz40sAv4CJ4zh5d32B2yOeN7jN0PV0kqqXresnm3pWLwvplpyexXw-dD96JbgxeTBopekg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 2gPajXBaIyV-rAnfy89yw1QAfTthkxV4Y6DZGfqsfsg [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-03-20 09:13:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzA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sImFtciI6WyJwd2QiXX0.gxxKNk99Gj3DyoMVTZgadrYdHEW9gaoDQ0f0CsgV2Q6yxqN2ky12U1V5xSli_xu7dgvBUzD5tzcaEVj80pEMQ3Kek4quxjBzQudb8RzS8SLLAYn3rAFk4bPRU_WDlxbm6rHXg1o6JStNYpmb1KQ7qjxmVZ5MyyvPSDqrlcXEm6_Utp1MzhAll9nrx_wHvKO8BHFK2hrLEzggUNWfGiRqeIWo5aln2oKbYtEQjP5PdYW_mRQxB92lusxh3VDyf0B0yBlfBhWS_CK-_JSuxz40sAv4CJ4zh5d32B2yOeN7jN0PV0kqqXresnm3pWLwvplpyexXw-dD96JbgxeTBopekg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 2gPajXBaIyV-rAnfy89yw1QAfTthkxV4Y6DZGfqsfsg [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-03-20 09:13:05] Production.INFO: AccountID 129 [2025-03-20 09:13:05] Production.INFO: AccountName Compass ELC - Apsley [2025-03-20 09:13:05] Production.INFO: Checkcustomer [2025-03-20 09:13:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Compass%20ELC%20-%20Apsley" [2025-03-20 09:13:08] Production.INFO: Contact id print CheckCustomer Case===b88606e0-7c2f-487f-9327-5daeaa7e65c2 [2025-03-20 09:13:08] Production.INFO: -- count --1 [2025-03-20 09:13:08] Production.INFO: AccountID 242 [2025-03-20 09:13:08] Production.INFO: AccountName Ball Construction [2025-03-20 09:13:08] Production.INFO: Checkcustomer [2025-03-20 09:13:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Ball%20Construction" [2025-03-20 09:13:11] Production.INFO: Contact id print CheckCustomer Case===b0bd4d3e-7d9a-4f7f-a743-aafe2ee02798 [2025-03-20 09:13:11] Production.INFO: -- count --1 [2025-03-20 09:13:11] Production.INFO: AccountID 39 [2025-03-20 09:13:11] Production.INFO: AccountName Riavera [2025-03-20 09:13:11] Production.INFO: Checkcustomer [2025-03-20 09:13:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Riavera" [2025-03-20 09:13:14] Production.INFO: Contact id print CheckCustomer Case===e55c0831-3c53-4fcf-8b75-89133eb5af09 [2025-03-20 09:13:14] Production.INFO: -- count --1 [2025-03-20 09:13:14] Production.INFO: -- Xero Add Inovice -- [2025-03-20 09:13:14] Production.INFO: CheckInvoice xerov2: INV11429 [2025-03-20 09:13:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11429 [2025-03-20 09:13:17] Production.INFO: Check Invoice Id XEROV20 [2025-03-20 09:13:17] Production.INFO: Invoice SubTotal 83.460000 [2025-03-20 09:13:17] Production.INFO: Invoice DetTotal 83.46 [2025-03-20 09:13:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Compass%20ELC%20-%20Apsley" [2025-03-20 09:13:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-03-20 09:13:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-03-20 09:13:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-03-20 09:13:29] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service 50x10 (238 Burleigh St, Apsley, ON K0L 1A0)",Quantity : 1,UnitAmount : 83.460000,LineAmount : 83.460000} [2025-03-20 09:13:32] Production.INFO: ==== result ===== [2025-03-20 09:13:32] Production.INFO: { "Id": "3fdba472-5588-4439-b124-22605ad53484", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1742476412519)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "86cabe59-9a6e-43c8-8c2c-573494591704", "InvoiceNumber": "INV11429", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 94.31, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b88606e0-7c2f-487f-9327-5daeaa7e65c2", "ContactStatus": "ACTIVE", "Name": "Compass ELC - Apsley", "FirstName": "Tammy", "LastName": "Phelan", "EmailAddress": "ap@compasselc.com", "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(1594225462623+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-28T00:00:00", "Date": "\/Date(1738022400000+0000)\/", "DueDateString": "2025-02-27T00:00:00", "DueDate": "\/Date(1740614400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "VDSL Internet Service 50x10 (238 Burleigh St, Apsley, ON K0L 1A0)", "UnitAmount": 83.46, "TaxType": "TAX020", "TaxAmount": 10.85, "LineAmount": 83.46, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "a215abce-9a01-4829-9329-4e4618bd8e19", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 83.46, "TotalTax": 10.85, "Total": 94.31, "UpdatedDateUTC": "\/Date(1742476412393+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-03-20 09:13:32] Production.INFO: -- Create Invoice id --86cabe59-9a6e-43c8-8c2c-573494591704 [2025-03-20 09:13:32] Production.INFO: -- Create Invoice Done -- [2025-03-20 09:13:32] Production.INFO: CheckInvoice xerov2: INV10865 [2025-03-20 09:13:32] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10865 [2025-03-20 09:13:35] Production.INFO: Check Invoice Id XEROV20 [2025-03-20 09:13:35] Production.INFO: Invoice SubTotal 1615.760000 [2025-03-20 09:13:35] Production.INFO: Invoice DetTotal 1615.76 [2025-03-20 09:13:35] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Ball%20Construction" [2025-03-20 09:13:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-03-20 09:13:42] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-03-20 09:13:44] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-03-20 09:13:47] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (06-18-2024 to 07-08-2024)",Quantity : 25,UnitAmount : 8.700000,LineAmount : 206.620000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (07-08-2024 to 08-08-2024)",Quantity : 25,UnitAmount : 12.990000,LineAmount : 308.510000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (08-08-2024 to 09-08-2024)",Quantity : 25,UnitAmount : 12.990000,LineAmount : 308.510000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (09-08-2024 to 10-08-2024)",Quantity : 25,UnitAmount : 12.990000,LineAmount : 308.510000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 5.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (10-08-2024 to 11-08-2024)",Quantity : 25,UnitAmount : 12.990000,LineAmount : 308.510000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (06-18-2024 to 07-08-2024)",Quantity : 1,UnitAmount : 6.670000,LineAmount : 6.670000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (07-08-2024 to 08-08-2024)",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (08-08-2024 to 09-08-2024)",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (09-08-2024 to 10-08-2024)",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (10-08-2024 to 11-08-2024)",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "CloudPhone.ONE Softphone add-on (06-18-2024 to 07-08-2024)",Quantity : 25,UnitAmount : 0.670000,LineAmount : 16.750000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "CloudPhone.ONE Softphone add-on (07-08-2024 to 08-08-2024)",Quantity : 25,UnitAmount : 1.000000,LineAmount : 25.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "CloudPhone.ONE Softphone add-on (08-08-2024 to 09-08-2024)",Quantity : 25,UnitAmount : 1.000000,LineAmount : 25.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "CloudPhone.ONE Softphone add-on (09-08-2024 to 10-08-2024)",Quantity : 25,UnitAmount : 1.000000,LineAmount : 25.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "CloudPhone.ONE Softphone add-on (10-08-2024 to 11-08-2024)",Quantity : 25,UnitAmount : 1.000000,LineAmount : 25.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (5197425851 - 5 Shirley Ave, Kitchener, ON N2B 2E6) (06-18-2024 to 07-08-2024)",Quantity : 1,UnitAmount : 1.680000,LineAmount : 1.680000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (07-08-2024 to 08-08-2024) ",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (08-08-2024 to 09-08-2024)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (09-08-2024 to 10-08-2024)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (10-08-2024 to 11-08-2024)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-03-20 09:13:50] Production.INFO: ==== result ===== [2025-03-20 09:13:50] Production.INFO: { "Id": "bbc3f600-9468-44a0-8fb0-f534989751ce", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1742476430782)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "00000000-0000-0000-0000-000000000000", "InvoiceNumber": "INV10865", "Payments": [], "CreditNotes": [], "Prepayments": [], "Overpayments": [], "TotalDiscount": 75.84, "IsDiscounted": true, "InvoiceAddresses": [], "HasErrors": true, "InvoicePaymentServices": [], "Contact": { "ContactID": "b0bd4d3e-7d9a-4f7f-a743-aafe2ee02798", "Addresses": [], "Phones": [], "ContactGroups": [], "ContactPersons": [], "HasValidationErrors": false, "ValidationErrors": [] }, "DateString": "2024-10-10T00:00:00", "Date": "\/Date(1728518400000+0000)\/", "DueDateString": "2024-11-09T00:00:00", "DueDate": "\/Date(1731110400000+0000)\/", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for an Unlimited Canada/US Cloud Phone extension (06-18-2024 to 07-08-2024)", "UnitAmount": 8.700000, "TaxType": "TAX020", "TaxAmount": 26.86, "LineAmount": 206.62, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (07-08-2024 to 08-08-2024)", "UnitAmount": 12.990000, "TaxType": "TAX020", "TaxAmount": 40.11, "LineAmount": 308.51, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (08-08-2024 to 09-08-2024)", "UnitAmount": 12.990000, "TaxType": "TAX020", "TaxAmount": 40.11, "LineAmount": 308.51, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (09-08-2024 to 10-08-2024)", "UnitAmount": 12.990000, "TaxType": "TAX020", "TaxAmount": 40.11, "LineAmount": 308.51, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (10-08-2024 to 11-08-2024)", "UnitAmount": 12.990000, "TaxType": "TAX020", "TaxAmount": 40.11, "LineAmount": 308.51, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 5.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "ValidationErrors": [] }, { "Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (06-18-2024 to 07-08-2024)", "UnitAmount": 6.670000, "TaxType": "TAX020", "TaxAmount": 0.87, "LineAmount": 6.67, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (07-08-2024 to 08-08-2024)", "UnitAmount": 10.000000, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (08-08-2024 to 09-08-2024)", "UnitAmount": 10.000000, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (09-08-2024 to 10-08-2024)", "UnitAmount": 10.000000, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Fax-to-Email service, with ability to send faxes via CloudPhone.ONE admin portal (10-08-2024 to 11-08-2024)", "UnitAmount": 10.000000, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "CloudPhone.ONE Softphone add-on (06-18-2024 to 07-08-2024)", "UnitAmount": 0.670000, "TaxType": "TAX020", "TaxAmount": 2.18, "LineAmount": 16.75, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "CloudPhone.ONE Softphone add-on (07-08-2024 to 08-08-2024)", "UnitAmount": 1.000000, "TaxType": "TAX020", "TaxAmount": 3.25, "LineAmount": 25.00, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "CloudPhone.ONE Softphone add-on (08-08-2024 to 09-08-2024)", "UnitAmount": 1.000000, "TaxType": "TAX020", "TaxAmount": 3.25, "LineAmount": 25.00, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "CloudPhone.ONE Softphone add-on (09-08-2024 to 10-08-2024)", "UnitAmount": 1.000000, "TaxType": "TAX020", "TaxAmount": 3.25, "LineAmount": 25.00, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "CloudPhone.ONE Softphone add-on (10-08-2024 to 11-08-2024)", "UnitAmount": 1.000000, "TaxType": "TAX020", "TaxAmount": 3.25, "LineAmount": 25.00, "AccountCode": "203", "Tracking": [], "Quantity": 25.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (5197425851 - 5 Shirley Ave, Kitchener, ON N2B 2E6) (06-18-2024 to 07-08-2024)", "UnitAmount": 1.680000, "TaxType": "TAX020", "TaxAmount": 0.22, "LineAmount": 1.68, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (07-08-2024 to 08-08-2024) ", "UnitAmount": 2.500000, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (08-08-2024 to 09-08-2024)", "UnitAmount": 2.500000, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (09-08-2024 to 10-08-2024)", "UnitAmount": 2.500000, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (10-08-2024 to 11-08-2024)", "UnitAmount": 2.500000, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 1615.76, "TotalTax": 210.09, "Total": 1825.85, "CurrencyCode": "CAD", "StatusAttributeString": "ERROR", "ValidationErrors": [ { "Message": "The line total 206.62 does not match the expected line total 206.63" } ] } ] } [2025-03-20 09:13:50] Production.INFO: -- Create Invoice Error -- [2025-03-20 09:13:50] Production.INFO: -- Create Invoice Done -- [2025-03-20 09:13:50] Production.INFO: CheckInvoice xerov2: INV9661 [2025-03-20 09:13:50] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV9661 [2025-03-20 09:13:53] Production.INFO: Check Invoice Id XEROV21 [2025-03-20 09:13:53] Production.INFO: -- Create Invoice Done -- [2025-03-20 09:13:53] Production.INFO: -- Xero End Inovice -- [2025-03-20 09:13:53] Production.INFO: ==4794== Releasing lock... [2025-03-20 09:13:53] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10802 #Stops# [2025-03-20 09:13:53] Production.INFO: 30.75 MB #Memory Used#