[2025-01-07 07:25:04] Production.INFO: -- Xero Api Check -- [2025-01-07 07:25: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] => 858 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.15535 [namelookup_time] => 0.272319 [connect_time] => 0.276703 [pretransfer_time] => 0.519407 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2384 [speed_upload] => 70 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.155311 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 44612 ) [2025-01-07 07:25:05] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTI3MDUsImV4cCI6MTczNjI1MzAwNSwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUyNzA1LCJhdF9oYXNoIjoicDJLd0M3LW9LSlBaZGozZXFQcFZydyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLC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GVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.HFhhpu4TvjS_uXbmxbK-Uh2zI9jV8bf3StF12ILM2WY6ZASRpVE0fKqb34bZRuP4EjM5um6cg6eKCMdjzcMYOmwD3Qgh1Wt8oW-4yVoCLJnsJBmE_u1r4PvWB1mRpznifvjB5qcyMSIU6n83x1Idv1Xu0H-tSDXSDDmQqG6LxNEdzUUDTWy_K5HAZAwtAPFTYGKF0ooSiDCFOGxhW6H43y3ASPJvcQ76GQFlx1jteeTfLSicaJ6axXr1opRxBo9th8Ut6vnNPHFHvOCJDrWhgIakry_Kb3cgRmTp8doQLtpQpX52D4d31tDMGNtfEVD4BC67EYIzD6j9aVtFVsrzMQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 2bleks_C0yvD7ggOfSfUuIZzFQY1_yNzAIWAXx3_j74 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:25:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RT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m9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.HFhhpu4TvjS_uXbmxbK-Uh2zI9jV8bf3StF12ILM2WY6ZASRpVE0fKqb34bZRuP4EjM5um6cg6eKCMdjzcMYOmwD3Qgh1Wt8oW-4yVoCLJnsJBmE_u1r4PvWB1mRpznifvjB5qcyMSIU6n83x1Idv1Xu0H-tSDXSDDmQqG6LxNEdzUUDTWy_K5HAZAwtAPFTYGKF0ooSiDCFOGxhW6H43y3ASPJvcQ76GQFlx1jteeTfLSicaJ6axXr1opRxBo9th8Ut6vnNPHFHvOCJDrWhgIakry_Kb3cgRmTp8doQLtpQpX52D4d31tDMGNtfEVD4BC67EYIzD6j9aVtFVsrzMQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 2bleks_C0yvD7ggOfSfUuIZzFQY1_yNzAIWAXx3_j74 [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:25:05] Production.INFO: AccountID 192 [2025-01-07 07:25:05] Production.INFO: AccountName Ontario Turtle Conservation Centre [2025-01-07 07:25:05] Production.INFO: Checkcustomer [2025-01-07 07:25:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Ontario%20Turtle%20Conservation%20Centre" [2025-01-07 07:25:08] Production.INFO: Contact id print CheckCustomer Case===24cd1aba-5ae0-4087-aad8-a6d157b1a548 [2025-01-07 07:25:08] Production.INFO: -- count --1 [2025-01-07 07:25:08] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:25:08] Production.INFO: CheckInvoice xerov2: INV11219 [2025-01-07 07:25:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11219 [2025-01-07 07:25:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:25:10] Production.INFO: Invoice SubTotal 79.750000 [2025-01-07 07:25:10] Production.INFO: Invoice DetTotal 79.75 [2025-01-07 07:25:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Ontario%20Turtle%20Conservation%20Centre" [2025-01-07 07:25:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:25:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:25:19] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:25:21] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,"Description": "Restaurant/Retail Package - 4 Line Flat Rate",Quantity : 1,UnitAmount : 45,LineAmount : 45.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 30.000000,"Description": "e911 address registration (17057415000 - 2785 Television Road, Douro-Dummer, ON K9L 1E9)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 1.750000},{taxType:"TAX020",AccountCode : 212,"Description": "PasswordBoss - password management and sharing",Quantity : 6,UnitAmount : 5.500000,LineAmount : 33.000000} [2025-01-07 07:25:27] Production.INFO: ==== result ===== [2025-01-07 07:25:27] Production.INFO: { "Id": "d3ba9d3f-8194-4176-a274-48c991b82d78", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736252727077)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "69a9b09d-420e-453d-931b-110737c52eb4", "InvoiceNumber": "INV11219", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 90.12, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.75, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "24cd1aba-5ae0-4087-aad8-a6d157b1a548", "ContactStatus": "ACTIVE", "Name": "Ontario Turtle Conservation Centre", "EmailAddress": "info@ontarioturtle.ca", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "AddressLine1": "1434 Chemong Road", "AddressLine2": "Unit 4", "City": "Selwyn", "Region": "ON", "PostalCode": "K9J 6X2", "Country": "CANADA" }, { "AddressType": "POBOX", "AddressLine1": "1434 Chemong Road", "AddressLine2": "Unit 4", "City": "Selwyn", "Region": "ON", "PostalCode": "K9J 6X2", "Country": "CANADA" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(705) 741-5000", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1714493843707+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-14T00:00:00", "Date": "\/Date(1734134400000+0000)\/", "DueDateString": "2025-01-13T00:00:00", "DueDate": "\/Date(1736726400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant/Retail Package - 4 Line Flat Rate", "UnitAmount": 45.00, "TaxType": "TAX020", "TaxAmount": 5.85, "LineAmount": 45.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "67351bae-d3d9-4697-894c-82d4f73ebd3d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] }, { "Description": "e911 address registration (17057415000 - 2785 Television Road, Douro-Dummer, ON K9L 1E9)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.23, "LineAmount": 1.75, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 30.00, "LineItemID": "d561ff69-0b50-4e1e-8498-f2ead29f3ace", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 0.7500, "ValidationErrors": [] }, { "Description": "PasswordBoss - password management and sharing", "UnitAmount": 5.50, "TaxType": "TAX020", "TaxAmount": 4.29, "LineAmount": 33.00, "AccountCode": "212", "Tracking": [], "Quantity": 6.0000, "LineItemID": "fa888b54-e85f-481c-9acb-72164bc8bf52", "AccountID": "f910948c-6e7a-46ea-91d4-60d5bab373c8", "ValidationErrors": [] } ], "SubTotal": 79.75, "TotalTax": 10.37, "Total": 90.12, "UpdatedDateUTC": "\/Date(1736252726907+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:25:27] Production.INFO: -- Create Invoice id --69a9b09d-420e-453d-931b-110737c52eb4 [2025-01-07 07:25:27] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:25:27] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:25:27] Production.INFO: ==16500== Releasing lock... [2025-01-07 07:25:27] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10468 #Stops# [2025-01-07 07:25:27] Production.INFO: 29.75 MB #Memory Used#