[2025-01-07 07:18:03] Production.INFO: -- Xero Api Check -- [2025-01-07 07:18: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.577762 [namelookup_time] => 0.154506 [connect_time] => 0.155795 [pretransfer_time] => 0.423636 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4768 [speed_upload] => 141 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.57771 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42442 ) [2025-01-07 07:18:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTIyODQsImV4cCI6MTczNjI1MjU4NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUyMjg0LCJhdF9oYXNoIjoiTzQ1NTRZRjNOTlNCMXpybXdXQWU4dyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIi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ieGVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.BhsWo_q4zte5LxB9pee65K8r5A05IknzMjJH9nIMP5RJsPxS8Kz3k4dkSv_dldhoQnJvowYQ6BELtSrqVHA6DzSm2hxy8SNzH6l93kS2hKP4j0IjOnqUqSyAYXhj1dMu7sExHgBBxDd2EmK2vX2vXLCXRQKp3nGNF5Q63VI6E8XaH9imQG6eDe_5FxES7Uy4m10Y81H2BZyZ5rN4pQp2p4hGtOg4V5hKCFAApuM4p93UDcbYn107JLwHnuLo4lSaDB6RlKDd_EDN9N8mHfL_uPOBTaocYZMJiabhodiIUeMp7YW8OiChS8crPnBjwOE3I4V8jWD1s4oZH4Ns6S6E0A [expires_in] => 1800 [token_type] => Bearer [refresh_token] => bIE3MWI9SOGwB9aIz5QMK41ObjB88URV-Yp1Hbmdgwg [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:18:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2Nzc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mxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.BhsWo_q4zte5LxB9pee65K8r5A05IknzMjJH9nIMP5RJsPxS8Kz3k4dkSv_dldhoQnJvowYQ6BELtSrqVHA6DzSm2hxy8SNzH6l93kS2hKP4j0IjOnqUqSyAYXhj1dMu7sExHgBBxDd2EmK2vX2vXLCXRQKp3nGNF5Q63VI6E8XaH9imQG6eDe_5FxES7Uy4m10Y81H2BZyZ5rN4pQp2p4hGtOg4V5hKCFAApuM4p93UDcbYn107JLwHnuLo4lSaDB6RlKDd_EDN9N8mHfL_uPOBTaocYZMJiabhodiIUeMp7YW8OiChS8crPnBjwOE3I4V8jWD1s4oZH4Ns6S6E0A [expires_in] => 1800 [token_type] => Bearer [refresh_token] => bIE3MWI9SOGwB9aIz5QMK41ObjB88URV-Yp1Hbmdgwg [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:18:04] Production.INFO: AccountID 87 [2025-01-07 07:18:04] Production.INFO: AccountName Small Business Owners & Professionals Association [2025-01-07 07:18:04] Production.INFO: Checkcustomer [2025-01-07 07:18:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Small%20Business%20Owners%20%26%20Professionals%20Association" [2025-01-07 07:18:06] Production.INFO: Contact id print CheckCustomer Case===e8c42b4a-0408-4ca6-a815-dbd8da598a80 [2025-01-07 07:18:06] Production.INFO: -- count --1 [2025-01-07 07:18:06] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:18:06] Production.INFO: CheckInvoice xerov2: INV11253 [2025-01-07 07:18:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11253 [2025-01-07 07:18:08] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:18:09] Production.INFO: Invoice SubTotal 8.050000 [2025-01-07 07:18:09] Production.INFO: Invoice DetTotal 8.05 [2025-01-07 07:18:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Small%20Business%20Owners%20%26%20Professionals%20Association" [2025-01-07 07:18:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:18:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:18:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:18:19] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-21-2024 To 12-20-2024",Quantity : 1,UnitAmount : 0.550000,LineAmount : 0.550000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 1,UnitAmount : 5.000000,LineAmount : 5.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (18666781385 - 45 BRAMALEA RD STE 202 BRAMPTON, ON L6T2W4 CANADA)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 07:18:21] Production.INFO: ==== result ===== [2025-01-07 07:18:21] Production.INFO: { "Id": "a9cfc534-d151-4cbd-ad91-9c4399044c93", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736252301388)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "7e624ca7-66d0-47cd-9a4e-5ecf2f8f7a4b", "InvoiceNumber": "INV11253", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 9.10, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "e8c42b4a-0408-4ca6-a815-dbd8da598a80", "ContactStatus": "ACTIVE", "Name": "Small Business Owners & Professionals Association", "FirstName": "Paul", "LastName": "Mann", "EmailAddress": "paul.mann@aaxelinsurance.com", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "145 Royal Crest Court", "AddressLine2": "Unit 50B", "AddressLine3": "", "AddressLine4": "", "City": "Markham", "Region": "ON", "PostalCode": "L3R9Z4", "Country": "Canada", "AttentionTo": "Paul Mann" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(800) 3108531", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "8003108531", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1487615948263+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-21T00:00:00", "Date": "\/Date(1734739200000+0000)\/", "DueDateString": "2025-01-20T00:00:00", "DueDate": "\/Date(1737331200000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-21-2024 To 12-20-2024", "UnitAmount": 0.55, "TaxType": "TAX020", "TaxAmount": 0.07, "LineAmount": 0.55, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7a1bc4c9-fe7c-4b1d-9a64-7a546ecd9075", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 5.00, "TaxType": "TAX020", "TaxAmount": 0.65, "LineAmount": 5.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "aaf13b5e-bdcb-459f-a8f9-9e3e72c8f613", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (18666781385 - 45 BRAMALEA RD STE 202 BRAMPTON, ON L6T2W4 CANADA)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "cd0e4a7a-725d-46fa-abb8-3df56521e0aa", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 8.05, "TotalTax": 1.05, "Total": 9.10, "UpdatedDateUTC": "\/Date(1736252301327+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:18:21] Production.INFO: -- Create Invoice id --7e624ca7-66d0-47cd-9a4e-5ecf2f8f7a4b [2025-01-07 07:18:21] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:18:21] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:18:21] Production.INFO: ==15832== Releasing lock... [2025-01-07 07:18:21] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10464 #Stops# [2025-01-07 07:18:21] Production.INFO: 29.5 MB #Memory Used#