[2025-01-07 08:46:03] Production.INFO: -- Xero Api Check -- [2025-01-07 08:46:05] Production.INFO: -- curl info --Array ( [url] => https://identity.xero.com/connect/token [content_type] => application/json; charset=UTF-8 [http_code] => 200 [header_size] => 859 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.699402 [namelookup_time] => 0.540573 [connect_time] => 0.625297 [pretransfer_time] => 1.028367 [size_upload] => 82 [size_download] => 2755 [speed_download] => 1621 [speed_upload] => 48 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.69936 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.72.248.213 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 58402 ) [2025-01-07 08:46:05] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTc1NjUsImV4cCI6MTczNjI1Nzg2NSwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU3NTY1LCJhdF9oYXNoIjoiLWYwVzMtbEIxcm4zRldXNGxoYzFJQSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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yaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.kwWdSRBSIPZTahNWzPu6wrgnHT7nR3v--_TUAlOq4rDndusDp3F2MjjiLPFcdCbgp7B6piYb0Uj3Xhm-_4DWG5I2ZP4_yv13DNj4st5SySUQWLXJunzZ-caBO8_NiiocAD_qkVwq5-R0fyTkoTDnZGRrsTWToLgR5qN4Y5qW2GdAi1ha_z_Q6OCP_RhUzaknY9W7uXRAsvOIpVkSiWKxyb07sOFTNp--B1OIShJroBJNIGRl0QcIobEyET5CiwkeHtoM23NOQAZGutI6M1mml6mmcF2YBeWl3KCkG28sbF1konbf87pvDNi2uDWdZWPLF6LenwTyNyvk678fj1qiFg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => oq8r09yiWFjt23-_2-ftjwQMYpdeAGcgGlIJcjDGJYk [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 08:46:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2Nz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WyJwd2QiXX0.kwWdSRBSIPZTahNWzPu6wrgnHT7nR3v--_TUAlOq4rDndusDp3F2MjjiLPFcdCbgp7B6piYb0Uj3Xhm-_4DWG5I2ZP4_yv13DNj4st5SySUQWLXJunzZ-caBO8_NiiocAD_qkVwq5-R0fyTkoTDnZGRrsTWToLgR5qN4Y5qW2GdAi1ha_z_Q6OCP_RhUzaknY9W7uXRAsvOIpVkSiWKxyb07sOFTNp--B1OIShJroBJNIGRl0QcIobEyET5CiwkeHtoM23NOQAZGutI6M1mml6mmcF2YBeWl3KCkG28sbF1konbf87pvDNi2uDWdZWPLF6LenwTyNyvk678fj1qiFg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => oq8r09yiWFjt23-_2-ftjwQMYpdeAGcgGlIJcjDGJYk [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 08:46:05] Production.INFO: AccountID 185 [2025-01-07 08:46:05] Production.INFO: AccountName TTC (College-Subway) - Construction Site (Cancom - Think Secure) [2025-01-07 08:46:05] Production.INFO: Checkcustomer [2025-01-07 08:46:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TTC%20%28College-Subway%29%20-%20Construction%20Site%20%28Cancom%20-%20Think%20Secure%29" [2025-01-07 08:46:08] Production.INFO: Contact id print CheckCustomer Case===8c5c7d93-c398-4829-91b3-8174fe21f9a7 [2025-01-07 08:46:08] Production.INFO: -- count --1 [2025-01-07 08:46:08] Production.INFO: -- Xero Add Inovice -- [2025-01-07 08:46:08] Production.INFO: CheckInvoice xerov2: INV11225 [2025-01-07 08:46:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11225 [2025-01-07 08:46:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 08:46:10] Production.INFO: Invoice SubTotal 76.860000 [2025-01-07 08:46:10] Production.INFO: Invoice DetTotal 76.86 [2025-01-07 08:46:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TTC%20%28College-Subway%29%20-%20Construction%20Site%20%28Cancom%20-%20Think%20Secure%29" [2025-01-07 08:46:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 08:46:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 08:46:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 08:46:21] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 204,"Description": "LTE Primary Internet (3 Carlton St., Toronto, ON M5B 1L2) - 10GB/month",Quantity : 1,UnitAmount : 76.860000,LineAmount : 76.860000} [2025-01-07 08:46:24] Production.INFO: ==== result ===== [2025-01-07 08:46:24] Production.INFO: { "Id": "294cd36c-ed83-4177-bcd6-2659095b4a2c", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736257584196)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "e712e5b3-4042-475e-971b-7206667af739", "InvoiceNumber": "INV11225", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 86.85, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "8c5c7d93-c398-4829-91b3-8174fe21f9a7", "ContactStatus": "ACTIVE", "Name": "TTC (College-Subway) - Construction Site (Cancom - Think Secure)", "FirstName": "Darcy", "LastName": "Chelvans", "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(1657574345580+0000)\/", "ContactGroups": [], "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": "LTE Primary Internet (3 Carlton St., Toronto, ON M5B 1L2) - 10GB/month", "UnitAmount": 76.86, "TaxType": "TAX020", "TaxAmount": 9.99, "LineAmount": 76.86, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "LineItemID": "23881614-422a-4890-88fe-0843409e3665", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "ValidationErrors": [] } ], "SubTotal": 76.86, "TotalTax": 9.99, "Total": 86.85, "UpdatedDateUTC": "\/Date(1736257584150+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 08:46:24] Production.INFO: -- Create Invoice id --e712e5b3-4042-475e-971b-7206667af739 [2025-01-07 08:46:24] Production.INFO: -- Create Invoice Done -- [2025-01-07 08:46:24] Production.INFO: -- Xero End Inovice -- [2025-01-07 08:46:24] Production.INFO: ==23123== Releasing lock... [2025-01-07 08:46:24] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10477 #Stops# [2025-01-07 08:46:24] Production.INFO: 29.5 MB #Memory Used#