[2025-07-02 15:22:03] Production.INFO: -- Xero Api Check -- [2025-07-02 15:22: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] => 0.946257 [namelookup_time] => 0.282046 [connect_time] => 0.364034 [pretransfer_time] => 0.731192 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2911 [speed_upload] => 86 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.94621 [redirect_time] => 0 [redirect_url] => [primary_ip] => 104.110.240.122 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 36960 ) [2025-07-02 15:22:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3NTE0ODQxMjQsImV4cCI6MTc1MTQ4NDQyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzUxNDg0MTI0LCJhdF9oYXNoIjoiakdnRTlaaEg0aF8wMl9aVEZ0cnNTdyIsInN1YiI6Ijc1NGMxN2Q3MTA0YTUxODViYjEyZmM5ODFiN2VlMzliIiwiYXV0aF90aW1lIjoxNzQyNDY2MzA1LCJ4ZXJvX3VzZXJpZCI6IjFiOGM2ODExLTJmMGItNGU3Mi05Y2JhLTY5ZDVlM2RmOTEyYyIsImdsb2JhbF9zZXNzaW9uX2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiL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c2VyaWQiOiIxYjhjNjgxMS0yZjBiLTRlNzItOWNiYS02OWQ1ZTNkZjkxMmMiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6IjllYWZkYTEzZjk1YTQ2YmM4MjZjNzg3YjFlNGM1ZjUwIiwic2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiLCJqdGkiOiIyNUNEQkY1RjBBNTRGMjlDNjBDNUE2RjU4Qzg3NzMyQSIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiMGZlNDU1NWEtNmNkMy00YjFkLTljNjEtMzAzMjBmMjBmZGFkIiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.qGAbITBm6c7M2EMqvOvtMBT1Pc9Rg-41A7LDvF1XeBLEB-fwIVOAdKwEJ_ltpxEvAPMOHgjl-_1BhJLWE9cJQR2DxP6PSdtEwtEFP_v9kl8bTYrBO2ZQpF1F_qeLL_og15Vw8vadccdPfDGiFRFv_B_obbPU5Ai_xXUwoElc4RfJrvs6Zh_LRPc4oO3Lc2BjIoMs12KGOIMcQwG1NjrjpnDpV_DfJY-JivGAZI6Yy7AkQ8_bGyxdCWmQ665iflGWO6p0rYjm4AmVj2FAn05I4TxFgmWrnT8_4D-WutOg0ne9G-cwvGB9Pzs1NbR_dQnnbhFAbfq5EKPNaRxbm6RhMQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => mmZhY3pHkHFbNuY7cXG6qKe6FT6UDn4APtO0dsYypqQ [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-07-02 15:22:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4R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bmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.qGAbITBm6c7M2EMqvOvtMBT1Pc9Rg-41A7LDvF1XeBLEB-fwIVOAdKwEJ_ltpxEvAPMOHgjl-_1BhJLWE9cJQR2DxP6PSdtEwtEFP_v9kl8bTYrBO2ZQpF1F_qeLL_og15Vw8vadccdPfDGiFRFv_B_obbPU5Ai_xXUwoElc4RfJrvs6Zh_LRPc4oO3Lc2BjIoMs12KGOIMcQwG1NjrjpnDpV_DfJY-JivGAZI6Yy7AkQ8_bGyxdCWmQ665iflGWO6p0rYjm4AmVj2FAn05I4TxFgmWrnT8_4D-WutOg0ne9G-cwvGB9Pzs1NbR_dQnnbhFAbfq5EKPNaRxbm6RhMQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => mmZhY3pHkHFbNuY7cXG6qKe6FT6UDn4APtO0dsYypqQ [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-07-02 15:22:04] Production.INFO: AccountID 237 [2025-07-02 15:22:04] Production.INFO: AccountName Natural Insect Control [2025-07-02 15:22:04] Production.INFO: Checkcustomer [2025-07-02 15:22:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-07-02 15:22:07] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-07-02 15:22:07] Production.INFO: -- count --1 [2025-07-02 15:22:07] Production.INFO: AccountID 237 [2025-07-02 15:22:07] Production.INFO: AccountName Natural Insect Control [2025-07-02 15:22:07] Production.INFO: Checkcustomer [2025-07-02 15:22:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-07-02 15:22:10] Production.INFO: Contact id print CheckCustomer Case===fcade0cf-7b43-4bfe-86cf-b6c9e33f1686 [2025-07-02 15:22:10] Production.INFO: -- count --1 [2025-07-02 15:22:10] Production.INFO: -- Xero Add Inovice -- [2025-07-02 15:22:10] Production.INFO: CheckInvoice xerov2: INV11626 [2025-07-02 15:22:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11626 [2025-07-02 15:22:13] Production.INFO: Check Invoice Id XEROV20 [2025-07-02 15:22:13] Production.INFO: Invoice SubTotal 900.970000 [2025-07-02 15:22:13] Production.INFO: Invoice DetTotal 900.97 [2025-07-02 15:22:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-07-02 15:22:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-07-02 15:22:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-07-02 15:22:23] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-07-02 15:22:25] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 204,"Description": "Managed Hosting: Wordpress (Deluxe) with Website Maintenance Package",Quantity : 1,UnitAmount : 69.770000,LineAmount : 69.770000},{taxType:"TAX020",AccountCode : 212,"Description": "IT: Managed Antivirus subscription (yearly pricing, billed monthly)",Quantity : 8,UnitAmount : 4.000000,LineAmount : 32.000000},{taxType:"TAX020",AccountCode : 203,"Description": "Managed IT: Server (On-premises)",Quantity : 1,UnitAmount : 120.000000,LineAmount : 120.000000},{taxType:"TAX020",AccountCode : 203,"Description": "Managed IT: Workstation (Full Time)",Quantity : 4,UnitAmount : 72.000000,LineAmount : 288.000000},{taxType:"TAX020",AccountCode : 203,"Description": "Managed IT: Workstation (Part Time)",Quantity : 4,UnitAmount : 36.000000,LineAmount : 144.000000},{taxType:"TAX020",AccountCode : 250,"Description": "IT: Microsoft Office 365 - Business Basic subscription",Quantity : 12,UnitAmount : 8.100000,LineAmount : 97.200000},{taxType:"TAX020",AccountCode : 250,"Description": "IT: Microsoft Office 365 - Business Premium subscription",Quantity : 8,UnitAmount : 17.000000,LineAmount : 136.000000},{taxType:"TAX020",AccountCode : 203,"Description": "Ironscales Basic Email Phishing Protection",Quantity : 4,UnitAmount : 3.500000,LineAmount : 14.000000} [2025-07-02 15:22:29] Production.INFO: ==== result ===== [2025-07-02 15:22:29] Production.INFO: { "Id": "c7f91e59-6a30-4938-a708-1b66354f2e30", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1751484149251)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "9cc5616d-89ba-46a6-9942-529f524e8865", "InvoiceNumber": "INV11626", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1018.10, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "fcade0cf-7b43-4bfe-86cf-b6c9e33f1686", "ContactNumber": "Natural Insect Control", "ContactStatus": "ACTIVE", "Name": "Natural Insect Control", "FirstName": "", "LastName": "", "EmailAddress": "", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "AddressLine1": "3737 Netherby Road", "AddressLine2": "", "AddressLine3": "", "AddressLine4": "", "City": "Stevensville", "Region": "ON", "PostalCode": "L0S 1S0", "Country": "", "AttentionTo": "" }, { "AddressType": "POBOX", "AddressLine1": "3737 Netherby Road", "AddressLine2": "", "AddressLine3": "", "AddressLine4": "", "City": "Stevensville", "Region": "ON", "PostalCode": "L0S 1S0", "Country": "", "AttentionTo": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(905) 3822904", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "(905) 3822904", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "9053243923", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1719936265023+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "DefaultCurrency": "CAD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-03-01T00:00:00", "Date": "\/Date(1740787200000+0000)\/", "DueDateString": "2025-03-31T00:00:00", "DueDate": "\/Date(1743379200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Managed Hosting: Wordpress (Deluxe) with Website Maintenance Package", "UnitAmount": 69.77, "TaxType": "TAX020", "TaxAmount": 9.07, "LineAmount": 69.77, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "LineItemID": "14e4c43c-433b-4cf4-8704-4a63580e3427", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "ValidationErrors": [] }, { "Description": "IT: Managed Antivirus subscription (yearly pricing, billed monthly)", "UnitAmount": 4.00, "TaxType": "TAX020", "TaxAmount": 4.16, "LineAmount": 32.00, "AccountCode": "212", "Tracking": [], "Quantity": 8.0000, "LineItemID": "942bfae4-ebc5-422a-9271-d5e240e3f251", "AccountID": "f910948c-6e7a-46ea-91d4-60d5bab373c8", "ValidationErrors": [] }, { "Description": "Managed IT: Server (On-premises)", "UnitAmount": 120.00, "TaxType": "TAX020", "TaxAmount": 15.60, "LineAmount": 120.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "a380644d-56e4-4f28-aac9-1302e8aa1566", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Managed IT: Workstation (Full Time)", "UnitAmount": 72.00, "TaxType": "TAX020", "TaxAmount": 37.44, "LineAmount": 288.00, "AccountCode": "203", "Tracking": [], "Quantity": 4.0000, "LineItemID": "fd0bc7cc-c3e6-41b3-a725-1dc5cfa21d35", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Managed IT: Workstation (Part Time)", "UnitAmount": 36.00, "TaxType": "TAX020", "TaxAmount": 18.72, "LineAmount": 144.00, "AccountCode": "203", "Tracking": [], "Quantity": 4.0000, "LineItemID": "d3cdb563-ca54-43d7-bb0b-b38fc6123c36", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "IT: Microsoft Office 365 - Business Basic subscription", "UnitAmount": 8.10, "TaxType": "TAX020", "TaxAmount": 12.64, "LineAmount": 97.20, "AccountCode": "250", "Tracking": [], "Quantity": 12.0000, "LineItemID": "8c5cc717-8bd6-4989-8104-fba3f5fc9a07", "AccountID": "d5399e58-1ff5-401c-b6b9-7561071439f7", "ValidationErrors": [] }, { "Description": "IT: Microsoft Office 365 - Business Premium subscription", "UnitAmount": 17.00, "TaxType": "TAX020", "TaxAmount": 17.68, "LineAmount": 136.00, "AccountCode": "250", "Tracking": [], "Quantity": 8.0000, "LineItemID": "7a6e6591-8c85-44a5-ad97-e4ad14883271", "AccountID": "d5399e58-1ff5-401c-b6b9-7561071439f7", "ValidationErrors": [] }, { "Description": "Ironscales Basic Email Phishing Protection", "UnitAmount": 3.50, "TaxType": "TAX020", "TaxAmount": 1.82, "LineAmount": 14.00, "AccountCode": "203", "Tracking": [], "Quantity": 4.0000, "LineItemID": "738980c7-1e2a-447e-b2d2-9427f437b01d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 900.97, "TotalTax": 117.13, "Total": 1018.10, "UpdatedDateUTC": "\/Date(1751484149180+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-07-02 15:22:29] Production.INFO: -- Create Invoice id --9cc5616d-89ba-46a6-9942-529f524e8865 [2025-07-02 15:22:29] Production.INFO: -- Create Invoice Done -- [2025-07-02 15:22:29] Production.INFO: CheckInvoice xerov2: INV11580 [2025-07-02 15:22:29] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11580 [2025-07-02 15:22:31] Production.INFO: Check Invoice Id XEROV20 [2025-07-02 15:22:31] Production.INFO: Invoice SubTotal 645.280000 [2025-07-02 15:22:31] Production.INFO: Invoice DetTotal 645.28 [2025-07-02 15:22:31] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Natural%20Insect%20Control" [2025-07-02 15:22:34] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-07-02 15:22:37] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-07-02 15:22:40] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-07-02 15:22:43] Production.INFO: =========Invoices String here======{taxType:"TAX020",DiscountRate : 0.000000,"Description": "Canon imageCLASS MF465DW multi-function printer, 3 year warranty, plus extra toner cartridge",Quantity : 1,UnitAmount : 645.280000,LineAmount : 645.280000} [2025-07-02 15:22:46] Production.INFO: ==== result ===== [2025-07-02 15:22:46] Production.INFO: { "Id": "bb477c23-d1b0-4d02-81c4-bd767cd2f482", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1751484166555)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "cae1ccf9-395a-4b50-b70d-4d33d7eab009", "InvoiceNumber": "INV11580", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 729.17, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "fcade0cf-7b43-4bfe-86cf-b6c9e33f1686", "ContactNumber": "Natural Insect Control", "ContactStatus": "ACTIVE", "Name": "Natural Insect Control", "FirstName": "", "LastName": "", "EmailAddress": "", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "AddressLine1": "3737 Netherby Road", "AddressLine2": "", "AddressLine3": "", "AddressLine4": "", "City": "Stevensville", "Region": "ON", "PostalCode": "L0S 1S0", "Country": "", "AttentionTo": "" }, { "AddressType": "POBOX", "AddressLine1": "3737 Netherby Road", "AddressLine2": "", "AddressLine3": "", "AddressLine4": "", "City": "Stevensville", "Region": "ON", "PostalCode": "L0S 1S0", "Country": "", "AttentionTo": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(905) 3822904", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "(905) 3822904", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "9053243923", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1719936265023+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "DefaultCurrency": "CAD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-02-21T00:00:00", "Date": "\/Date(1740096000000+0000)\/", "DueDateString": "2025-03-23T00:00:00", "DueDate": "\/Date(1742688000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Canon imageCLASS MF465DW multi-function printer, 3 year warranty, plus extra toner cartridge", "UnitAmount": 645.28, "TaxType": "TAX020", "TaxAmount": 83.89, "LineAmount": 645.28, "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "fc5d4aa1-f0ca-4529-ac87-cc085dd36e38", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 645.28, "TotalTax": 83.89, "Total": 729.17, "UpdatedDateUTC": "\/Date(1751484166510+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-07-02 15:22:46] Production.INFO: -- Create Invoice id --cae1ccf9-395a-4b50-b70d-4d33d7eab009 [2025-07-02 15:22:46] Production.INFO: -- Create Invoice Done -- [2025-07-02 15:22:46] Production.INFO: -- Xero End Inovice -- [2025-07-02 15:22:46] Production.INFO: ==798== Releasing lock... [2025-07-02 15:22:46] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-11155 #Stops# [2025-07-02 15:22:46] Production.INFO: 30.75 MB #Memory Used#