[2025-01-07 06:22:03] Production.INFO: -- Xero Api Check -- [2025-01-07 06:22: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] => 859 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.49199 [namelookup_time] => 0.53558 [connect_time] => 0.628542 [pretransfer_time] => 1.019444 [size_upload] => 82 [size_download] => 2755 [speed_download] => 1846 [speed_upload] => 54 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.491942 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.72.248.213 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 57144 ) [2025-01-07 06:22:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDg5MjQsImV4cCI6MTczNjI0OTIyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ4OTI0LCJhdF9oYXNoIjoiWDlDUTFhckxqa1FQemdHbHl3dk5UdyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIi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aWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.DbvF4bgW7_7pMWCITpJDkDfdhZpSGUil6UfoFHi0v1eumxNBIhYqUJyQAeOQzDcozD81POtU_gm7S8Q6gSucbei14-Fs9q1VYbTHWQOQsz3KIMQs4cUGLqKhEBxzckBy3VUnak30uu_y8C4Gfutx_M-2DChaZEBp_wTTU_2rqt8YNp1aeSNB0lFryWfZ7txVA77NVjD3TQCoYg1_XFMRdHNeCof0IT45Nz7sP3O-T3To86gaouhtDazYEUkRnb0oVJDJDCZW0y3sk8pBVOz4kWMZGdspt_9VrrTxRVOgaDwd5GX1y4T8VYkMgQxAfufwG4arJfzkPlNsrZ0AMv4T-g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => BQRDWuT8DCvX9pd0AM6FGSq1yvwg--BamxYznVXuF7Y [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:22:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2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6WyJwd2QiXX0.DbvF4bgW7_7pMWCITpJDkDfdhZpSGUil6UfoFHi0v1eumxNBIhYqUJyQAeOQzDcozD81POtU_gm7S8Q6gSucbei14-Fs9q1VYbTHWQOQsz3KIMQs4cUGLqKhEBxzckBy3VUnak30uu_y8C4Gfutx_M-2DChaZEBp_wTTU_2rqt8YNp1aeSNB0lFryWfZ7txVA77NVjD3TQCoYg1_XFMRdHNeCof0IT45Nz7sP3O-T3To86gaouhtDazYEUkRnb0oVJDJDCZW0y3sk8pBVOz4kWMZGdspt_9VrrTxRVOgaDwd5GX1y4T8VYkMgQxAfufwG4arJfzkPlNsrZ0AMv4T-g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => BQRDWuT8DCvX9pd0AM6FGSq1yvwg--BamxYznVXuF7Y [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 06:22:05] Production.INFO: AccountID 58 [2025-01-07 06:22:05] Production.INFO: AccountName Think Secure [2025-01-07 06:22:05] Production.INFO: Checkcustomer [2025-01-07 06:22:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Think%20Secure" [2025-01-07 06:22:07] Production.INFO: Contact id print CheckCustomer Case===c4bd70fd-3ccd-42a6-a692-2d9f355b91a8 [2025-01-07 06:22:07] Production.INFO: -- count --1 [2025-01-07 06:22:07] Production.INFO: AccountID 58 [2025-01-07 06:22:07] Production.INFO: AccountName Think Secure [2025-01-07 06:22:07] Production.INFO: Checkcustomer [2025-01-07 06:22:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Think%20Secure" [2025-01-07 06:22:10] Production.INFO: Contact id print CheckCustomer Case===c4bd70fd-3ccd-42a6-a692-2d9f355b91a8 [2025-01-07 06:22:10] Production.INFO: -- count --1 [2025-01-07 06:22:10] Production.INFO: -- Xero Add Inovice -- [2025-01-07 06:22:10] Production.INFO: CheckInvoice xerov2: INV11110 [2025-01-07 06:22:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11110 [2025-01-07 06:22:12] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:22:12] Production.INFO: Invoice SubTotal 273.260000 [2025-01-07 06:22:12] Production.INFO: Invoice DetTotal 273.26 [2025-01-07 06:22:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Think%20Secure" [2025-01-07 06:22:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:22:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:22:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:22:23] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 10-27-2024 To 11-26-2024",Quantity : 1,UnitAmount : 0.330000,LineAmount : 0.330000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 7,UnitAmount : 7.000000,LineAmount : 49.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19053267233 - Cancom Security - 1183 Finch Ave W 205 North York, ON M3J2G2 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "Cable Internet Service - 300 x 20 - (160 Aspen Crescent, WhitechurchStouffville, ON L4A 5C3)",Quantity : 1,UnitAmount : 85.950000,LineAmount : 85.950000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (16475586206 - Benjamin Wein - 160 Aspen Cresent Stouffville, ON L4A 5C3 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,"Description": "Portable LTE Emergency Internet Service (with Larry Bennett)",Quantity : 1,UnitAmount : 132.980000,LineAmount : 132.980000} [2025-01-07 06:22:25] Production.INFO: ==== result ===== [2025-01-07 06:22:25] Production.INFO: { "Id": "73ec3637-06b9-41e8-841a-abd5d9fa68f9", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736248945805)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "ce09cddf-d882-4ebb-b36d-8da71659c412", "InvoiceNumber": "INV11110", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 308.79, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "c4bd70fd-3ccd-42a6-a692-2d9f355b91a8", "ContactStatus": "ACTIVE", "Name": "Think Secure", "FirstName": "Keshia", "LastName": "Brubacher", "EmailAddress": "accounts@thinksecure.ca", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "10 Newkirk Rd.", "AddressLine2": "Unit 1", "AddressLine3": "", "AddressLine4": "", "City": "Richmond Hill", "Region": "ON", "PostalCode": "L4C 5S3", "Country": "Canada", "AttentionTo": "Keshia Brubacher" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "9053267233", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "9053267233", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1562268255557+0000)\/", "ContactGroups": [ { "ContactGroupID": "73efd01d-7369-4fa2-a005-8c8239e72e58", "Name": "Benjamin's Customers", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": true, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-27T00:00:00", "Date": "\/Date(1732665600000+0000)\/", "DueDateString": "2024-12-27T00:00:00", "DueDate": "\/Date(1735257600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 10-27-2024 To 11-26-2024", "UnitAmount": 0.33, "TaxType": "TAX020", "TaxAmount": 0.04, "LineAmount": 0.33, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "66ed9671-bd24-4833-9dd3-3bcf0297df41", "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": 6.37, "LineAmount": 49.00, "AccountCode": "203", "Tracking": [], "Quantity": 7.0000, "DiscountRate": 0.00, "LineItemID": "ec2ed3ae-1911-4c36-8d93-0df0b162842a", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19053267233 - Cancom Security - 1183 Finch Ave W 205 North York, ON M3J2G2 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "6f1308a2-de75-47e1-a4ff-7f798935d873", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Cable Internet Service - 300 x 20 - (160 Aspen Crescent, WhitechurchStouffville, ON L4A 5C3)", "UnitAmount": 85.95, "TaxType": "TAX020", "TaxAmount": 11.17, "LineAmount": 85.95, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "991a7263-7702-4879-8568-e65fa4f71c3c", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (16475586206 - Benjamin Wein - 160 Aspen Cresent Stouffville, ON L4A 5C3 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4228a674-af51-490b-b984-1458c06903ed", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Portable LTE Emergency Internet Service (with Larry Bennett)", "UnitAmount": 132.98, "TaxType": "TAX020", "TaxAmount": 17.29, "LineAmount": 132.98, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "LineItemID": "2f148e36-ce7a-48aa-b7de-239ef3fc0cd8", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "ValidationErrors": [] } ], "SubTotal": 273.26, "TotalTax": 35.53, "Total": 308.79, "UpdatedDateUTC": "\/Date(1736248945727+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:22:25] Production.INFO: -- Create Invoice id --ce09cddf-d882-4ebb-b36d-8da71659c412 [2025-01-07 06:22:25] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:22:25] Production.INFO: CheckInvoice xerov2: INV11267 [2025-01-07 06:22:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11267 [2025-01-07 06:22:28] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 06:22:28] Production.INFO: Invoice SubTotal 275.760000 [2025-01-07 06:22:28] Production.INFO: Invoice DetTotal 275.76 [2025-01-07 06:22:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Think%20Secure" [2025-01-07 06:22:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 06:22:34] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 06:22:37] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 06:22:39] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-27-2024 To 12-26-2024",Quantity : 1,UnitAmount : 2.830000,LineAmount : 2.830000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 7,UnitAmount : 7.000000,LineAmount : 49.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19053267233 - Cancom Security - 1183 Finch Ave W 205 North York, ON M3J2G2 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "Cable Internet Service - 300 x 20 - (160 Aspen Crescent, WhitechurchStouffville, ON L4A 5C3)",Quantity : 1,UnitAmount : 85.950000,LineAmount : 85.950000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (16475586206 - Benjamin Wein - 160 Aspen Cresent Stouffville, ON L4A 5C3 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,"Description": "Portable LTE Emergency Internet Service (with Larry Bennett)",Quantity : 1,UnitAmount : 132.980000,LineAmount : 132.980000} [2025-01-07 06:22:42] Production.INFO: ==== result ===== [2025-01-07 06:22:42] Production.INFO: { "Id": "ec69835c-ef66-40dc-b9e7-c50d42e4c2e4", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736248962364)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a2bea957-4886-4c6a-a4e9-f9aa508b1fb1", "InvoiceNumber": "INV11267", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 311.62, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "c4bd70fd-3ccd-42a6-a692-2d9f355b91a8", "ContactStatus": "ACTIVE", "Name": "Think Secure", "FirstName": "Keshia", "LastName": "Brubacher", "EmailAddress": "accounts@thinksecure.ca", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "10 Newkirk Rd.", "AddressLine2": "Unit 1", "AddressLine3": "", "AddressLine4": "", "City": "Richmond Hill", "Region": "ON", "PostalCode": "L4C 5S3", "Country": "Canada", "AttentionTo": "Keshia Brubacher" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "9053267233", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "9053267233", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1562268255557+0000)\/", "ContactGroups": [ { "ContactGroupID": "73efd01d-7369-4fa2-a005-8c8239e72e58", "Name": "Benjamin's Customers", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": true, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-27T00:00:00", "Date": "\/Date(1735257600000+0000)\/", "DueDateString": "2025-01-26T00:00:00", "DueDate": "\/Date(1737849600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-27-2024 To 12-26-2024", "UnitAmount": 2.83, "TaxType": "TAX020", "TaxAmount": 0.37, "LineAmount": 2.83, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "471677e3-5cfd-4cac-935d-79c6673775db", "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": 6.37, "LineAmount": 49.00, "AccountCode": "203", "Tracking": [], "Quantity": 7.0000, "DiscountRate": 0.00, "LineItemID": "5219dce8-9fbe-44c4-8c98-008bdcb08348", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19053267233 - Cancom Security - 1183 Finch Ave W 205 North York, ON M3J2G2 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "e87945f8-af9f-405d-a5b0-6c422f4edb51", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Cable Internet Service - 300 x 20 - (160 Aspen Crescent, WhitechurchStouffville, ON L4A 5C3)", "UnitAmount": 85.95, "TaxType": "TAX020", "TaxAmount": 11.17, "LineAmount": 85.95, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "c4a874bb-e0d0-4027-ab2b-3b346a07a6f4", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (16475586206 - Benjamin Wein - 160 Aspen Cresent Stouffville, ON L4A 5C3 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "3e4e2bd4-56cc-42a6-8d34-3e0997d9f3da", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Portable LTE Emergency Internet Service (with Larry Bennett)", "UnitAmount": 132.98, "TaxType": "TAX020", "TaxAmount": 17.29, "LineAmount": 132.98, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "LineItemID": "44293595-a0fa-423f-b145-cdc0c9391589", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "ValidationErrors": [] } ], "SubTotal": 275.76, "TotalTax": 35.86, "Total": 311.62, "UpdatedDateUTC": "\/Date(1736248962323+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 06:22:42] Production.INFO: -- Create Invoice id --a2bea957-4886-4c6a-a4e9-f9aa508b1fb1 [2025-01-07 06:22:42] Production.INFO: -- Create Invoice Done -- [2025-01-07 06:22:42] Production.INFO: -- Xero End Inovice -- [2025-01-07 06:22:42] Production.INFO: ==10853== Releasing lock... [2025-01-07 06:22:42] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10448 #Stops# [2025-01-07 06:22:42] Production.INFO: 30.75 MB #Memory Used#