[2025-01-07 09:23:04] Production.INFO: -- Xero Api Check -- [2025-01-07 09:23: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] => 855 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.597231 [namelookup_time] => 0.277039 [connect_time] => 0.283852 [pretransfer_time] => 0.514521 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4612 [speed_upload] => 137 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.597199 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 43330 ) [2025-01-07 09:23:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTk3ODQsImV4cCI6MTczNjI2MDA4NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU5Nzg0LCJhdF9oYXNoIjoibU9BQ1huWlVqNTdZcnZYaEI0SUpsUSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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yb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.uXzWASteK_ZGLXBajzAs1q30zhj_c_BDVD1-eJ-CN2OtYy52rmk0bWEKvBli5oAgZ0luB8C1meR9EeNqFakEM1_qsdrswevZYW_Lhc7Encs7iNV8CxB4mJRpIuiQ1UbwJ2gDZvFJXhJB9Qpulcw08P_nGzW-Ac7YgOL4Lk1wt2uTABv0VFJKmo0g2AZovLwfVRqh5VPdx4gwZkQUVUldUnvrQgVj_BrT2XxsgefJP2o9vMerxmcJEEthmMP4f2WbIpezjKRmnqHGUTFoSc_25v7fw_AD5ZwTxoKCSYZYzxK6QMnlcDUI4LtL6cA1xBvnT27iRzxiipXXeecbMFiExg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => aMW-qNJDy-sII5ugnt1T4KZb9hURfpAhlsgWyRmRLho [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:23:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZ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YWNjZXNzIl0sImFtciI6WyJwd2QiXX0.uXzWASteK_ZGLXBajzAs1q30zhj_c_BDVD1-eJ-CN2OtYy52rmk0bWEKvBli5oAgZ0luB8C1meR9EeNqFakEM1_qsdrswevZYW_Lhc7Encs7iNV8CxB4mJRpIuiQ1UbwJ2gDZvFJXhJB9Qpulcw08P_nGzW-Ac7YgOL4Lk1wt2uTABv0VFJKmo0g2AZovLwfVRqh5VPdx4gwZkQUVUldUnvrQgVj_BrT2XxsgefJP2o9vMerxmcJEEthmMP4f2WbIpezjKRmnqHGUTFoSc_25v7fw_AD5ZwTxoKCSYZYzxK6QMnlcDUI4LtL6cA1xBvnT27iRzxiipXXeecbMFiExg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => aMW-qNJDy-sII5ugnt1T4KZb9hURfpAhlsgWyRmRLho [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:23:04] Production.INFO: AccountID 165 [2025-01-07 09:23:04] Production.INFO: AccountName PharmaSave (Oak Tree Medical) [2025-01-07 09:23:04] Production.INFO: Checkcustomer [2025-01-07 09:23:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="PharmaSave%20%28Oak%20Tree%20Medical%29" [2025-01-07 09:23:07] Production.INFO: Contact id print CheckCustomer Case===dd008964-6378-4903-b54b-a7b8eb03f05f [2025-01-07 09:23:07] Production.INFO: -- count --1 [2025-01-07 09:23:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 09:23:07] Production.INFO: CheckInvoice xerov2: INV11120 [2025-01-07 09:23:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11120 [2025-01-07 09:23:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 09:23:10] Production.INFO: Invoice SubTotal 32.500000 [2025-01-07 09:23:10] Production.INFO: Invoice DetTotal 32.5 [2025-01-07 09:23:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="PharmaSave%20%28Oak%20Tree%20Medical%29" [2025-01-07 09:23:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 09:23:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 09:23:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 09:23:20] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,"Description": "Retail Phone Service - 3 Channels Dedicated/Burst to 5 Channels",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,"Description": "e911 address registration (9058521007 - 4B Campbell Drive, Unit 1, Uxbridge, ON L9P1H6)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,"Description": "Discount - Friends and Family (Doug Geary referral)",Quantity : 1,UnitAmount : -45.000000,LineAmount : -45.000000} [2025-01-07 09:23:23] Production.INFO: ==== result ===== [2025-01-07 09:23:23] Production.INFO: { "Id": "022ef998-d727-4f4a-9308-d15994241c9c", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736259803282)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "127ef182-ed02-41f7-a369-1586a6b5e6d4", "InvoiceNumber": "INV11120", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 36.73, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "dd008964-6378-4903-b54b-a7b8eb03f05f", "ContactStatus": "ACTIVE", "Name": "PharmaSave (Oak Tree Medical)", "FirstName": "Sameer", "LastName": "Remtulla", "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(1666687158210+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-30T00:00:00", "Date": "\/Date(1732924800000+0000)\/", "DueDateString": "2024-12-30T00:00:00", "DueDate": "\/Date(1735516800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Retail Phone Service - 3 Channels Dedicated/Burst to 5 Channels", "UnitAmount": 75.00, "TaxType": "TAX020", "TaxAmount": 9.75, "LineAmount": 75.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "057c1411-2ee4-429f-88f0-391debedd82a", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (9058521007 - 4B Campbell Drive, Unit 1, Uxbridge, ON L9P1H6)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "35e828ce-19e1-45ae-b015-364ea980f5be", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "Discount - Friends and Family (Doug Geary referral)", "UnitAmount": -45.00, "TaxType": "TAX020", "TaxAmount": -5.85, "LineAmount": -45.00, "AccountCode": "303", "Tracking": [], "Quantity": 1.0000, "LineItemID": "0c5987a8-4e8f-4aa8-a254-f9c85ef4eabb", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "ValidationErrors": [] } ], "SubTotal": 32.50, "TotalTax": 4.23, "Total": 36.73, "UpdatedDateUTC": "\/Date(1736259803237+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 09:23:23] Production.INFO: -- Create Invoice id --127ef182-ed02-41f7-a369-1586a6b5e6d4 [2025-01-07 09:23:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 09:23:23] Production.INFO: -- Xero End Inovice -- [2025-01-07 09:23:23] Production.INFO: ==26037== Releasing lock... [2025-01-07 09:23:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10491 #Stops# [2025-01-07 09:23:23] Production.INFO: 29.75 MB #Memory Used#