[2025-01-07 04:46:03] Production.INFO: -- Xero Api Check -- [2025-01-07 04:46: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.894974 [namelookup_time] => 0.53413 [connect_time] => 0.542071 [pretransfer_time] => 0.768394 [size_upload] => 82 [size_download] => 2755 [speed_download] => 3078 [speed_upload] => 91 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.894934 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 41668 ) [2025-01-07 04:46:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNDMxNjQsImV4cCI6MTczNjI0MzQ2NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjQzMTY0LCJhdF9oYXNoIjoiUWlMdDJfOEhUOTFFcEdoUzVaUGQxQSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1Mm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wieGVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.IkbEJbM_m3R-NdJuVWjcWpLHg8diovCW54Rx28a2w41i2m8aAAPo7dmpwZYcd3DbUE-ftZaOl3Qp8FmdNu91tPXuFnbGBsdu-7XJLeRrOTRhsme4AAOyZGtpUbLf5xKU4tYd8mCIcj60o-zNbf8ySkEiqjXSsmRJuGsP_R4jTlbCD1fYNUNtYck1SLcdYJIn5Lwh0syeeZxcNQ6kFC1ZHd3zCXeotxgSzqQ5eur5IXxpofaV5Lxs32rGNrcHLNjZ40_ycFwS61Z_mFhv-e3jyTpE1TMd_L8NT3m_KCEV3VTY0h5NHF4oE3OuOnJ-4pigDqpYh4HCipbmnVm_5MoQPw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 0OYGDyj1_MYgFBGXXQ4VyRcSeYc1wr3tGJUuX7QCbqs [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 04:46:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6Ij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250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.IkbEJbM_m3R-NdJuVWjcWpLHg8diovCW54Rx28a2w41i2m8aAAPo7dmpwZYcd3DbUE-ftZaOl3Qp8FmdNu91tPXuFnbGBsdu-7XJLeRrOTRhsme4AAOyZGtpUbLf5xKU4tYd8mCIcj60o-zNbf8ySkEiqjXSsmRJuGsP_R4jTlbCD1fYNUNtYck1SLcdYJIn5Lwh0syeeZxcNQ6kFC1ZHd3zCXeotxgSzqQ5eur5IXxpofaV5Lxs32rGNrcHLNjZ40_ycFwS61Z_mFhv-e3jyTpE1TMd_L8NT3m_KCEV3VTY0h5NHF4oE3OuOnJ-4pigDqpYh4HCipbmnVm_5MoQPw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 0OYGDyj1_MYgFBGXXQ4VyRcSeYc1wr3tGJUuX7QCbqs [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 04:46:04] Production.INFO: AccountID 124 [2025-01-07 04:46:04] Production.INFO: AccountName Dominos 39009 (Mudassar Zia) [2025-01-07 04:46:04] Production.INFO: Checkcustomer [2025-01-07 04:46:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2039009%20%28Mudassar%20Zia%29" [2025-01-07 04:46:06] Production.INFO: Contact id print CheckCustomer Case===40c47681-8e37-4e12-be60-e7c71250891f [2025-01-07 04:46:06] Production.INFO: -- count --1 [2025-01-07 04:46:06] Production.INFO: AccountID 153 [2025-01-07 04:46:06] Production.INFO: AccountName Dominos 10191 (Chandresh Patel) [2025-01-07 04:46:06] Production.INFO: Checkcustomer [2025-01-07 04:46:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010191%20%28Chandresh%20Patel%29" [2025-01-07 04:46:09] Production.INFO: Contact id print CheckCustomer Case===a1f84b26-3d74-4603-893d-c86292f301ef [2025-01-07 04:46:09] Production.INFO: -- count --1 [2025-01-07 04:46:09] Production.INFO: AccountID 154 [2025-01-07 04:46:09] Production.INFO: AccountName Dominos 10385 (Sandeep Chaudhari) [2025-01-07 04:46:09] Production.INFO: Checkcustomer [2025-01-07 04:46:09] 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 04:46:11] Production.INFO: Contact id print CheckCustomer Case===f21476d6-c1e8-4e8b-b2a8-87f68276aedf [2025-01-07 04:46:11] Production.INFO: -- count --1 [2025-01-07 04:46:11] Production.INFO: AccountID 182 [2025-01-07 04:46:11] Production.INFO: AccountName Dominos 39049 (Sandeep Chaudhari) [2025-01-07 04:46:11] Production.INFO: Checkcustomer [2025-01-07 04:46:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2039049%20%28Sandeep%20Chaudhari%29" [2025-01-07 04:46:14] Production.INFO: Contact id print CheckCustomer Case===1c0b2017-4eb0-4996-8c28-357329632ba9 [2025-01-07 04:46:14] Production.INFO: -- count --1 [2025-01-07 04:46:14] Production.INFO: AccountID 188 [2025-01-07 04:46:14] Production.INFO: AccountName All Care Insurance Brokers Ltd. [2025-01-07 04:46:14] Production.INFO: Checkcustomer [2025-01-07 04:46:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Care%20Insurance%20Brokers%20Ltd." [2025-01-07 04:46:16] Production.INFO: Contact id print CheckCustomer Case===6d542d8f-684c-435c-82fd-abdec98b3c10 [2025-01-07 04:46:16] Production.INFO: -- count --1 [2025-01-07 04:46:16] Production.INFO: -- Xero Add Inovice -- [2025-01-07 04:46:16] Production.INFO: CheckInvoice xerov2: INV11316 [2025-01-07 04:46:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11316 [2025-01-07 04:46:18] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:46:18] Production.INFO: Invoice SubTotal 62.500000 [2025-01-07 04:46:18] Production.INFO: Invoice DetTotal 62.5 [2025-01-07 04:46:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2039009%20%28Mudassar%20Zia%29" [2025-01-07 04:46:21] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:46:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:46:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:46:28] Production.INFO: =========Invoices String here======{taxType:"TAX012",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX012",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (14039819191 - 104 River Heights Blvd 4A Cochrane, AB T4C 2T8 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX012",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 3,UnitAmount : -5.000000,LineAmount : -15.000000} [2025-01-07 04:46:32] Production.INFO: ==== result ===== [2025-01-07 04:46:32] Production.INFO: { "Id": "04c413c5-69cd-4854-87fb-864bfd9bdcde", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243192077)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "81cc19a9-231a-4771-9a59-c3c48ae68295", "InvoiceNumber": "INV11316", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 65.63, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "40c47681-8e37-4e12-be60-e7c71250891f", "ContactStatus": "ACTIVE", "Name": "Dominos 39009 (Mudassar Zia)", "FirstName": "Mudassar", "LastName": "Zia", "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(1730122119387+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-06T00:00:00", "Date": "\/Date(1736121600000+0000)\/", "DueDateString": "2025-02-05T00:00:00", "DueDate": "\/Date(1738713600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX012", "TaxAmount": 3.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "8cec1cf5-d0c8-4ea9-93ed-c58060c7f1c8", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14039819191 - 104 River Heights Blvd 4A Cochrane, AB T4C 2T8 Canada)", "UnitAmount": 2.50, "TaxType": "TAX012", "TaxAmount": 0.13, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "74ce1949-b03a-424e-b8cf-a0b00a1f55ca", "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": "TAX012", "TaxAmount": -0.75, "LineAmount": -15.00, "AccountCode": "303", "Tracking": [], "Quantity": 3.0000, "DiscountRate": 0.00, "LineItemID": "2e529ae7-0158-48b1-b149-82273bc45f12", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 62.50, "TotalTax": 3.13, "Total": 65.63, "UpdatedDateUTC": "\/Date(1736243192013+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:46:32] Production.INFO: -- Create Invoice id --81cc19a9-231a-4771-9a59-c3c48ae68295 [2025-01-07 04:46:32] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:46:32] Production.INFO: CheckInvoice xerov2: INV11317 [2025-01-07 04:46:32] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11317 [2025-01-07 04:46:34] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:46:34] Production.INFO: Invoice SubTotal 52.500000 [2025-01-07 04:46:34] Production.INFO: Invoice DetTotal 52.5 [2025-01-07 04:46:34] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2010191%20%28Chandresh%20Patel%29" [2025-01-07 04:46:36] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:46:39] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:46:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:46:44] Production.INFO: =========Invoices String here======{taxType:"TAX012",AccountCode : 203,DiscountRate : 0.000000,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX012",AccountCode : 303,DiscountRate : 0.000000,"Description": "Provides a $5/store/month discount when 3+ stores have OnSwitch Cloud Phone service",Quantity : 1,UnitAmount : -25.000000,LineAmount : -25.000000},{taxType:"TAX012",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (17809689999 - 3919 49 Ave, Unit 121, Stony Plain, AB T7Z2J7)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 04:46:46] Production.INFO: ==== result ===== [2025-01-07 04:46:46] Production.INFO: { "Id": "7702226a-1e24-4f60-8cca-874ad6eb3682", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243206941)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "1047e3bd-b70d-456b-873f-70ae473c9c0d", "InvoiceNumber": "INV11317", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 55.13, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "a1f84b26-3d74-4603-893d-c86292f301ef", "ContactStatus": "ACTIVE", "Name": "Dominos 10191 (Chandresh Patel)", "FirstName": "Chandresh", "LastName": "Patel", "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(1639845523350+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-06T00:00:00", "Date": "\/Date(1736121600000+0000)\/", "DueDateString": "2025-02-05T00:00:00", "DueDate": "\/Date(1738713600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 4 Line Flat Rate", "UnitAmount": 75.00, "TaxType": "TAX012", "TaxAmount": 3.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4623d3f4-693c-41b9-aea0-78f1f0adbd65", "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": -25.00, "TaxType": "TAX012", "TaxAmount": -1.25, "LineAmount": -25.00, "AccountCode": "303", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "8b137afa-a011-4848-9d0a-0f5620d84ce8", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (17809689999 - 3919 49 Ave, Unit 121, Stony Plain, AB T7Z2J7)", "UnitAmount": 2.50, "TaxType": "TAX012", "TaxAmount": 0.13, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "185055dd-5efb-460b-9dde-0a49a7962767", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 52.50, "TotalTax": 2.63, "Total": 55.13, "UpdatedDateUTC": "\/Date(1736243206880+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:46:46] Production.INFO: -- Create Invoice id --1047e3bd-b70d-456b-873f-70ae473c9c0d [2025-01-07 04:46:46] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:46:46] Production.INFO: CheckInvoice xerov2: INV11318 [2025-01-07 04:46:46] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11318 [2025-01-07 04:46:49] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:46:49] Production.INFO: Invoice SubTotal 52.500000 [2025-01-07 04:46:49] Production.INFO: Invoice DetTotal 52.5 [2025-01-07 04:46:49] 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 04:46:51] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:46:53] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:46:55] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:46:58] 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 04:47:02] Production.INFO: ==== result ===== [2025-01-07 04:47:02] Production.INFO: { "Id": "01cea319-6a15-46db-a1a9-f95f591fdb29", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243222160)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "0cf2b0ce-2b21-4deb-a0aa-a9073c97e1f9", "InvoiceNumber": "INV11318", "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": "2025-01-06T00:00:00", "Date": "\/Date(1736121600000+0000)\/", "DueDateString": "2025-02-05T00:00:00", "DueDate": "\/Date(1738713600000+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": "4397a866-98fd-47c9-81ac-d3ea1e524329", "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": "1f45429c-1f4f-4aec-8de6-983422e09be3", "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": "e13e97e8-cdfb-43b2-b7b2-b3224d115d95", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 52.50, "TotalTax": 6.83, "Total": 59.33, "UpdatedDateUTC": "\/Date(1736243222113+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:47:02] Production.INFO: -- Create Invoice id --0cf2b0ce-2b21-4deb-a0aa-a9073c97e1f9 [2025-01-07 04:47:02] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:47:02] Production.INFO: CheckInvoice xerov2: INV11312 [2025-01-07 04:47:02] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11312 [2025-01-07 04:47:05] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:47:05] Production.INFO: Invoice SubTotal 50.000000 [2025-01-07 04:47:05] Production.INFO: Invoice DetTotal 50 [2025-01-07 04:47:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Dominos%2039049%20%28Sandeep%20Chaudhari%29" [2025-01-07 04:47:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:47:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:47:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:47:15] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,"Description": "Restaurant - 4 Line Flat Rate",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,"Description": "Provides a $5/store/month discount when 5+ stores have OnSwitch Cloud Phone service",Quantity : 1,UnitAmount : -25.000000,LineAmount : -25.000000} [2025-01-07 04:47:18] Production.INFO: ==== result ===== [2025-01-07 04:47:18] Production.INFO: { "Id": "366ea49d-83b3-41b7-97ff-ec25250c75f4", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243238635)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "fa4ee3d3-e340-4246-8492-e467e9fd6a83", "InvoiceNumber": "INV11312", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 56.50, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "1c0b2017-4eb0-4996-8c28-357329632ba9", "ContactStatus": "ACTIVE", "Name": "Dominos 39049 (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(1697457583520+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-05T00:00:00", "Date": "\/Date(1736035200000+0000)\/", "DueDateString": "2025-02-04T00:00:00", "DueDate": "\/Date(1738627200000+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, "LineItemID": "1a6baa42-9d11-4a91-ac01-064f84bb8837", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Provides a $5/store/month discount when 5+ stores have OnSwitch Cloud Phone service", "UnitAmount": -25.00, "TaxType": "TAX020", "TaxAmount": -3.25, "LineAmount": -25.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "52a45cf4-b6c1-46d9-a52d-276281af1516", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 50.00, "TotalTax": 6.50, "Total": 56.50, "UpdatedDateUTC": "\/Date(1736243238557+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:47:18] Production.INFO: -- Create Invoice id --fa4ee3d3-e340-4246-8492-e467e9fd6a83 [2025-01-07 04:47:18] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:47:18] Production.INFO: CheckInvoice xerov2: INV11313 [2025-01-07 04:47:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11313 [2025-01-07 04:47:20] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 04:47:20] Production.INFO: Invoice SubTotal 22.590000 [2025-01-07 04:47:20] Production.INFO: Invoice DetTotal 22.59 [2025-01-07 04:47:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="All%20Care%20Insurance%20Brokers%20Ltd." [2025-01-07 04:47:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 04:47:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 04:47:28] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 04:47:31] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 12-05-2024 To 01-04-2025",Quantity : 1,UnitAmount : 10.090000,LineAmount : 10.090000},{taxType:"TAX020",AccountCode : 203,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 1,UnitAmount : 10.000000,LineAmount : 10.000000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (9053321362 - 1332 Khalsa Drive 11 Mississauga, ON L5S 0A2 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 04:47:35] Production.INFO: ==== result ===== [2025-01-07 04:47:35] Production.INFO: { "Id": "222f41a6-dfe0-4ddc-94e4-9f2722f12c94", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736243255019)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "8fe00cee-cd6b-4c68-af5c-b3f3c977f2d8", "InvoiceNumber": "INV11313", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 25.53, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "6d542d8f-684c-435c-82fd-abdec98b3c10", "ContactStatus": "ACTIVE", "Name": "All Care Insurance Brokers Ltd.", "FirstName": "Manwinder", "LastName": "Mangat", "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(1696240411443+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-05T00:00:00", "Date": "\/Date(1736035200000+0000)\/", "DueDateString": "2025-02-04T00:00:00", "DueDate": "\/Date(1738627200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 12-05-2024 To 01-04-2025", "UnitAmount": 10.09, "TaxType": "TAX020", "TaxAmount": 1.31, "LineAmount": 10.09, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "559beff6-59b2-46f7-b768-9380785ef777", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 1.30, "LineAmount": 10.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "517ffbeb-a52c-4931-a09c-87eb02a509ca", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (9053321362 - 1332 Khalsa Drive 11 Mississauga, ON L5S 0A2 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "a7c886ed-0615-45d9-99bc-8a4612131bbc", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 22.59, "TotalTax": 2.94, "Total": 25.53, "UpdatedDateUTC": "\/Date(1736243254973+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 04:47:35] Production.INFO: -- Create Invoice id --8fe00cee-cd6b-4c68-af5c-b3f3c977f2d8 [2025-01-07 04:47:35] Production.INFO: -- Create Invoice Done -- [2025-01-07 04:47:35] Production.INFO: -- Xero End Inovice -- [2025-01-07 04:47:35] Production.INFO: ==2314== Releasing lock... [2025-01-07 04:47:35] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10420 #Stops# [2025-01-07 04:47:35] Production.INFO: 32.5 MB #Memory Used#