[2025-01-07 05:27:03] Production.INFO: -- Xero Api Check -- [2025-01-07 05:27: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] => 853 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.27282 [namelookup_time] => 0.534923 [connect_time] => 0.629963 [pretransfer_time] => 1.025061 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2164 [speed_upload] => 64 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.27275 [redirect_time] => 0 [redirect_url] => [primary_ip] => 2.22.251.42 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 35118 ) [2025-01-07 05:27:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDU2MjQsImV4cCI6MTczNjI0NTkyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQ1NjI0LCJhdF9oYXNoIjoiWWo3XzRKMEdzS0s2T2lsVWU4VWZfZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1Mm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c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.iVqt1WJIEXVfO-5e_qy4LEWNXURzBNnJxJPHVRHBJKd-pA8Rsf3vIEeChmJnUTH5OfK-UTUPwpgOFvZ0Xd1ElB_NacT7iMmKy7o8SwLmTzLTa3KNDY9am4tM6xhVox2t2XXEk6I6b56d-kNaJ84PpzZGdUnooxi3oMIqaOUqNCEPtOzwWdPvVEndyhsPHCam2UUyGfk92c0cVT-ZBlbrWsRAFqTBFIZxPmCtDjUet-dsoe5FlCEuPHhfMVBO-l601qWcvqhGSZ02Rcv-gSnTh_ElBxeWYi3nNfoa1bGnJSCmDdKIcjaFBrWftdRCO6jSUXsJAt_ORrSC_2h-A67S4w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => T8v0oV3EqYMc-Tm10RBBy0FEDrT6oawScZwYhMl3dH4 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:27:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2Nz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VfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.iVqt1WJIEXVfO-5e_qy4LEWNXURzBNnJxJPHVRHBJKd-pA8Rsf3vIEeChmJnUTH5OfK-UTUPwpgOFvZ0Xd1ElB_NacT7iMmKy7o8SwLmTzLTa3KNDY9am4tM6xhVox2t2XXEk6I6b56d-kNaJ84PpzZGdUnooxi3oMIqaOUqNCEPtOzwWdPvVEndyhsPHCam2UUyGfk92c0cVT-ZBlbrWsRAFqTBFIZxPmCtDjUet-dsoe5FlCEuPHhfMVBO-l601qWcvqhGSZ02Rcv-gSnTh_ElBxeWYi3nNfoa1bGnJSCmDdKIcjaFBrWftdRCO6jSUXsJAt_ORrSC_2h-A67S4w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => T8v0oV3EqYMc-Tm10RBBy0FEDrT6oawScZwYhMl3dH4 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 05:27:04] Production.INFO: AccountID 70 [2025-01-07 05:27:04] Production.INFO: AccountName Dominos 10293 (David Mills) [2025-01-07 05:27:04] Production.INFO: Checkcustomer [2025-01-07 05:27:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010293%20%28David%20Mills%29" [2025-01-07 05:27:07] Production.INFO: Contact id print CheckCustomer Case===dd25779b-67aa-4626-b1f4-381418d46919 [2025-01-07 05:27:07] Production.INFO: -- count --1 [2025-01-07 05:27:07] Production.INFO: AccountID 54 [2025-01-07 05:27:07] Production.INFO: AccountName Dominos 10296 (Gurinder Saini) [2025-01-07 05:27:07] Production.INFO: Checkcustomer [2025-01-07 05:27:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010296%20%28Gurinder%20Saini%29" [2025-01-07 05:27:10] Production.INFO: Contact id print CheckCustomer Case===6c1941a7-23be-4018-9a2e-523e55d27a57 [2025-01-07 05:27:10] Production.INFO: -- count --1 [2025-01-07 05:27:10] Production.INFO: AccountID 127 [2025-01-07 05:27:10] Production.INFO: AccountName Dominos 10297 (Shane Linthorne) [2025-01-07 05:27:10] Production.INFO: Checkcustomer [2025-01-07 05:27:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010297%20%28Shane%20Linthorne%29" [2025-01-07 05:27:13] Production.INFO: Contact id print CheckCustomer Case===d8f292bb-743b-4f94-916e-1de8803fa73f [2025-01-07 05:27:13] Production.INFO: -- count --1 [2025-01-07 05:27:13] Production.INFO: AccountID 127 [2025-01-07 05:27:13] Production.INFO: AccountName Dominos 10297 (Shane Linthorne) [2025-01-07 05:27:13] Production.INFO: Checkcustomer [2025-01-07 05:27:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010297%20%28Shane%20Linthorne%29" [2025-01-07 05:27:15] Production.INFO: Contact id print CheckCustomer Case===d8f292bb-743b-4f94-916e-1de8803fa73f [2025-01-07 05:27:15] Production.INFO: -- count --1 [2025-01-07 05:27:15] Production.INFO: AccountID 32 [2025-01-07 05:27:15] Production.INFO: AccountName Dominos 10353 (Ronny Khan) [2025-01-07 05:27:15] Production.INFO: Checkcustomer [2025-01-07 05:27:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010353%20%28Ronny%20Khan%29" [2025-01-07 05:27:18] Production.INFO: Contact id print CheckCustomer Case===a80d32c8-bbaa-43c9-b4d0-a7fff9d3ef21 [2025-01-07 05:27:18] Production.INFO: -- count --1 [2025-01-07 05:27:18] Production.INFO: AccountID 101 [2025-01-07 05:27:18] Production.INFO: AccountName Dominos 10364 (Shane Linthorne) [2025-01-07 05:27:18] Production.INFO: Checkcustomer [2025-01-07 05:27:18] 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:27:20] Production.INFO: Contact id print CheckCustomer Case===12ca1405-c90f-4ad7-83b0-d937a569ffd9 [2025-01-07 05:27:20] Production.INFO: -- count --1 [2025-01-07 05:27:20] Production.INFO: -- Xero Add Inovice -- [2025-01-07 05:27:20] Production.INFO: CheckInvoice xerov2: INV11199 [2025-01-07 05:27:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11199 [2025-01-07 05:27:23] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:27:23] Production.INFO: Invoice SubTotal 57.500000 [2025-01-07 05:27:23] Production.INFO: Invoice DetTotal 57.5 [2025-01-07 05:27:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010293%20%28David%20Mills%29" [2025-01-07 05:27:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:27:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:27:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:27:33] 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 (19054589858 - 1650 WILLIAMS PKWY BRAMPTON, ON L6S5R7)",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 : -5.000000,LineAmount : -20.000000} [2025-01-07 05:27:35] Production.INFO: ==== result ===== [2025-01-07 05:27:35] Production.INFO: { "Id": "c77e0831-bf70-42b0-a127-843ada470fc9", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245655637)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "71cebf19-e72a-4b19-bd8f-41d6dc1cdc96", "InvoiceNumber": "INV11199", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 64.98, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "dd25779b-67aa-4626-b1f4-381418d46919", "ContactStatus": "ACTIVE", "Name": "Dominos 10293 (David Mills)", "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-12T00:00:00", "Date": "\/Date(1733961600000+0000)\/", "DueDateString": "2025-01-11T00:00:00", "DueDate": "\/Date(1736553600000+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": "0c7cf3c4-c1f1-46c6-8e8e-a3a06358604b", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19054589858 - 1650 WILLIAMS PKWY BRAMPTON, ON L6S5R7)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "31bfee3c-8224-4436-9370-a02a18948150", "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": -2.60, "LineAmount": -20.00, "AccountCode": "303", "Tracking": [], "Quantity": 4.0000, "DiscountRate": 0.00, "LineItemID": "526315d1-b12e-4443-a573-99136be6dbb4", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 57.50, "TotalTax": 7.48, "Total": 64.98, "UpdatedDateUTC": "\/Date(1736245655577+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:27:35] Production.INFO: -- Create Invoice id --71cebf19-e72a-4b19-bd8f-41d6dc1cdc96 [2025-01-07 05:27:35] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:27:35] Production.INFO: CheckInvoice xerov2: INV11203 [2025-01-07 05:27:35] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11203 [2025-01-07 05:27:37] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:27:38] Production.INFO: Invoice SubTotal 333.800000 [2025-01-07 05:27:38] Production.INFO: Invoice DetTotal 333.8 [2025-01-07 05:27:38] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010296%20%28Gurinder%20Saini%29" [2025-01-07 05:27:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:27:44] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:27:46] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:27:50] 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 (15197633030 - 204 SILVERCREEK PKWY N UNIT 1 GUELPH, ON N1H7P7)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "Line of Sight Wireless Internet Access - 50mbps/10mbps",Quantity : 1,UnitAmount : 266.300000,LineAmount : 266.300000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 2,UnitAmount : -5.000000,LineAmount : -10.000000} [2025-01-07 05:27:52] Production.INFO: ==== result ===== [2025-01-07 05:27:52] Production.INFO: { "Id": "395ad947-f57d-4244-a70f-7025281b4652", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245672763)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "f837e434-c6dd-4c59-a176-aaefe141de84", "InvoiceNumber": "INV11203", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 377.20, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "6c1941a7-23be-4018-9a2e-523e55d27a57", "ContactStatus": "ACTIVE", "Name": "Dominos 10296 (Gurinder Saini)", "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-13T00:00:00", "Date": "\/Date(1734048000000+0000)\/", "DueDateString": "2025-01-12T00:00:00", "DueDate": "\/Date(1736640000000+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": "d2b4c3f4-ca97-40c7-998c-e2bbf790f667", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (15197633030 - 204 SILVERCREEK PKWY N UNIT 1 GUELPH, ON N1H7P7)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "ebb099f2-4465-40d2-8bd0-d0817af6ecbd", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Line of Sight Wireless Internet Access - 50mbps/10mbps", "UnitAmount": 266.30, "TaxType": "TAX020", "TaxAmount": 34.62, "LineAmount": 266.30, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "60f1076e-dd8e-456d-a8a6-b47500e72dcd", "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": -1.30, "LineAmount": -10.00, "AccountCode": "303", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "bbfdf53b-c6e0-4ac1-aa38-7d980515ad9e", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 333.80, "TotalTax": 43.40, "Total": 377.20, "UpdatedDateUTC": "\/Date(1736245672713+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:27:52] Production.INFO: -- Create Invoice id --f837e434-c6dd-4c59-a176-aaefe141de84 [2025-01-07 05:27:52] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:27:52] Production.INFO: CheckInvoice xerov2: INV11131 [2025-01-07 05:27:52] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11131 [2025-01-07 05:27:54] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:27:54] Production.INFO: Invoice SubTotal 292.590000 [2025-01-07 05:27:54] Production.INFO: Invoice DetTotal 292.59 [2025-01-07 05:27:54] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010297%20%28Shane%20Linthorne%29" [2025-01-07 05:27:57] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:28:00] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:28:02] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:28:04] 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 (15198539000 - 352 Queen Street Acton, ON L7J1R2 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},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "Cable Internet Service - 120x15 (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)",Quantity : 1,UnitAmount : 160.480000,LineAmount : 160.480000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)",Quantity : 1,UnitAmount : 64.610000,LineAmount : 64.610000} [2025-01-07 05:28:07] Production.INFO: ==== result ===== [2025-01-07 05:28:07] Production.INFO: { "Id": "6366e7ab-8c6a-4bc5-8d6b-eb5b6dd7d2e2", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245687435)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "d61419cd-c2f2-442d-a7ff-36cfcd71552a", "InvoiceNumber": "INV11131", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 330.63, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "d8f292bb-743b-4f94-916e-1de8803fa73f", "ContactStatus": "ACTIVE", "Name": "Dominos 10297 (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(1582260450560+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-01T00:00:00", "Date": "\/Date(1733011200000+0000)\/", "DueDateString": "2024-12-31T00:00:00", "DueDate": "\/Date(1735603200000+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": "0d4255b8-a1e4-4eb0-aefa-46303969cc27", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (15198539000 - 352 Queen Street Acton, ON L7J1R2 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "b557deca-ba78-42e5-9244-80733c321a31", "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": "42f1884f-ce05-4ab5-9a44-a3392e888ee9", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Cable Internet Service - 120x15 (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)", "UnitAmount": 160.48, "TaxType": "TAX020", "TaxAmount": 20.86, "LineAmount": 160.48, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "2cb1a280-759f-4a66-a5d4-07783afefd8f", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)", "UnitAmount": 64.61, "TaxType": "TAX020", "TaxAmount": 8.40, "LineAmount": 64.61, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "c050fa61-c96b-45d2-9adf-e05019d9717c", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 292.59, "TotalTax": 38.04, "Total": 330.63, "UpdatedDateUTC": "\/Date(1736245687357+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:28:07] Production.INFO: -- Create Invoice id --d61419cd-c2f2-442d-a7ff-36cfcd71552a [2025-01-07 05:28:07] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:28:07] Production.INFO: CheckInvoice xerov2: INV11289 [2025-01-07 05:28:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11289 [2025-01-07 05:28:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:28:10] Production.INFO: Invoice SubTotal 292.590000 [2025-01-07 05:28:10] Production.INFO: Invoice DetTotal 292.59 [2025-01-07 05:28:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010297%20%28Shane%20Linthorne%29" [2025-01-07 05:28:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:28:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:28:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:28: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 (15198539000 - 352 Queen Street Acton, ON L7J1R2 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},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "Cable Internet Service - 120x15 (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)",Quantity : 1,UnitAmount : 160.480000,LineAmount : 160.480000},{taxType:"TAX020",AccountCode : 204,DiscountRate : 0.000000,"Description": "LTE Internet Failover Service (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)",Quantity : 1,UnitAmount : 64.610000,LineAmount : 64.610000} [2025-01-07 05:28:24] Production.INFO: ==== result ===== [2025-01-07 05:28:24] Production.INFO: { "Id": "35f7db74-23d5-4b40-b8e6-67c69b47f123", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245704049)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "6f40387e-5604-426d-86bf-58c0bbbe8aeb", "InvoiceNumber": "INV11289", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 330.63, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "d8f292bb-743b-4f94-916e-1de8803fa73f", "ContactStatus": "ACTIVE", "Name": "Dominos 10297 (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(1582260450560+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": "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": "bac6ef22-0b4f-49cd-b07d-1f69d7c36003", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (15198539000 - 352 Queen Street Acton, ON L7J1R2 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "de2feb87-d3f6-4f50-ae7e-051bd5c2adb2", "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": "2da704e5-7595-4539-a870-48ff6f7972d2", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Cable Internet Service - 120x15 (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)", "UnitAmount": 160.48, "TaxType": "TAX020", "TaxAmount": 20.86, "LineAmount": 160.48, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "54dd8b4f-033f-4601-b601-41147cc608e4", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "LTE Internet Failover Service (315 Queen Street, Unit #3, Acton, ON, L7J 1R1)", "UnitAmount": 64.61, "TaxType": "TAX020", "TaxAmount": 8.40, "LineAmount": 64.61, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "f40916fe-b350-4cdc-a631-d185ee05af63", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 292.59, "TotalTax": 38.04, "Total": 330.63, "UpdatedDateUTC": "\/Date(1736245704003+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:28:24] Production.INFO: -- Create Invoice id --6f40387e-5604-426d-86bf-58c0bbbe8aeb [2025-01-07 05:28:24] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:28:24] Production.INFO: CheckInvoice xerov2: INV11221 [2025-01-07 05:28:24] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11221 [2025-01-07 05:28:26] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:28:26] Production.INFO: Invoice SubTotal 57.500000 [2025-01-07 05:28:26] Production.INFO: Invoice DetTotal 57.5 [2025-01-07 05:28:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010353%20%28Ronny%20Khan%29" [2025-01-07 05:28:29] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:28:32] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:28:34] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:28:37] 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 (14164292929 - 784 Eglinton Avenue East Toronto, ON M4G2L1)",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:28:39] Production.INFO: ==== result ===== [2025-01-07 05:28:39] Production.INFO: { "Id": "5e84bd12-9a44-4bcf-8fc7-ef8ef51ba1af", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245719827)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "fbaa7e0c-7b92-4592-b487-36295ffa0ca9", "InvoiceNumber": "INV11221", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 64.98, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "a80d32c8-bbaa-43c9-b4d0-a7fff9d3ef21", "ContactStatus": "ACTIVE", "Name": "Dominos 10353 (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-15T00:00:00", "Date": "\/Date(1734220800000+0000)\/", "DueDateString": "2025-01-14T00:00:00", "DueDate": "\/Date(1736812800000+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": "bcee492a-cc29-4e05-bea3-f34c43d2ad48", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14164292929 - 784 Eglinton Avenue East Toronto, ON M4G2L1)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "22fb1a97-c44f-48d9-aec9-72b6428ae451", "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": "64e11f30-75a4-4439-a780-dc8845847fbd", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 57.50, "TotalTax": 7.48, "Total": 64.98, "UpdatedDateUTC": "\/Date(1736245719733+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:28:39] Production.INFO: -- Create Invoice id --fbaa7e0c-7b92-4592-b487-36295ffa0ca9 [2025-01-07 05:28:39] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:28:39] Production.INFO: CheckInvoice xerov2: INV11108 [2025-01-07 05:28:39] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11108 [2025-01-07 05:28:42] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 05:28:42] Production.INFO: Invoice SubTotal 193.180000 [2025-01-07 05:28:42] Production.INFO: Invoice DetTotal 193.18 [2025-01-07 05:28:42] 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:28:45] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 05:28:47] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 05:28:50] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 05:28:52] 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:28:55] Production.INFO: ==== result ===== [2025-01-07 05:28:55] Production.INFO: { "Id": "e229ec62-cae4-4d8a-834a-aa1faea551ab", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736245735579)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "10eed40e-129c-49e6-b3ff-4cdce9206e14", "InvoiceNumber": "INV11108", "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-11-26T00:00:00", "Date": "\/Date(1732579200000+0000)\/", "DueDateString": "2024-12-26T00:00:00", "DueDate": "\/Date(1735171200000+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": "be33a752-2e31-4e0f-9a2c-a72126bfa9c0", "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": "c91553b5-dd7b-405c-a1d9-ebd4f34a3b25", "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": "14a8d802-ee87-42a9-91ba-25804a2faeec", "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": "35b1d439-441d-40eb-af42-53d36e3933e3", "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": "71066132-b32a-46d4-b5b8-9c8b00837c13", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 193.18, "TotalTax": 25.12, "Total": 218.30, "UpdatedDateUTC": "\/Date(1736245735517+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 05:28:55] Production.INFO: -- Create Invoice id --10eed40e-129c-49e6-b3ff-4cdce9206e14 [2025-01-07 05:28:55] Production.INFO: -- Create Invoice Done -- [2025-01-07 05:28:55] Production.INFO: -- Xero End Inovice -- [2025-01-07 05:28:55] Production.INFO: ==5772== Releasing lock... [2025-01-07 05:28:55] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10432 #Stops# [2025-01-07 05:28:55] Production.INFO: 32.5 MB #Memory Used#