[2025-01-07 07:15:04] Production.INFO: -- Xero Api Check -- [2025-01-07 07:15: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] => 856 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.654598 [namelookup_time] => 0.254014 [connect_time] => 0.261461 [pretransfer_time] => 0.486342 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4208 [speed_upload] => 125 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.654564 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42416 ) [2025-01-07 07:15:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTIxMDQsImV4cCI6MTczNjI1MjQwNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUyMTA0LCJhdF9oYXNoIjoiVU1PYndPNXhsU2xJUjY5allqZG5TZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLC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GVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.ixrFjS6eDBWQqIM_bwlXUNPNUCs1zv5KmA0eF9rHe-fL29jYL5wzYhukzXyRcvQOxDdw0EGB64xC2hpIm8Zpshnn3YP4yL_HDa_pxMgbF-63QMssDUaNmwUVfmB245_DMl-4qKKVCW2SsVlbf06X-Ldvsqozjwxs7Axk8lDrof0EJ2vY90bVL2EMuMf5vkonu8nPQsQJSkObTa93IiedVGShO5ngRiDGOCLWI03L9Zdi-MZ27IBSCcVvjarCw9doRnoEbUEGeWM8rWRwlmXzZRrDCE0oFfGYHSYMVOlN2QMReAE7ulLGjDX8L0PLuEhOaewIcP9YUUj9WY78Y74KFA [expires_in] => 1800 [token_type] => Bearer [refresh_token] => XCEnR5n8m-wjkwuTQMYPhK6FJL_Y1u_EZaLTbfYi2Fk [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:15:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2Nzc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xpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.ixrFjS6eDBWQqIM_bwlXUNPNUCs1zv5KmA0eF9rHe-fL29jYL5wzYhukzXyRcvQOxDdw0EGB64xC2hpIm8Zpshnn3YP4yL_HDa_pxMgbF-63QMssDUaNmwUVfmB245_DMl-4qKKVCW2SsVlbf06X-Ldvsqozjwxs7Axk8lDrof0EJ2vY90bVL2EMuMf5vkonu8nPQsQJSkObTa93IiedVGShO5ngRiDGOCLWI03L9Zdi-MZ27IBSCcVvjarCw9doRnoEbUEGeWM8rWRwlmXzZRrDCE0oFfGYHSYMVOlN2QMReAE7ulLGjDX8L0PLuEhOaewIcP9YUUj9WY78Y74KFA [expires_in] => 1800 [token_type] => Bearer [refresh_token] => XCEnR5n8m-wjkwuTQMYPhK6FJL_Y1u_EZaLTbfYi2Fk [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:15:04] Production.INFO: AccountID 140 [2025-01-07 07:15:04] Production.INFO: AccountName PharmaSave (Uxbridge) [2025-01-07 07:15:04] Production.INFO: Checkcustomer [2025-01-07 07:15:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="PharmaSave%20%28Uxbridge%29" [2025-01-07 07:15:07] Production.INFO: Contact id print CheckCustomer Case===ac797c62-9d84-4beb-9f18-85a8d961b94f [2025-01-07 07:15:07] Production.INFO: -- count --1 [2025-01-07 07:15:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:15:07] Production.INFO: CheckInvoice xerov2: INV11232 [2025-01-07 07:15:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11232 [2025-01-07 07:15:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:15:09] Production.INFO: Invoice SubTotal 32.500000 [2025-01-07 07:15:09] Production.INFO: Invoice DetTotal 32.5 [2025-01-07 07:15:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="PharmaSave%20%28Uxbridge%29" [2025-01-07 07:15:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:15:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:15:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:15:19] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Retail Phone Service - 3 Channels Dedicated/Burst to 5 Channels",Quantity : 1,UnitAmount : 75.000000,LineAmount : 75.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (9058622800 - 29 Toronto Street South 1B Uxbridge, ON L9P 1V9)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Discount - Friends and Family (Doug Geary referral)",Quantity : 1,UnitAmount : -45.000000,LineAmount : -45.000000} [2025-01-07 07:15:22] Production.INFO: ==== result ===== [2025-01-07 07:15:22] Production.INFO: { "Id": "c6d5fd5f-663b-4e9e-abbf-89b87ebfcd7c", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736252122510)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "f5f7bfa0-0c49-4a1f-8e98-afe15e946e58", "InvoiceNumber": "INV11232", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 36.73, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "ac797c62-9d84-4beb-9f18-85a8d961b94f", "ContactStatus": "ACTIVE", "Name": "PharmaSave (Uxbridge)", "FirstName": "Sameer", "LastName": "Remtulla", "EmailAddress": "uxbridge.rx@gmail.com", "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(1606240153850+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-16T00:00:00", "Date": "\/Date(1734307200000+0000)\/", "DueDateString": "2025-01-15T00:00:00", "DueDate": "\/Date(1736899200000+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, "DiscountRate": 0.00, "LineItemID": "cdc1e3b4-6f1f-42fe-a549-80ce73f98f9a", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (9058622800 - 29 Toronto Street South 1B Uxbridge, ON L9P 1V9)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "4598edf5-b591-4b04-98fd-2f4db184d2af", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "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, "DiscountRate": 0.00, "LineItemID": "3926685d-9628-433a-ad50-f236cd748fdb", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 32.50, "TotalTax": 4.23, "Total": 36.73, "UpdatedDateUTC": "\/Date(1736252122447+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:15:22] Production.INFO: -- Create Invoice id --f5f7bfa0-0c49-4a1f-8e98-afe15e946e58 [2025-01-07 07:15:22] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:15:22] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:15:22] Production.INFO: ==15598== Releasing lock... [2025-01-07 07:15:22] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10463 #Stops# [2025-01-07 07:15:22] Production.INFO: 29.5 MB #Memory Used#