[2025-01-07 07:27:03] Production.INFO: -- Xero Api Check -- [2025-01-07 07:27: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.965794 [namelookup_time] => 0.549667 [connect_time] => 0.560654 [pretransfer_time] => 0.837409 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2852 [speed_upload] => 84 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.965754 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42542 ) [2025-01-07 07:27:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTI4MjQsImV4cCI6MTczNjI1MzEyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUyODI0LCJhdF9oYXNoIjoiTll0YkNxaFlNcGNyZFpWRjd0RDNsQSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiL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2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.e_VkyUOjHRSQpBdEvd2UIFKxs5_a0Gqrq9ZI5AXxXgdwnXvyqZiitIjBfFJ3QAaCrZW4eZxBVRgey_LHyzFK78aEZ6mYPqEVHJznqhPoQaIOWRN4FzG9uQEfzaXq4THJ4i6ox3g3i0gEv0K1euHpsRjydRX2FdvHjADAgKIJqi4Q8dSv0jStgrfQgzXhB7Czl7FD0Gu_55ZIizUvQSMCuN4DVGj6aIK03U51xU2IftnAhghWqyaLtKlWTBP3S93nYR1mJUY2nIQ8821NrJm2jEy-9yrbqO2VxWdK82WrZjSC3JEgvuK8ogm4K7cjTcwhoVxOEkHtJigiNYXL6Fdwmw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => H5F9GngoD8IYlxR07E7rvLOdVuLwyYVRiykWzGewBeE [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:27:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRD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jZXNzIl0sImFtciI6WyJwd2QiXX0.e_VkyUOjHRSQpBdEvd2UIFKxs5_a0Gqrq9ZI5AXxXgdwnXvyqZiitIjBfFJ3QAaCrZW4eZxBVRgey_LHyzFK78aEZ6mYPqEVHJznqhPoQaIOWRN4FzG9uQEfzaXq4THJ4i6ox3g3i0gEv0K1euHpsRjydRX2FdvHjADAgKIJqi4Q8dSv0jStgrfQgzXhB7Czl7FD0Gu_55ZIizUvQSMCuN4DVGj6aIK03U51xU2IftnAhghWqyaLtKlWTBP3S93nYR1mJUY2nIQ8821NrJm2jEy-9yrbqO2VxWdK82WrZjSC3JEgvuK8ogm4K7cjTcwhoVxOEkHtJigiNYXL6Fdwmw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => H5F9GngoD8IYlxR07E7rvLOdVuLwyYVRiykWzGewBeE [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:27:04] Production.INFO: AccountID 227 [2025-01-07 07:27:04] Production.INFO: AccountName Quiznos 15184 (Akshay Naik) [2025-01-07 07:27:04] Production.INFO: Checkcustomer [2025-01-07 07:27:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Quiznos%2015184%20%28Akshay%20Naik%29" [2025-01-07 07:27:06] Production.INFO: Contact id print CheckCustomer Case===7d4d8a6e-9b66-4daf-be5c-0e7e0524121b [2025-01-07 07:27:06] Production.INFO: -- count --1 [2025-01-07 07:27:06] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:27:06] Production.INFO: CheckInvoice xerov2: INV11177 [2025-01-07 07:27:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11177 [2025-01-07 07:27:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:27:09] Production.INFO: Invoice SubTotal 7.500000 [2025-01-07 07:27:09] Production.INFO: Invoice DetTotal 7.5 [2025-01-07 07:27:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Quiznos%2015184%20%28Akshay%20Naik%29" [2025-01-07 07:27:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:27:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:27:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:27:20] Production.INFO: =========Invoices String here======{taxType:"TAX012",AccountCode : 203,DiscountRate : 75.000000,"Description": "Restaurant - 1 Line Flat Rate",Quantity : 1,UnitAmount : 19.990000,LineAmount : 5.000000},{taxType:"TAX012",AccountCode : 203,"Description": "e911 address registration (15877911400 - 1015 14 Ave Wainwright, AB T9W 1K5 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 07:27:23] Production.INFO: ==== result ===== [2025-01-07 07:27:23] Production.INFO: { "Id": "cd22f697-65a1-47b6-a74c-7ceb8de27851", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736252843194)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b811a6f0-271d-495e-8483-01989f9b8e37", "InvoiceNumber": "INV11177", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 7.88, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 14.99, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "7d4d8a6e-9b66-4daf-be5c-0e7e0524121b", "ContactStatus": "ACTIVE", "Name": "Quiznos 15184 (Akshay Naik)", "EmailAddress": "akshaynnaik@gmail.com", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "1015 14 Ave.", "City": "Wainwright", "Region": "AB", "PostalCode": "T9W 1K5", "Country": "Canada" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1730662363163+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-08T00:00:00", "Date": "\/Date(1733616000000+0000)\/", "DueDateString": "2025-01-07T00:00:00", "DueDate": "\/Date(1736208000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Restaurant - 1 Line Flat Rate", "UnitAmount": 19.99, "TaxType": "TAX012", "TaxAmount": 0.25, "LineAmount": 5.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 75.00, "LineItemID": "5f2d23a4-892e-4f3c-8625-e14d94635d31", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 14.9900, "ValidationErrors": [] }, { "Description": "e911 address registration (15877911400 - 1015 14 Ave Wainwright, AB T9W 1K5 Canada)", "UnitAmount": 2.50, "TaxType": "TAX012", "TaxAmount": 0.13, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "bea1dc1d-cc7b-4358-9425-225c7c862322", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 7.50, "TotalTax": 0.38, "Total": 7.88, "UpdatedDateUTC": "\/Date(1736252843133+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:27:23] Production.INFO: -- Create Invoice id --b811a6f0-271d-495e-8483-01989f9b8e37 [2025-01-07 07:27:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:27:23] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:27:23] Production.INFO: ==16701== Releasing lock... [2025-01-07 07:27:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10469 #Stops# [2025-01-07 07:27:23] Production.INFO: 29.5 MB #Memory Used#