[2025-01-07 05:30:03] Production.INFO: -- Xero Api Check -- [2025-01-07 05:30: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.834986 [namelookup_time] => 0.546491 [connect_time] => 0.548127 [pretransfer_time] => 0.757107 [size_upload] => 82 [size_download] => 2755 [speed_download] => 3299 [speed_upload] => 98 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.834952 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42548 ) [2025-01-07 05:30:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDU4MDQsImV4cCI6MTczNjI0NjEwNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ1ODA0LCJhdF9oYXNoIjoiZmwtN1p1NFhUajBsdmc0eDItQzAtZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIi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2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.sdB8-fIP6GtMP5oHQ43J9P7602jWaf2372i0-ocjhYuxP5rURFM6W0hYcjFhn8c59BOskHFAbezx8u6Ps59o9IxytLf7EyAvW4QOuqVow8WdbCtSJeZBitbpmntHNT5-aKI-lQ_hnaRyZN1UgA6jUzYzdwIF9_sZ6wAqrixdb9d9KjbUyzMH9dGi1UxpEoLpS1MiTkpWA3gJMoQKoGLC6PeiuqOywcsIN2l4hVRc-VgJ-WmSwabi_F4BUezrHRxQHl-moidu9FKJDfUeP3yVEPcb_O5U17sUmYQOALXjYNos1tCOt6W0h_FUn7nvq096QWuQmf3T3aftBJwFpd7m_g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => Kg84PjKiLpJR35zUKWrSCIwofTlorPG3R1kxpzJkCkM [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:30:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ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FtciI6WyJwd2QiXX0.sdB8-fIP6GtMP5oHQ43J9P7602jWaf2372i0-ocjhYuxP5rURFM6W0hYcjFhn8c59BOskHFAbezx8u6Ps59o9IxytLf7EyAvW4QOuqVow8WdbCtSJeZBitbpmntHNT5-aKI-lQ_hnaRyZN1UgA6jUzYzdwIF9_sZ6wAqrixdb9d9KjbUyzMH9dGi1UxpEoLpS1MiTkpWA3gJMoQKoGLC6PeiuqOywcsIN2l4hVRc-VgJ-WmSwabi_F4BUezrHRxQHl-moidu9FKJDfUeP3yVEPcb_O5U17sUmYQOALXjYNos1tCOt6W0h_FUn7nvq096QWuQmf3T3aftBJwFpd7m_g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => Kg84PjKiLpJR35zUKWrSCIwofTlorPG3R1kxpzJkCkM [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:30:04] Production.INFO: AccountID 101 [2025-01-07 05:30:04] Production.INFO: AccountName Dominos 10364 (Shane Linthorne) [2025-01-07 05:30:04] Production.INFO: Checkcustomer [2025-01-07 05:30:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010364%20%28Shane%20Linthorne%29" [2025-01-07 05:30:08] Production.INFO: Contact id print CheckCustomer Case===12ca1405-c90f-4ad7-83b0-d937a569ffd9 [2025-01-07 05:30:08] Production.INFO: -- count --1 [2025-01-07 05:30:08] Production.INFO: AccountID 154 [2025-01-07 05:30:08] Production.INFO: AccountName Dominos 10385 (Sandeep Chaudhari) [2025-01-07 05:30:08] Production.INFO: Checkcustomer [2025-01-07 05:30:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010385%20%28Sandeep%20Chaudhari%29" [2025-01-07 05:30:10] Production.INFO: Contact id print CheckCustomer Case===f21476d6-c1e8-4e8b-b2a8-87f68276aedf [2025-01-07 05:30:10] Production.INFO: -- count --1 [2025-01-07 05:30:10] Production.INFO: AccountID 155 [2025-01-07 05:30:10] Production.INFO: AccountName Dominos 10388 (Sandeep Chaudhari) [2025-01-07 05:30:10] Production.INFO: Checkcustomer [2025-01-07 05:30:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010388%20%28Sandeep%20Chaudhari%29" [2025-01-07 05:30:13] Production.INFO: Contact id print CheckCustomer Case===f7e4d9d4-d7d6-4a37-b185-fce2c2d150b9 [2025-01-07 05:30:13] Production.INFO: -- count --1 [2025-01-07 05:30:13] Production.INFO: AccountID 33 [2025-01-07 05:30:13] Production.INFO: AccountName Dominos 10395 (Ronny Khan) [2025-01-07 05:30:13] Production.INFO: Checkcustomer [2025-01-07 05:30:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010395%20%28Ronny%20Khan%29" [2025-01-07 05:30:15] Production.INFO: Contact id print CheckCustomer Case===2ad5ad33-c3c5-457d-96a1-96787e4ed1ae [2025-01-07 05:30:15] Production.INFO: -- count --1 [2025-01-07 05:30:15] Production.INFO: AccountID 33 [2025-01-07 05:30:15] Production.INFO: AccountName Dominos 10395 (Ronny Khan) [2025-01-07 05:30:15] Production.INFO: Checkcustomer [2025-01-07 05:30:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010395%20%28Ronny%20Khan%29" [2025-01-07 05:30:18] Production.INFO: Contact id print CheckCustomer Case===2ad5ad33-c3c5-457d-96a1-96787e4ed1ae [2025-01-07 05:30:18] Production.INFO: -- count --1 [2025-01-07 05:30:18] Production.INFO: AccountID 119 [2025-01-07 05:30:18] Production.INFO: AccountName Dominos 10402 (Anwar Hossain) [2025-01-07 05:30:18] Production.INFO: Checkcustomer [2025-01-07 05:30:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010402%20%28Anwar%20Hossain%29" [2025-01-07 05:30:20] Production.INFO: Contact id print CheckCustomer Case===638629e4-7df5-47ca-ab31-ab7d228ee597 [2025-01-07 05:30:20] Production.INFO: -- count --1 [2025-01-07 05:30:20] Production.INFO: -- Xero Add Inovice -- [2025-01-07 05:30:20] Production.INFO: CheckInvoice xerov2: INV11265 [2025-01-07 05:30:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11265 [2025-01-07 05:30:23] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:30:23] Production.INFO: Invoice SubTotal 193.180000 [2025-01-07 05:30:23] Production.INFO: Invoice DetTotal 193.18 [2025-01-07 05:30:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010364%20%28Shane%20Linthorne%29" [2025-01-07 05:30:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:30:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:30:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:30:33] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service (324 Guelph St 10 Georgetown, ON L7G 4B5 Canada)",Quantity : 1,UnitAmount : 69.780000,LineAmount : 69.780000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (324 Guelph St 10 Georgetown, ON L7G 4B5 Canada)",Quantity : 1,UnitAmount : 55.900000,LineAmount : 55.900000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19057028800 - 324 Guelph St 10 Georgetown, ON L7G 4B5 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service",Quantity : 2,UnitAmount : -5.000000,LineAmount : -10.000000} [2025-01-07 05:30:35] Production.INFO: ==== result ===== [2025-01-07 05:30:35] Production.INFO: { "Id": "3fa8ca3f-bd2c-477d-9965-bc10fb5858a1", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245835895)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "3ae9b269-f57d-45ee-ba59-706cc74aad8b", "InvoiceNumber": "INV11265", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 218.30, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "12ca1405-c90f-4ad7-83b0-d937a569ffd9", "ContactStatus": "ACTIVE", "Name": "Dominos 10364 (Shane Linthorne)", "FirstName": "Shane", "LastName": "Linthorne", "EmailAddress": "poundinpizzainc@gmail.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(1562267972817+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-26T00:00:00", "Date": "\/Date(1735171200000+0000)\/", "DueDateString": "2025-01-25T00:00:00", "DueDate": "\/Date(1737763200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "VDSL Internet Service (324 Guelph St 10 Georgetown, ON L7G 4B5 Canada)", "UnitAmount": 69.78, "TaxType": "TAX020", "TaxAmount": 9.07, "LineAmount": 69.78, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "706eb12f-fc77-4ede-b847-c519e2e3146a", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (324 Guelph St 10 Georgetown, ON L7G 4B5 Canada)", "UnitAmount": 55.90, "TaxType": "TAX020", "TaxAmount": 7.27, "LineAmount": 55.90, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "07101f2c-ca2f-4d6c-91bb-ba140a9b8636", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "ba8420dc-3764-44c9-a91d-86f5a02804fb", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19057028800 - 324 Guelph St 10 Georgetown, ON L7G 4B5 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7443cefd-d336-43e3-928e-d326a4dae235", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service", "UnitAmount": -5.00, "TaxType": "TAX020", "TaxAmount": -1.30, "LineAmount": -10.00, "AccountCode": "303", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "0b1f5bbf-1133-4397-adf4-7159cd014ec9", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 193.18, "TotalTax": 25.12, "Total": 218.30, "UpdatedDateUTC": "\/Date(1736245835770+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:30:35] Production.INFO: -- Create Invoice id --3ae9b269-f57d-45ee-ba59-706cc74aad8b [2025-01-07 05:30:35] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:30:35] Production.INFO: CheckInvoice xerov2: INV11160 [2025-01-07 05:30:35] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11160 [2025-01-07 05:30:38] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:30:38] Production.INFO: Invoice SubTotal 52.500000 [2025-01-07 05:30:38] Production.INFO: Invoice DetTotal 52.5 [2025-01-07 05:30:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010385%20%28Sandeep%20Chaudhari%29" [2025-01-07 05:30:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:30:42] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:30:44] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:30:48] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (15197477300 - 450 Columbia St W 2 Waterloo, ON N2T 2W1 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 5,UnitAmount : -5.000000,LineAmount : -25.000000} [2025-01-07 05:30:50] Production.INFO: ==== result ===== [2025-01-07 05:30:50] Production.INFO: { "Id": "41af1c55-e1ae-400d-95a5-f7d25a47f6c2", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245850749)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "5708fe6d-cd0f-411b-9a09-e91c5526e937", "InvoiceNumber": "INV11160", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 59.33, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "f21476d6-c1e8-4e8b-b2a8-87f68276aedf", "ContactStatus": "ACTIVE", "Name": "Dominos 10385 (Sandeep Chaudhari)", "FirstName": "Sandeep", "LastName": "Chaudhari", "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(1639845523757+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-06T00:00:00", "Date": "\/Date(1733443200000+0000)\/", "DueDateString": "2025-01-05T00:00:00", "DueDate": "\/Date(1736035200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "2d9ca52e-452f-4a57-a47f-aa5359d2eb12", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (15197477300 - 450 Columbia St W 2 Waterloo, ON N2T 2W1 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "cd57d3bc-444e-49dd-8e8a-59617315055d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service", "UnitAmount": -5.00, "TaxType": "TAX020", "TaxAmount": -3.25, "LineAmount": -25.00, "AccountCode": "303", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 0.00, "LineItemID": "78a19527-b794-4f5c-8eb5-874cbc57e86e", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 52.50, "TotalTax": 6.83, "Total": 59.33, "UpdatedDateUTC": "\/Date(1736245850687+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:30:50] Production.INFO: -- Create Invoice id --5708fe6d-cd0f-411b-9a09-e91c5526e937 [2025-01-07 05:30:50] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:30:50] Production.INFO: CheckInvoice xerov2: INV11164 [2025-01-07 05:30:50] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11164 [2025-01-07 05:30:53] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:30:53] Production.INFO: Invoice SubTotal 52.500000 [2025-01-07 05:30:53] Production.INFO: Invoice DetTotal 52.5 [2025-01-07 05:30:53] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010388%20%28Sandeep%20Chaudhari%29" [2025-01-07 05:30:55] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:30:57] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:30:59] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:31:03] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (15197463900 - 65 University Ave E Waterloo, ON N2J 2V9 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 5,UnitAmount : -5.000000,LineAmount : -25.000000} [2025-01-07 05:31:05] Production.INFO: ==== result ===== [2025-01-07 05:31:05] Production.INFO: { "Id": "af0f1a5c-4195-4979-ad00-b4dec5195274", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245865714)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a6c22af1-2b4e-4d71-b720-d176033d3172", "InvoiceNumber": "INV11164", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 59.33, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "f7e4d9d4-d7d6-4a37-b185-fce2c2d150b9", "ContactStatus": "ACTIVE", "Name": "Dominos 10388 (Sandeep Chaudhari)", "FirstName": "Sandeep", "LastName": "Chaudhari", "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(1639845522693+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-07T00:00:00", "Date": "\/Date(1733529600000+0000)\/", "DueDateString": "2025-01-06T00:00:00", "DueDate": "\/Date(1736121600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "af7ff8de-b9bc-4297-8e35-ef6a5d48f6b1", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (15197463900 - 65 University Ave E Waterloo, ON N2J 2V9 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "6c2a33b5-0a35-464f-ac3a-7628656e1a70", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service", "UnitAmount": -5.00, "TaxType": "TAX020", "TaxAmount": -3.25, "LineAmount": -25.00, "AccountCode": "303", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 0.00, "LineItemID": "dd3ff8e5-c4dd-4760-88d4-545386f8f9fa", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 52.50, "TotalTax": 6.83, "Total": 59.33, "UpdatedDateUTC": "\/Date(1736245865620+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:31:05] Production.INFO: -- Create Invoice id --a6c22af1-2b4e-4d71-b720-d176033d3172 [2025-01-07 05:31:05] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:31:05] Production.INFO: CheckInvoice xerov2: INV11109 [2025-01-07 05:31:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11109 [2025-01-07 05:31:08] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:31:08] Production.INFO: Invoice SubTotal 57.500000 [2025-01-07 05:31:08] Production.INFO: Invoice DetTotal 57.5 [2025-01-07 05:31:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010395%20%28Ronny%20Khan%29" [2025-01-07 05:31:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:31:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:31:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:31:18] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Dominos Pizza - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (14166363888 - 820 SHEPPARD AVE W TORONTO, ON M3H2T1)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 4,UnitAmount : -5.000000,LineAmount : -20.000000} [2025-01-07 05:31:20] Production.INFO: ==== result ===== [2025-01-07 05:31:20] Production.INFO: { "Id": "2eb4f6e0-caf1-47d7-a521-26703e47a2c0", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245880916)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "e7278533-958f-4705-96a3-08747edba2b4", "InvoiceNumber": "INV11109", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 64.98, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "2ad5ad33-c3c5-457d-96a1-96787e4ed1ae", "ContactStatus": "ACTIVE", "Name": "Dominos 10395 (Ronny Khan)", "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(1562267972817+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-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": "Dominos Pizza - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "da847578-6142-4713-9988-b9a898a4f527", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14166363888 - 820 SHEPPARD AVE W TORONTO, ON M3H2T1)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4821f3a2-ca8d-494c-88d9-ed16dafc6ee7", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service", "UnitAmount": -5.00, "TaxType": "TAX020", "TaxAmount": -2.60, "LineAmount": -20.00, "AccountCode": "303", "Tracking": [], "Quantity": 4.0000, "DiscountRate": 0.00, "LineItemID": "00ea97e0-46d0-4631-9f32-ca439bf1a2f1", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 57.50, "TotalTax": 7.48, "Total": 64.98, "UpdatedDateUTC": "\/Date(1736245880853+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:31:20] Production.INFO: -- Create Invoice id --e7278533-958f-4705-96a3-08747edba2b4 [2025-01-07 05:31:20] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:31:20] Production.INFO: CheckInvoice xerov2: INV11266 [2025-01-07 05:31:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11266 [2025-01-07 05:31:23] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:31:23] Production.INFO: Invoice SubTotal 57.500000 [2025-01-07 05:31:23] Production.INFO: Invoice DetTotal 57.5 [2025-01-07 05:31:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010395%20%28Ronny%20Khan%29" [2025-01-07 05:31:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:31:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:31:30] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:31:33] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Dominos Pizza - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (14166363888 - 820 SHEPPARD AVE W TORONTO, ON M3H2T1)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 4,UnitAmount : -5.000000,LineAmount : -20.000000} [2025-01-07 05:31:36] Production.INFO: ==== result ===== [2025-01-07 05:31:36] Production.INFO: { "Id": "922706ca-bd7f-4e8b-857b-65101227c0a5", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245895978)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "0a94e8b9-5d7f-4bac-b620-b2350cd7e49f", "InvoiceNumber": "INV11266", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 64.98, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "2ad5ad33-c3c5-457d-96a1-96787e4ed1ae", "ContactStatus": "ACTIVE", "Name": "Dominos 10395 (Ronny Khan)", "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(1562267972817+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-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": "Dominos Pizza - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "f0e97bb5-b683-4566-ba13-23b2286289ac", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14166363888 - 820 SHEPPARD AVE W TORONTO, ON M3H2T1)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "a82e30a5-5a7f-4687-9e2c-6ffe88e1e1d7", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service", "UnitAmount": -5.00, "TaxType": "TAX020", "TaxAmount": -2.60, "LineAmount": -20.00, "AccountCode": "303", "Tracking": [], "Quantity": 4.0000, "DiscountRate": 0.00, "LineItemID": "55ed1b43-9aad-456a-a44d-4fabe15b624c", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 57.50, "TotalTax": 7.48, "Total": 64.98, "UpdatedDateUTC": "\/Date(1736245895900+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:31:36] Production.INFO: -- Create Invoice id --0a94e8b9-5d7f-4bac-b620-b2350cd7e49f [2025-01-07 05:31:36] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:31:36] Production.INFO: CheckInvoice xerov2: INV11195 [2025-01-07 05:31:36] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11195 [2025-01-07 05:31:38] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:31:38] Production.INFO: Invoice SubTotal 65.000000 [2025-01-07 05:31:38] Production.INFO: Invoice DetTotal 65 [2025-01-07 05:31:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010402%20%28Anwar%20Hossain%29" [2025-01-07 05:31:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:31:43] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:31:45] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:31:48] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service",Quantity : 2,UnitAmount : -5.000000,LineAmount : -10.000000} [2025-01-07 05:31:50] Production.INFO: ==== result ===== [2025-01-07 05:31:50] Production.INFO: { "Id": "e80d7768-9efd-40e3-9ecf-ea4b51e68194", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245910790)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a110f794-cc60-4ab6-beb2-e7260b814086", "InvoiceNumber": "INV11195", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 73.45, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "638629e4-7df5-47ca-ab31-ab7d228ee597", "ContactStatus": "ACTIVE", "Name": "Dominos 10402 (Anwar Hossain)", "FirstName": "Anwar", "LastName": "Hossain", "EmailAddress": "anwar377@yahoo.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(1581435194217+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-11T00:00:00", "Date": "\/Date(1733875200000+0000)\/", "DueDateString": "2025-01-10T00:00:00", "DueDate": "\/Date(1736467200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "1131d078-bdd4-49b1-b25e-4cd302aff6d9", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service", "UnitAmount": -5.00, "TaxType": "TAX020", "TaxAmount": -1.30, "LineAmount": -10.00, "AccountCode": "303", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "1501edd8-37b0-4258-93b6-763cd7ec3ee4", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 65.00, "TotalTax": 8.45, "Total": 73.45, "UpdatedDateUTC": "\/Date(1736245910713+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:31:50] Production.INFO: -- Create Invoice id --a110f794-cc60-4ab6-beb2-e7260b814086 [2025-01-07 05:31:50] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:31:50] Production.INFO: -- Xero End Inovice -- [2025-01-07 05:31:50] Production.INFO: ==6033== Releasing lock... [2025-01-07 05:31:50] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10433 #Stops# [2025-01-07 05:31:50] Production.INFO: 32.5 MB #Memory Used#