[2025-01-07 05:33:03] Production.INFO: -- Xero Api Check -- [2025-01-07 05:33: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.651168 [namelookup_time] => 0.270077 [connect_time] => 0.284064 [pretransfer_time] => 0.476048 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4230 [speed_upload] => 125 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.65113 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42648 ) [2025-01-07 05:33:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDU5ODQsImV4cCI6MTczNjI0NjI4NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ1OTg0LCJhdF9oYXNoIjoiMXdpUU1lZ2tfMkZ6dFM4SVZFY1B0dyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1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191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.JDFwwvGDSyr91uwAze9-UJOP6gb_YZLoZAA1AsQdoW8A1BFBANp5rz9sayiKUl6tiAgHxyfdSN-dolQ2ZNBNXEl2O9wna0ISf4oZzzVIo7iFKiH7HycQld0nXON9FTox1bG3SWWVcrBhcae1TyzkAggN8IAQApqPAWVOzc6L2TlXKVzjSEedfobBXmUNna0WL59VFXVnX1crwIAO5EyljRc1UjYMEDfbWkapbB_HszkHo4xdxvD_eUxPqqolIi5Aoi8wm7UOwgH27Z0-IFy7PqC-udT8S_YyciSUNyw965Y5JD_eNmst18jWcRNOkUL1PlCR8GRLvC38x8zpVnaGFw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => ysz1IWfqI5ShxXGWsB7j8f6ttdV-t4oSpcJHVdXCU3o [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:33:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ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0sImFtciI6WyJwd2QiXX0.JDFwwvGDSyr91uwAze9-UJOP6gb_YZLoZAA1AsQdoW8A1BFBANp5rz9sayiKUl6tiAgHxyfdSN-dolQ2ZNBNXEl2O9wna0ISf4oZzzVIo7iFKiH7HycQld0nXON9FTox1bG3SWWVcrBhcae1TyzkAggN8IAQApqPAWVOzc6L2TlXKVzjSEedfobBXmUNna0WL59VFXVnX1crwIAO5EyljRc1UjYMEDfbWkapbB_HszkHo4xdxvD_eUxPqqolIi5Aoi8wm7UOwgH27Z0-IFy7PqC-udT8S_YyciSUNyw965Y5JD_eNmst18jWcRNOkUL1PlCR8GRLvC38x8zpVnaGFw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => ysz1IWfqI5ShxXGWsB7j8f6ttdV-t4oSpcJHVdXCU3o [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:33:04] Production.INFO: AccountID 97 [2025-01-07 05:33:04] Production.INFO: AccountName Dominos 10416 (David Mills) [2025-01-07 05:33:04] Production.INFO: Checkcustomer [2025-01-07 05:33:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010416%20%28David%20Mills%29" [2025-01-07 05:33:07] Production.INFO: Contact id print CheckCustomer Case===f7785be9-5933-4338-9f5d-47dda0ca47b7 [2025-01-07 05:33:07] Production.INFO: -- count --1 [2025-01-07 05:33:07] Production.INFO: AccountID 97 [2025-01-07 05:33:07] Production.INFO: AccountName Dominos 10416 (David Mills) [2025-01-07 05:33:07] Production.INFO: Checkcustomer [2025-01-07 05:33:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010416%20%28David%20Mills%29" [2025-01-07 05:33:10] Production.INFO: Contact id print CheckCustomer Case===f7785be9-5933-4338-9f5d-47dda0ca47b7 [2025-01-07 05:33:10] Production.INFO: -- count --1 [2025-01-07 05:33:10] Production.INFO: AccountID 110 [2025-01-07 05:33:10] Production.INFO: AccountName Dominos 10422 (David Mills) [2025-01-07 05:33:10] Production.INFO: Checkcustomer [2025-01-07 05:33:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010422%20%28David%20Mills%29" [2025-01-07 05:33:12] Production.INFO: Contact id print CheckCustomer Case===56e7aabd-b1e3-4807-a57f-483fba350c3e [2025-01-07 05:33:12] Production.INFO: -- count --1 [2025-01-07 05:33:12] Production.INFO: AccountID 110 [2025-01-07 05:33:12] Production.INFO: AccountName Dominos 10422 (David Mills) [2025-01-07 05:33:12] Production.INFO: Checkcustomer [2025-01-07 05:33:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010422%20%28David%20Mills%29" [2025-01-07 05:33:15] Production.INFO: Contact id print CheckCustomer Case===56e7aabd-b1e3-4807-a57f-483fba350c3e [2025-01-07 05:33:15] Production.INFO: -- count --1 [2025-01-07 05:33:15] Production.INFO: AccountID 92 [2025-01-07 05:33:15] Production.INFO: AccountName Dominos 10443 (Ricky Singh) [2025-01-07 05:33:15] Production.INFO: Checkcustomer [2025-01-07 05:33:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010443%20%28Ricky%20Singh%29" [2025-01-07 05:33:18] Production.INFO: Contact id print CheckCustomer Case===21dc8586-f1ab-42cc-9c64-94234cb72e84 [2025-01-07 05:33:18] Production.INFO: -- count --1 [2025-01-07 05:33:18] Production.INFO: AccountID 92 [2025-01-07 05:33:18] Production.INFO: AccountName Dominos 10443 (Ricky Singh) [2025-01-07 05:33:18] Production.INFO: Checkcustomer [2025-01-07 05:33:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010443%20%28Ricky%20Singh%29" [2025-01-07 05:33:20] Production.INFO: Contact id print CheckCustomer Case===21dc8586-f1ab-42cc-9c64-94234cb72e84 [2025-01-07 05:33:20] Production.INFO: -- count --1 [2025-01-07 05:33:20] Production.INFO: -- Xero Add Inovice -- [2025-01-07 05:33:20] Production.INFO: CheckInvoice xerov2: INV11119 [2025-01-07 05:33:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11119 [2025-01-07 05:33:22] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:33:22] Production.INFO: Invoice SubTotal 181.740000 [2025-01-07 05:33:22] Production.INFO: Invoice DetTotal 181.74 [2025-01-07 05:33:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010416%20%28David%20Mills%29" [2025-01-07 05:33:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:33:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:33:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:33:34] 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 (9058564244 - 4585 Highway 7 Unit 18 Woodbridge, ON L4L 9T8 CANADA)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)",Quantity : 1,UnitAmount : 72.660000,LineAmount : 72.660000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)",Quantity : 1,UnitAmount : 51.580000,LineAmount : 51.580000},{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:33:37] Production.INFO: ==== result ===== [2025-01-07 05:33:37] Production.INFO: { "Id": "109fa395-9cc0-4a8e-a76b-072563cb76e1", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736246017537)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "d50f341a-23d5-4395-b18d-117252a6b595", "InvoiceNumber": "INV11119", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 205.38, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "f7785be9-5933-4338-9f5d-47dda0ca47b7", "ContactStatus": "ACTIVE", "Name": "Dominos 10416 (David Mills)", "FirstName": "David", "LastName": "Mills", "EmailAddress": "david@teamtenfold.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(1580833879373+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-29T00:00:00", "Date": "\/Date(1732838400000+0000)\/", "DueDateString": "2024-12-29T00:00:00", "DueDate": "\/Date(1735430400000+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": "5868726a-84ba-4340-a8d5-5cbb7c085f8f", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (9058564244 - 4585 Highway 7 Unit 18 Woodbridge, ON L4L 9T8 CANADA)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "b0e8952f-8c25-483e-b837-657f5f916141", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "VDSL Internet Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)", "UnitAmount": 72.66, "TaxType": "TAX020", "TaxAmount": 9.45, "LineAmount": 72.66, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "811cf925-f7aa-42dc-a6e9-cd8aa38d175f", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)", "UnitAmount": 51.58, "TaxType": "TAX020", "TaxAmount": 6.71, "LineAmount": 51.58, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "23028ec0-7cd4-41c3-86d1-10013c730b4c", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "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": "632d2021-13ec-4bc0-be2d-6ea39ff8151e", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 181.74, "TotalTax": 23.64, "Total": 205.38, "UpdatedDateUTC": "\/Date(1736246017473+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:33:37] Production.INFO: -- Create Invoice id --d50f341a-23d5-4395-b18d-117252a6b595 [2025-01-07 05:33:37] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:33:37] Production.INFO: CheckInvoice xerov2: INV11276 [2025-01-07 05:33:37] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11276 [2025-01-07 05:33:40] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:33:40] Production.INFO: Invoice SubTotal 181.740000 [2025-01-07 05:33:40] Production.INFO: Invoice DetTotal 181.74 [2025-01-07 05:33:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010416%20%28David%20Mills%29" [2025-01-07 05:33:43] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:33:45] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:33:47] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:33:50] 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 (9058564244 - 4585 Highway 7 Unit 18 Woodbridge, ON L4L 9T8 CANADA)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)",Quantity : 1,UnitAmount : 72.660000,LineAmount : 72.660000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)",Quantity : 1,UnitAmount : 51.580000,LineAmount : 51.580000},{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:33:53] Production.INFO: ==== result ===== [2025-01-07 05:33:53] Production.INFO: { "Id": "05b67bff-51ec-4e9e-bf20-342d3fa85225", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736246033145)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "d55b5442-4c8c-4049-a4e0-dca8ad1f55af", "InvoiceNumber": "INV11276", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 205.38, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "f7785be9-5933-4338-9f5d-47dda0ca47b7", "ContactStatus": "ACTIVE", "Name": "Dominos 10416 (David Mills)", "FirstName": "David", "LastName": "Mills", "EmailAddress": "david@teamtenfold.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(1580833879373+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-29T00:00:00", "Date": "\/Date(1735430400000+0000)\/", "DueDateString": "2025-01-28T00:00:00", "DueDate": "\/Date(1738022400000+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": "b6a6267a-4113-4d00-a707-64a3f1f449ba", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (9058564244 - 4585 Highway 7 Unit 18 Woodbridge, ON L4L 9T8 CANADA)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "0c20251d-bd56-451a-bda6-72e4110cc53c", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "VDSL Internet Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)", "UnitAmount": 72.66, "TaxType": "TAX020", "TaxAmount": 9.45, "LineAmount": 72.66, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4dfcc729-d7ac-4320-91ce-c1250a6844c0", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (4585 Highway 7, Unit 18 Woodbridge, ON L4L 9T8 CANADA)", "UnitAmount": 51.58, "TaxType": "TAX020", "TaxAmount": 6.71, "LineAmount": 51.58, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "df7d1ea2-e878-47a2-919a-fd7fcde79fd4", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "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": "4190bd5e-d1c2-4a6e-b7d2-4e68b9cb323a", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 181.74, "TotalTax": 23.64, "Total": 205.38, "UpdatedDateUTC": "\/Date(1736246033067+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:33:53] Production.INFO: -- Create Invoice id --d55b5442-4c8c-4049-a4e0-dca8ad1f55af [2025-01-07 05:33:53] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:33:53] Production.INFO: CheckInvoice xerov2: INV11105 [2025-01-07 05:33:53] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11105 [2025-01-07 05:33:55] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:33:55] Production.INFO: Invoice SubTotal 70.820000 [2025-01-07 05:33:55] Production.INFO: Invoice DetTotal 70.82 [2025-01-07 05:33:55] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010422%20%28David%20Mills%29" [2025-01-07 05:33:57] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:34:00] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:34:02] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:34:05] 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 (19059510999 - 15 Allan Drive Bolton, ON L7E 2B5 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 : 4,UnitAmount : -1.670000,LineAmount : -6.680000} [2025-01-07 05:34:07] Production.INFO: ==== result ===== [2025-01-07 05:34:07] Production.INFO: { "Id": "3904182c-eaf5-492b-bf22-aa3c6d2cf41e", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736246047663)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "96fa101b-10f4-416d-8b53-486449b25d67", "InvoiceNumber": "INV11105", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 80.03, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "56e7aabd-b1e3-4807-a57f-483fba350c3e", "ContactStatus": "ACTIVE", "Name": "Dominos 10422 (David Mills)", "FirstName": "David", "LastName": "Mills", "EmailAddress": "david@teamtenfold.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(1580835623880+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-25T00:00:00", "Date": "\/Date(1732492800000+0000)\/", "DueDateString": "2024-12-25T00:00:00", "DueDate": "\/Date(1735084800000+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": "11fe6b62-d6ff-4481-9d79-03c67ec9675a", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19059510999 - 15 Allan Drive Bolton, ON L7E 2B5 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "f8ad369e-c2ed-4fa6-aba4-e9ecc2ffc8da", "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": -1.67, "TaxType": "TAX020", "TaxAmount": -0.87, "LineAmount": -6.68, "AccountCode": "303", "Tracking": [], "Quantity": 4.0000, "DiscountRate": 0.00, "LineItemID": "17c8f37e-ee89-4a37-89e4-0fffa400efc3", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 70.82, "TotalTax": 9.21, "Total": 80.03, "UpdatedDateUTC": "\/Date(1736246047617+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:34:08] Production.INFO: -- Create Invoice id --96fa101b-10f4-416d-8b53-486449b25d67 [2025-01-07 05:34:08] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:34:08] Production.INFO: CheckInvoice xerov2: INV11262 [2025-01-07 05:34:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11262 [2025-01-07 05:34:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:34:10] Production.INFO: Invoice SubTotal 70.820000 [2025-01-07 05:34:10] Production.INFO: Invoice DetTotal 70.82 [2025-01-07 05:34:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010422%20%28David%20Mills%29" [2025-01-07 05:34:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:34:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:34:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:34:21] 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 (19059510999 - 15 Allan Drive Bolton, ON L7E 2B5 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 : 4,UnitAmount : -1.670000,LineAmount : -6.680000} [2025-01-07 05:34:23] Production.INFO: ==== result ===== [2025-01-07 05:34:23] Production.INFO: { "Id": "851d9855-37d4-49c3-85c0-6c782808e8bb", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736246063786)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "48221bc2-074b-49f0-a362-f9c25e35a054", "InvoiceNumber": "INV11262", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 80.03, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "56e7aabd-b1e3-4807-a57f-483fba350c3e", "ContactStatus": "ACTIVE", "Name": "Dominos 10422 (David Mills)", "FirstName": "David", "LastName": "Mills", "EmailAddress": "david@teamtenfold.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(1580835623880+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-25T00:00:00", "Date": "\/Date(1735084800000+0000)\/", "DueDateString": "2025-01-24T00:00:00", "DueDate": "\/Date(1737676800000+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": "7bf86334-0322-4453-81ab-32be9cf6e3c0", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19059510999 - 15 Allan Drive Bolton, ON L7E 2B5 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "9d5b960f-f0e1-4e70-af62-481be7cb5e3e", "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": -1.67, "TaxType": "TAX020", "TaxAmount": -0.87, "LineAmount": -6.68, "AccountCode": "303", "Tracking": [], "Quantity": 4.0000, "DiscountRate": 0.00, "LineItemID": "9b87f777-af22-4341-be1a-fd67effe8b6b", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 70.82, "TotalTax": 9.21, "Total": 80.03, "UpdatedDateUTC": "\/Date(1736246063740+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:34:23] Production.INFO: -- Create Invoice id --48221bc2-074b-49f0-a362-f9c25e35a054 [2025-01-07 05:34:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:34:23] Production.INFO: CheckInvoice xerov2: INV11118 [2025-01-07 05:34:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11118 [2025-01-07 05:34:26] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:34:26] Production.INFO: Invoice SubTotal 170.000000 [2025-01-07 05:34:26] Production.INFO: Invoice DetTotal 170 [2025-01-07 05:34:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010443%20%28Ricky%20Singh%29" [2025-01-07 05:34:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:34:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:34:33] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:34:35] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 60.000000,LineAmount : 60.000000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)",Quantity : 1,UnitAmount : 73.420000,LineAmount : 73.420000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)",Quantity : 1,UnitAmount : 51.580000,LineAmount : 51.580000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service",Quantity : 3,UnitAmount : -5.000000,LineAmount : -15.000000} [2025-01-07 05:34:37] Production.INFO: ==== result ===== [2025-01-07 05:34:37] Production.INFO: { "Id": "9c1d64f7-28a8-4200-b87a-b3964b653a94", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736246077912)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "728d2dfd-0f01-4d69-b05a-26a43f397e14", "InvoiceNumber": "INV11118", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 192.10, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "21dc8586-f1ab-42cc-9c64-94234cb72e84", "ContactStatus": "ACTIVE", "Name": "Dominos 10443 (Ricky Singh)", "FirstName": "Ricky", "LastName": "Singh", "EmailAddress": "ricky_bhawar@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(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-29T00:00:00", "Date": "\/Date(1732838400000+0000)\/", "DueDateString": "2024-12-29T00:00:00", "DueDate": "\/Date(1735430400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 60.00, "TaxType": "TAX020", "TaxAmount": 7.80, "LineAmount": 60.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "20314d23-d22f-4bc4-a2a8-f5c42b5c6570", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "VDSL Internet Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)", "UnitAmount": 73.42, "TaxType": "TAX020", "TaxAmount": 9.54, "LineAmount": 73.42, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "9a552c6b-8b6c-4e2e-815e-f7a752c39426", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)", "UnitAmount": 51.58, "TaxType": "TAX020", "TaxAmount": 6.71, "LineAmount": 51.58, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4bd6f3e4-2b0a-462b-a29e-3f8841fcf8fe", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "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.95, "LineAmount": -15.00, "AccountCode": "303", "Tracking": [], "Quantity": 3.0000, "DiscountRate": 0.00, "LineItemID": "97386e0b-4a38-49be-800c-db5d0c037b43", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 170.00, "TotalTax": 22.10, "Total": 192.10, "UpdatedDateUTC": "\/Date(1736246077867+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:34:37] Production.INFO: -- Create Invoice id --728d2dfd-0f01-4d69-b05a-26a43f397e14 [2025-01-07 05:34:37] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:34:37] Production.INFO: CheckInvoice xerov2: INV11275 [2025-01-07 05:34:37] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11275 [2025-01-07 05:34:41] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:34:41] Production.INFO: Invoice SubTotal 170.000000 [2025-01-07 05:34:41] Production.INFO: Invoice DetTotal 170 [2025-01-07 05:34:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010443%20%28Ricky%20Singh%29" [2025-01-07 05:34:43] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:34:46] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:34:49] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:34:51] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 60.000000,LineAmount : 60.000000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "VDSL Internet Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)",Quantity : 1,UnitAmount : 73.420000,LineAmount : 73.420000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)",Quantity : 1,UnitAmount : 51.580000,LineAmount : 51.580000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service",Quantity : 3,UnitAmount : -5.000000,LineAmount : -15.000000} [2025-01-07 05:34:53] Production.INFO: ==== result ===== [2025-01-07 05:34:53] Production.INFO: { "Id": "032ee8fc-ebda-487e-9035-dbc00efd03db", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736246093931)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "88b035f9-7061-47da-959c-029393a99067", "InvoiceNumber": "INV11275", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 192.10, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "21dc8586-f1ab-42cc-9c64-94234cb72e84", "ContactStatus": "ACTIVE", "Name": "Dominos 10443 (Ricky Singh)", "FirstName": "Ricky", "LastName": "Singh", "EmailAddress": "ricky_bhawar@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(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-29T00:00:00", "Date": "\/Date(1735430400000+0000)\/", "DueDateString": "2025-01-28T00:00:00", "DueDate": "\/Date(1738022400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 60.00, "TaxType": "TAX020", "TaxAmount": 7.80, "LineAmount": 60.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "6dbf4526-eeef-438e-bc4f-489e468cb9eb", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "VDSL Internet Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)", "UnitAmount": 73.42, "TaxType": "TAX020", "TaxAmount": 9.54, "LineAmount": 73.42, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "0e040731-c60b-4db3-8773-90949621536e", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (54 Brock St. W. Unit 2 Uxbridge, ON L9P 1P4 Canada)", "UnitAmount": 51.58, "TaxType": "TAX020", "TaxAmount": 6.71, "LineAmount": 51.58, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "b2c18a5a-aacb-4bda-be9f-dea8e3c01ae6", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "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.95, "LineAmount": -15.00, "AccountCode": "303", "Tracking": [], "Quantity": 3.0000, "DiscountRate": 0.00, "LineItemID": "6e0a5a44-28f2-4108-bc41-d2a82f44e942", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 170.00, "TotalTax": 22.10, "Total": 192.10, "UpdatedDateUTC": "\/Date(1736246093883+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:34:53] Production.INFO: -- Create Invoice id --88b035f9-7061-47da-959c-029393a99067 [2025-01-07 05:34:53] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:34:53] Production.INFO: -- Xero End Inovice -- [2025-01-07 05:34:53] Production.INFO: ==6297== Releasing lock... [2025-01-07 05:34:53] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10434 #Stops# [2025-01-07 05:34:53] Production.INFO: 32.5 MB #Memory Used#