[2025-01-07 05:15:04] Production.INFO: -- Xero Api Check -- [2025-01-07 05:15: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] => 855 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.643796 [namelookup_time] => 0.269884 [connect_time] => 0.271085 [pretransfer_time] => 0.51524 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4279 [speed_upload] => 127 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.643749 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42148 ) [2025-01-07 05:15:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDQ5MDQsImV4cCI6MTczNjI0NTIwNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ0OTA0LCJhdF9oYXNoIjoiYV9pT2wxalNvZXJLRExPQ1BhVUl2dyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1Mm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VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.ygj3VMYsqn6r_1JlUJjSi3gmJHCJuGxD8mvAHKJved0l69PXK6OC6InO1RN0WXO4TXrG0YFeOCZ2Mdo2Kiz69bKge4OHAByaYRARPrZ9FzGHyxQuYTKyXXYTjjDTioN36Am5q7UsGK5Q9E2X6wZ4lL5-eCZuWc4MVvjU_t_HnFSUIJt089SQMKsvW47Nd1oYV5CHvao_om9XnReaqwTz4X8SrOZmzk9LYgwxwbdtMvmP6pZf5Zh4mN6zHWLuUkimxod1zn5Q1N1dNHG6um42lPxXeTksGwVQDYXLZ8P-Ybs2JK6DlG9XrkvIiUPgPoGVRNJE0G0BxhNAVrRDqb_scQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 2MqT4bgqsynf-X02EdBX7D_NdMvB1AJctrntb-h-CN0 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:15:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyR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jZXNzIl0sImFtciI6WyJwd2QiXX0.ygj3VMYsqn6r_1JlUJjSi3gmJHCJuGxD8mvAHKJved0l69PXK6OC6InO1RN0WXO4TXrG0YFeOCZ2Mdo2Kiz69bKge4OHAByaYRARPrZ9FzGHyxQuYTKyXXYTjjDTioN36Am5q7UsGK5Q9E2X6wZ4lL5-eCZuWc4MVvjU_t_HnFSUIJt089SQMKsvW47Nd1oYV5CHvao_om9XnReaqwTz4X8SrOZmzk9LYgwxwbdtMvmP6pZf5Zh4mN6zHWLuUkimxod1zn5Q1N1dNHG6um42lPxXeTksGwVQDYXLZ8P-Ybs2JK6DlG9XrkvIiUPgPoGVRNJE0G0BxhNAVrRDqb_scQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 2MqT4bgqsynf-X02EdBX7D_NdMvB1AJctrntb-h-CN0 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:15:04] Production.INFO: AccountID 95 [2025-01-07 05:15:04] Production.INFO: AccountName CanTrust Insurance Services [2025-01-07 05:15:04] Production.INFO: Checkcustomer [2025-01-07 05:15:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="CanTrust%20Insurance%20Services" [2025-01-07 05:15:07] Production.INFO: Contact id print CheckCustomer Case===d5a46ee9-fef7-49ae-981c-b537df046ad7 [2025-01-07 05:15:07] Production.INFO: -- count --1 [2025-01-07 05:15:07] Production.INFO: AccountID 103 [2025-01-07 05:15:07] Production.INFO: AccountName Cathim Inc [2025-01-07 05:15:07] Production.INFO: Checkcustomer [2025-01-07 05:15:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Cathim%20Inc" [2025-01-07 05:15:10] Production.INFO: Contact id print CheckCustomer Case===b3a32be3-34a8-47ed-9add-6507ade181ac [2025-01-07 05:15:10] Production.INFO: -- count --1 [2025-01-07 05:15:10] Production.INFO: AccountID 103 [2025-01-07 05:15:10] Production.INFO: AccountName Cathim Inc [2025-01-07 05:15:10] Production.INFO: Checkcustomer [2025-01-07 05:15:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Cathim%20Inc" [2025-01-07 05:15:13] Production.INFO: Contact id print CheckCustomer Case===b3a32be3-34a8-47ed-9add-6507ade181ac [2025-01-07 05:15:13] Production.INFO: -- count --1 [2025-01-07 05:15:13] Production.INFO: -- Xero Add Inovice -- [2025-01-07 05:15:13] Production.INFO: CheckInvoice xerov2: INV11285 [2025-01-07 05:15:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11285 [2025-01-07 05:15:16] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:15:16] Production.INFO: Invoice SubTotal 78.520000 [2025-01-07 05:15:16] Production.INFO: Invoice DetTotal 78.52 [2025-01-07 05:15:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="CanTrust%20Insurance%20Services" [2025-01-07 05:15:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:15:22] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:15:24] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:15:26] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 12-01-2024 To 12-31-2024",Quantity : 1,UnitAmount : 28.020000,LineAmount : 28.020000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Inbound Channels",Quantity : 6,UnitAmount : 8.000000,LineAmount : 48.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (14168175555 - 3640 Victoria Park Ave. 301, North York, ON M2H 3B2)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 05:15:29] Production.INFO: ==== result ===== [2025-01-07 05:15:29] Production.INFO: { "Id": "938cb8f5-f08d-4f66-bdc5-ffda2adea6b8", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244929309)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b89c65af-cd1a-4ff8-9e0b-ae6b5957e96b", "InvoiceNumber": "INV11285", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 88.73, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "d5a46ee9-fef7-49ae-981c-b537df046ad7", "ContactStatus": "ACTIVE", "Name": "CanTrust Insurance Services", "FirstName": "Ken", "LastName": "Chen", "EmailAddress": "ken.chen@cantrustcanada.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(1549033984247+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-01T00:00:00", "Date": "\/Date(1735689600000+0000)\/", "DueDateString": "2025-01-31T00:00:00", "DueDate": "\/Date(1738281600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 12-01-2024 To 12-31-2024", "UnitAmount": 28.02, "TaxType": "TAX020", "TaxAmount": 3.64, "LineAmount": 28.02, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7761305e-9a09-4582-921d-70b408b915a5", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Inbound Channels", "UnitAmount": 8.00, "TaxType": "TAX020", "TaxAmount": 6.24, "LineAmount": 48.00, "AccountCode": "203", "Tracking": [], "Quantity": 6.0000, "DiscountRate": 0.00, "LineItemID": "e7d1602b-9423-4caa-90c2-bdc5f8859aaa", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14168175555 - 3640 Victoria Park Ave. 301, North York, ON M2H 3B2)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "be778336-7d36-4493-b2db-c784ee0fff65", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 78.52, "TotalTax": 10.21, "Total": 88.73, "UpdatedDateUTC": "\/Date(1736244929247+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:15:29] Production.INFO: -- Create Invoice id --b89c65af-cd1a-4ff8-9e0b-ae6b5957e96b [2025-01-07 05:15:29] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:15:29] Production.INFO: CheckInvoice xerov2: INV11114 [2025-01-07 05:15:29] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11114 [2025-01-07 05:15:31] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:15:31] Production.INFO: Invoice SubTotal 17.690000 [2025-01-07 05:15:31] Production.INFO: Invoice DetTotal 17.69 [2025-01-07 05:15:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Cathim%20Inc" [2025-01-07 05:15:34] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:15:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:15:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:15:43] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 10-28-2024 To 11-27-2024",Quantity : 1,UnitAmount : 7.690000,LineAmount : 7.690000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Additional DID (18889888860)",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000} [2025-01-07 05:15:45] Production.INFO: ==== result ===== [2025-01-07 05:15:45] Production.INFO: { "Id": "f3ccded1-f3c5-4533-b67b-609915131640", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244945788)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "736a4201-c9a8-45f4-ac7f-8cd873cf5b72", "InvoiceNumber": "INV11114", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 19.99, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b3a32be3-34a8-47ed-9add-6507ade181ac", "ContactStatus": "ACTIVE", "Name": "Cathim Inc", "FirstName": "Jim", "LastName": "Norfolk", "EmailAddress": "jim@cathim.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(1551296572893+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-28T00:00:00", "Date": "\/Date(1732752000000+0000)\/", "DueDateString": "2024-12-28T00:00:00", "DueDate": "\/Date(1735344000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 10-28-2024 To 11-27-2024", "UnitAmount": 7.69, "TaxType": "TAX020", "TaxAmount": 1.00, "LineAmount": 7.69, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "21178571-a560-4d2c-a357-c115ed426d19", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (18889888860)", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "3ca7b514-09b0-434c-a910-146e605f129d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 17.69, "TotalTax": 2.30, "Total": 19.99, "UpdatedDateUTC": "\/Date(1736244945727+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:15:45] Production.INFO: -- Create Invoice id --736a4201-c9a8-45f4-ac7f-8cd873cf5b72 [2025-01-07 05:15:45] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:15:45] Production.INFO: CheckInvoice xerov2: INV11271 [2025-01-07 05:15:45] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11271 [2025-01-07 05:15:48] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:15:48] Production.INFO: Invoice SubTotal 14.650000 [2025-01-07 05:15:48] Production.INFO: Invoice DetTotal 14.65 [2025-01-07 05:15:48] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Cathim%20Inc" [2025-01-07 05:15:50] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:15:54] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:15:56] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:15:58] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-28-2024 To 12-27-2024",Quantity : 1,UnitAmount : 4.650000,LineAmount : 4.650000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Additional DID (18889888860)",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000} [2025-01-07 05:16:01] Production.INFO: ==== result ===== [2025-01-07 05:16:01] Production.INFO: { "Id": "3db87965-fd22-464a-b466-8a968dbe363c", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736244961284)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "7025df44-4344-4fac-bb87-7bf5623a98ed", "InvoiceNumber": "INV11271", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 16.55, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "b3a32be3-34a8-47ed-9add-6507ade181ac", "ContactStatus": "ACTIVE", "Name": "Cathim Inc", "FirstName": "Jim", "LastName": "Norfolk", "EmailAddress": "jim@cathim.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(1551296572893+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-28T00:00:00", "Date": "\/Date(1735344000000+0000)\/", "DueDateString": "2025-01-27T00:00:00", "DueDate": "\/Date(1737936000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-28-2024 To 12-27-2024", "UnitAmount": 4.65, "TaxType": "TAX020", "TaxAmount": 0.60, "LineAmount": 4.65, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "c23e3055-48cf-4fbd-8fd4-9edfbb0705be", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (18889888860)", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "3f44fe84-6aab-4648-b094-0b2647164a9d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 14.65, "TotalTax": 1.90, "Total": 16.55, "UpdatedDateUTC": "\/Date(1736244961173+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:16:01] Production.INFO: -- Create Invoice id --7025df44-4344-4fac-bb87-7bf5623a98ed [2025-01-07 05:16:01] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:16:01] Production.INFO: -- Xero End Inovice -- [2025-01-07 05:16:01] Production.INFO: ==4719== Releasing lock... [2025-01-07 05:16:01] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10426 #Stops# [2025-01-07 05:16:01] Production.INFO: 31.75 MB #Memory Used#