[2025-07-02 10:08:03] Production.INFO: -- Xero Api Check -- [2025-07-02 10:08: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] => 857 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.274914 [namelookup_time] => 0.532129 [connect_time] => 0.621858 [pretransfer_time] => 1.011189 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2160 [speed_upload] => 64 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.274857 [redirect_time] => 0 [redirect_url] => [primary_ip] => 104.110.240.65 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 38726 ) [2025-07-02 10:08:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3NTE0NjUyODQsImV4cCI6MTc1MTQ2NTU4NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzUxNDY1Mjg0LCJhdF9oYXNoIjoiZ05Fc1dwSEM3Wkd3bkZHMTQyXzZGdyIsInN1YiI6Ijc1NGMxN2Q3MTA0YTUxODViYjEyZmM5ODFiN2VlMzliIiwiYXV0aF90aW1lIjoxNzQyNDY2MzA1LCJ4ZXJvX3VzZXJpZCI6IjFiOGM2ODExLTJmMGItNGU3Mi05Y2JhLTY5ZDVlM2RmOTEyYyIsImdsb2JhbF9zZXNzaW9uX2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTA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SwieGVyb191c2VyaWQiOiIxYjhjNjgxMS0yZjBiLTRlNzItOWNiYS02OWQ1ZTNkZjkxMmMiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6IjllYWZkYTEzZjk1YTQ2YmM4MjZjNzg3YjFlNGM1ZjUwIiwic2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiLCJqdGkiOiIyNUNEQkY1RjBBNTRGMjlDNjBDNUE2RjU4Qzg3NzMyQSIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiMGZlNDU1NWEtNmNkMy00YjFkLTljNjEtMzAzMjBmMjBmZGFkIiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.rEGNsDKqkquQ2gXaRxaTkf0KkOkmlE0N9zfjkJkhkKJGW7iYFdRRs5wIhWbaeaXooA3MG3roJ3xaD9f4UwnO9SSeqqIrLTQEHvEYeTK4kf3GpihNfhk3yQwwRjNVlQDrjljYS60Zmj0Z2smDmasNlTUTd9XF81mq3-V1ccjxkW6jMWmtQbb2lTUPbRzmUEhnGbjCjlOyyhMh2sF5Bg8wBt2hfN3Z8IZVlKmzUwCbLVNuJJu_V_SMWM94dA88F7vYu2ma1ZFC7cRpVdZclfLfrZN0fhQ2ZPc_TjunnlwiklpQ4HzCiRkEM_9yVntLgoz76qJzKucnj_9AIbrYYAE7rg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 11YyVD75Wm6BgiAmvVLoNy2I6QriIuGGctnDXG36vRc [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-07-02 10:08:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4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sIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.rEGNsDKqkquQ2gXaRxaTkf0KkOkmlE0N9zfjkJkhkKJGW7iYFdRRs5wIhWbaeaXooA3MG3roJ3xaD9f4UwnO9SSeqqIrLTQEHvEYeTK4kf3GpihNfhk3yQwwRjNVlQDrjljYS60Zmj0Z2smDmasNlTUTd9XF81mq3-V1ccjxkW6jMWmtQbb2lTUPbRzmUEhnGbjCjlOyyhMh2sF5Bg8wBt2hfN3Z8IZVlKmzUwCbLVNuJJu_V_SMWM94dA88F7vYu2ma1ZFC7cRpVdZclfLfrZN0fhQ2ZPc_TjunnlwiklpQ4HzCiRkEM_9yVntLgoz76qJzKucnj_9AIbrYYAE7rg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 11YyVD75Wm6BgiAmvVLoNy2I6QriIuGGctnDXG36vRc [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-07-02 10:08:04] Production.INFO: AccountID 194 [2025-07-02 10:08:04] Production.INFO: AccountName Telco Steel Works [2025-07-02 10:08:04] Production.INFO: Checkcustomer [2025-07-02 10:08:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:08:07] Production.INFO: Contact id print CheckCustomer Case===ce77076d-4a3e-4b85-a7f2-c24523d8b78b [2025-07-02 10:08:07] Production.INFO: -- count --1 [2025-07-02 10:08:07] Production.INFO: AccountID 194 [2025-07-02 10:08:07] Production.INFO: AccountName Telco Steel Works [2025-07-02 10:08:07] Production.INFO: Checkcustomer [2025-07-02 10:08:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:08:10] Production.INFO: Contact id print CheckCustomer Case===ce77076d-4a3e-4b85-a7f2-c24523d8b78b [2025-07-02 10:08:10] Production.INFO: -- count --1 [2025-07-02 10:08:10] Production.INFO: AccountID 194 [2025-07-02 10:08:10] Production.INFO: AccountName Telco Steel Works [2025-07-02 10:08:10] Production.INFO: Checkcustomer [2025-07-02 10:08:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:08:14] Production.INFO: Contact id print CheckCustomer Case===ce77076d-4a3e-4b85-a7f2-c24523d8b78b [2025-07-02 10:08:14] Production.INFO: -- count --1 [2025-07-02 10:08:14] Production.INFO: AccountID 194 [2025-07-02 10:08:14] Production.INFO: AccountName Telco Steel Works [2025-07-02 10:08:14] Production.INFO: Checkcustomer [2025-07-02 10:08:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:08:17] Production.INFO: Contact id print CheckCustomer Case===ce77076d-4a3e-4b85-a7f2-c24523d8b78b [2025-07-02 10:08:17] Production.INFO: -- count --1 [2025-07-02 10:08:17] Production.INFO: -- Xero Add Inovice -- [2025-07-02 10:08:17] Production.INFO: CheckInvoice xerov2: INV11805 [2025-07-02 10:08:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11805 [2025-07-02 10:08:20] Production.INFO: Check Invoice Id XEROV20 [2025-07-02 10:08:20] Production.INFO: Invoice SubTotal 109.270000 [2025-07-02 10:08:20] Production.INFO: Invoice DetTotal 109.27 [2025-07-02 10:08:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:08:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-07-02 10:08:26] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-07-02 10:08:29] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-07-02 10:08:32] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 03-04-2025 To 04-03-2025",Quantity : 1,UnitAmount : 9.270000,LineAmount : 9.270000},{taxType:"TAX020",AccountCode : 203,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 5,UnitAmount : 15.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 70.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (courtesy/seldom used phones)",Quantity : 5,UnitAmount : 15.000000,LineAmount : 22.500000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (5198371973 - 550 Southgate Drive Guelph, ON N1G4P6 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-07-02 10:08:35] Production.INFO: ==== result ===== [2025-07-02 10:08:35] Production.INFO: { "Id": "c667dedd-bd0a-4d11-9685-99f6ca813b7d", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1751465315820)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "1a028f5b-356d-4364-b5f3-1056a0bfa9c4", "InvoiceNumber": "INV11805", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 123.49, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 52.50, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "ce77076d-4a3e-4b85-a7f2-c24523d8b78b", "ContactStatus": "ACTIVE", "Name": "Telco Steel Works", "FirstName": "Anne Marie", "LastName": "Bianchi", "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(1696240424807+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-04-04T00:00:00", "Date": "\/Date(1743724800000+0000)\/", "DueDateString": "2025-05-04T00:00:00", "DueDate": "\/Date(1746316800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 03-04-2025 To 04-03-2025", "UnitAmount": 9.27, "TaxType": "TAX020", "TaxAmount": 1.21, "LineAmount": 9.27, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "419bfeb2-377d-477f-9140-4f723f60f70d", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 15.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "LineItemID": "50b81d64-2018-442d-ba6d-4dbcdb37e783", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (courtesy/seldom used phones)", "UnitAmount": 15.00, "TaxType": "TAX020", "TaxAmount": 2.93, "LineAmount": 22.50, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 70.00, "LineItemID": "52a8f515-c8f9-461a-a524-dc2ffc415a05", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 52.5000, "ValidationErrors": [] }, { "Description": "e911 address registration (5198371973 - 550 Southgate Drive Guelph, ON N1G4P6 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "7ee27741-aeb5-4c42-92ef-c467f6ef303f", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 109.27, "TotalTax": 14.22, "Total": 123.49, "UpdatedDateUTC": "\/Date(1751465315743+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-07-02 10:08:35] Production.INFO: -- Create Invoice id --1a028f5b-356d-4364-b5f3-1056a0bfa9c4 [2025-07-02 10:08:35] Production.INFO: -- Create Invoice Done -- [2025-07-02 10:08:35] Production.INFO: CheckInvoice xerov2: INV11638 [2025-07-02 10:08:35] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11638 [2025-07-02 10:08:39] Production.INFO: Check Invoice Id XEROV20 [2025-07-02 10:08:39] Production.INFO: Invoice SubTotal 109.480000 [2025-07-02 10:08:39] Production.INFO: Invoice DetTotal 109.48 [2025-07-02 10:08:39] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:08:41] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-07-02 10:08:45] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-07-02 10:08:48] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-07-02 10:08:51] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 02-04-2025 To 03-03-2025",Quantity : 1,UnitAmount : 9.480000,LineAmount : 9.480000},{taxType:"TAX020",AccountCode : 203,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 5,UnitAmount : 15.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 70.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (courtesy/seldom used phones)",Quantity : 5,UnitAmount : 15.000000,LineAmount : 22.500000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (5198371973 - 550 Southgate Drive Guelph, ON N1G4P6 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-07-02 10:08:54] Production.INFO: ==== result ===== [2025-07-02 10:08:54] Production.INFO: { "Id": "58a991b6-64e8-4191-bfcb-22ee6f919873", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1751465334570)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a2d103bd-8f81-4d93-9325-f66ebc20ed1a", "InvoiceNumber": "INV11638", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 123.72, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 52.50, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "ce77076d-4a3e-4b85-a7f2-c24523d8b78b", "ContactStatus": "ACTIVE", "Name": "Telco Steel Works", "FirstName": "Anne Marie", "LastName": "Bianchi", "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(1696240424807+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-03-04T00:00:00", "Date": "\/Date(1741046400000+0000)\/", "DueDateString": "2025-04-03T00:00:00", "DueDate": "\/Date(1743638400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 02-04-2025 To 03-03-2025", "UnitAmount": 9.48, "TaxType": "TAX020", "TaxAmount": 1.23, "LineAmount": 9.48, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4c6e1260-f16e-46f2-9088-fbf26d180076", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 15.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "LineItemID": "33a3099e-fb1b-49b6-abbc-fe165d30e7ad", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (courtesy/seldom used phones)", "UnitAmount": 15.00, "TaxType": "TAX020", "TaxAmount": 2.93, "LineAmount": 22.50, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 70.00, "LineItemID": "5d9ce274-30a8-4863-9542-bf07929a2e20", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 52.5000, "ValidationErrors": [] }, { "Description": "e911 address registration (5198371973 - 550 Southgate Drive Guelph, ON N1G4P6 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "5cc1bda9-46a1-44af-863c-282b20aa3cab", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 109.48, "TotalTax": 14.24, "Total": 123.72, "UpdatedDateUTC": "\/Date(1751465334507+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-07-02 10:08:54] Production.INFO: -- Create Invoice id --a2d103bd-8f81-4d93-9325-f66ebc20ed1a [2025-07-02 10:08:54] Production.INFO: -- Create Invoice Done -- [2025-07-02 10:08:54] Production.INFO: CheckInvoice xerov2: INV11464 [2025-07-02 10:08:54] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11464 [2025-07-02 10:08:57] Production.INFO: Check Invoice Id XEROV20 [2025-07-02 10:08:58] Production.INFO: Invoice SubTotal 109.080000 [2025-07-02 10:08:58] Production.INFO: Invoice DetTotal 109.08 [2025-07-02 10:08:58] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:09:00] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-07-02 10:09:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-07-02 10:09:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-07-02 10:09:09] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 01-04-2025 To 02-03-2025",Quantity : 1,UnitAmount : 9.080000,LineAmount : 9.080000},{taxType:"TAX020",AccountCode : 203,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 5,UnitAmount : 15.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 70.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (courtesy/seldom used phones)",Quantity : 5,UnitAmount : 15.000000,LineAmount : 22.500000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (5198371973 - 550 Southgate Drive Guelph, ON N1G4P6 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-07-02 10:09:13] Production.INFO: ==== result ===== [2025-07-02 10:09:13] Production.INFO: { "Id": "729642bb-9bed-4e62-90f5-2de694d9479e", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1751465353127)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "dbf14d4d-9288-4d54-a00c-e21436a93bee", "InvoiceNumber": "INV11464", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 123.27, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 52.50, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "ce77076d-4a3e-4b85-a7f2-c24523d8b78b", "ContactStatus": "ACTIVE", "Name": "Telco Steel Works", "FirstName": "Anne Marie", "LastName": "Bianchi", "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(1696240424807+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-02-04T00:00:00", "Date": "\/Date(1738627200000+0000)\/", "DueDateString": "2025-03-06T00:00:00", "DueDate": "\/Date(1741219200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 01-04-2025 To 02-03-2025", "UnitAmount": 9.08, "TaxType": "TAX020", "TaxAmount": 1.18, "LineAmount": 9.08, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "23cb3438-82ef-484d-b2b2-2d15d0d20762", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 15.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "LineItemID": "b97f2cf2-37e3-427f-8734-8436f1f87175", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "License for an Unlimited Canada/US Cloud Phone extension (courtesy/seldom used phones)", "UnitAmount": 15.00, "TaxType": "TAX020", "TaxAmount": 2.93, "LineAmount": 22.50, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 70.00, "LineItemID": "3f77b161-e9cc-4f4b-855b-146e5da0675c", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 52.5000, "ValidationErrors": [] }, { "Description": "e911 address registration (5198371973 - 550 Southgate Drive Guelph, ON N1G4P6 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "accfd0c8-5f57-4e08-a37c-5365d9e38a51", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 109.08, "TotalTax": 14.19, "Total": 123.27, "UpdatedDateUTC": "\/Date(1751465353050+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-07-02 10:09:13] Production.INFO: -- Create Invoice id --dbf14d4d-9288-4d54-a00c-e21436a93bee [2025-07-02 10:09:13] Production.INFO: -- Create Invoice Done -- [2025-07-02 10:09:13] Production.INFO: CheckInvoice xerov2: INV11459 [2025-07-02 10:09:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11459 [2025-07-02 10:09:16] Production.INFO: Check Invoice Id XEROV20 [2025-07-02 10:09:16] Production.INFO: Invoice SubTotal 329.100000 [2025-07-02 10:09:16] Production.INFO: Invoice DetTotal 329.1 [2025-07-02 10:09:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Telco%20Steel%20Works" [2025-07-02 10:09:19] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-07-02 10:09:22] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-07-02 10:09:25] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-07-02 10:09:28] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": "Yealink T33W",Quantity : 2,UnitAmount : 140.550000,LineAmount : 281.100000},{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": "Shipping",Quantity : 1,UnitAmount : 16.000000,LineAmount : 16.000000},{taxType:"TAX020",AccountCode : 202,DiscountRate : 0.000000,"Description": "Phone provisioning",Quantity : 2,UnitAmount : 16.000000,LineAmount : 32.000000} [2025-07-02 10:09:32] Production.INFO: ==== result ===== [2025-07-02 10:09:32] Production.INFO: { "Id": "9b018e8d-0657-4d90-94e1-a791be72e9fc", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1751465371914)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "d1bcc833-f7ab-4a01-99b3-898a0b75d710", "InvoiceNumber": "INV11459", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 371.88, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "ce77076d-4a3e-4b85-a7f2-c24523d8b78b", "ContactStatus": "ACTIVE", "Name": "Telco Steel Works", "FirstName": "Anne Marie", "LastName": "Bianchi", "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(1696240424807+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-02-03T00:00:00", "Date": "\/Date(1738540800000+0000)\/", "DueDateString": "2025-03-05T00:00:00", "DueDate": "\/Date(1741132800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Yealink T33W", "UnitAmount": 140.55, "TaxType": "TAX020", "TaxAmount": 36.54, "LineAmount": 281.10, "AccountCode": "234", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "8a192b8c-09e9-43be-92d7-e609b3b6fcfd", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Shipping", "UnitAmount": 16.00, "TaxType": "TAX020", "TaxAmount": 2.08, "LineAmount": 16.00, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "55ff8d3b-4a85-4f18-8c18-209ba454a030", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Phone provisioning", "UnitAmount": 16.00, "TaxType": "TAX020", "TaxAmount": 4.16, "LineAmount": 32.00, "AccountCode": "202", "Tracking": [], "Quantity": 2.0000, "DiscountRate": 0.00, "LineItemID": "7cc6184e-ba1a-4c80-a297-43d07f97f5f3", "AccountID": "92a889dc-22ae-4d25-b487-df8f4980f0ad", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 329.10, "TotalTax": 42.78, "Total": 371.88, "UpdatedDateUTC": "\/Date(1751465371883+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-07-02 10:09:32] Production.INFO: -- Create Invoice id --d1bcc833-f7ab-4a01-99b3-898a0b75d710 [2025-07-02 10:09:32] Production.INFO: -- Create Invoice Done -- [2025-07-02 10:09:32] Production.INFO: -- Xero End Inovice -- [2025-07-02 10:09:32] Production.INFO: ==9189== Releasing lock... [2025-07-02 10:09:32] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-11150 #Stops# [2025-07-02 10:09:32] Production.INFO: 32.25 MB #Memory Used#