[2025-01-07 09:35:03] Production.INFO: -- Xero Api Check -- [2025-01-07 09:35: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] => 854 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.000014 [namelookup_time] => 0.540455 [connect_time] => 0.54166 [pretransfer_time] => 0.8228 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2754 [speed_upload] => 81 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.999977 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 45512 ) [2025-01-07 09:35:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNjA1MDQsImV4cCI6MTczNjI2MDgwNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjYwNTA0LCJhdF9oYXNoIjoiSTItd1NDWDVUcHp3TldLWHBfYVhFdyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiL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iI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.CvPfIMlcd4ds4lWGkIHAyYiAqgBB7KHR4ardSuGgv55N5lHwm5Yt66jFmnxOoXY1SqXo58R_FO68zEiSX6FvjYsI3aWDKcCWJR966FQzj85HKDdFPIMB0qoYxoM6-Lj8Eyv4xk2DvchUUnWpkdECBX1BaZdh0Z2LdYjEw4bmn2M4mf9habK7NAICGgtuulBKrXaB9OI8inuWG2tAIiC4gx1l65NzCGJy-De-kEa8O0Gi45HwlWaUU-XcDqZGBA8Y6cuI8_JOT0F2NQ4z3S6A11GFtj7dUmRN48ZC7bU7PAnd9OERQPdArEj3E-kVMOycli2fuAh7EjrwxqJewxsA5A [expires_in] => 1800 [token_type] => Bearer [refresh_token] => GHudPqc2NQPAiK66O5nmbdzw1LJsO0W7O-PeYY2C_sA [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:35:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2Nz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QiXX0.CvPfIMlcd4ds4lWGkIHAyYiAqgBB7KHR4ardSuGgv55N5lHwm5Yt66jFmnxOoXY1SqXo58R_FO68zEiSX6FvjYsI3aWDKcCWJR966FQzj85HKDdFPIMB0qoYxoM6-Lj8Eyv4xk2DvchUUnWpkdECBX1BaZdh0Z2LdYjEw4bmn2M4mf9habK7NAICGgtuulBKrXaB9OI8inuWG2tAIiC4gx1l65NzCGJy-De-kEa8O0Gi45HwlWaUU-XcDqZGBA8Y6cuI8_JOT0F2NQ4z3S6A11GFtj7dUmRN48ZC7bU7PAnd9OERQPdArEj3E-kVMOycli2fuAh7EjrwxqJewxsA5A [expires_in] => 1800 [token_type] => Bearer [refresh_token] => GHudPqc2NQPAiK66O5nmbdzw1LJsO0W7O-PeYY2C_sA [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:35:04] Production.INFO: AccountID 143 [2025-01-07 09:35:04] Production.INFO: AccountName Orange Contracting [2025-01-07 09:35:04] Production.INFO: Checkcustomer [2025-01-07 09:35:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Orange%20Contracting" [2025-01-07 09:35:06] Production.INFO: Contact id print CheckCustomer Case===075abb78-3e33-47bd-a869-70486b7179f2 [2025-01-07 09:35:06] Production.INFO: -- count --1 [2025-01-07 09:35:06] Production.INFO: -- Xero Add Inovice -- [2025-01-07 09:35:06] Production.INFO: CheckInvoice xerov2: INV10924 [2025-01-07 09:35:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV10924 [2025-01-07 09:35:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 09:35:09] Production.INFO: Invoice SubTotal 24.300000 [2025-01-07 09:35:09] Production.INFO: Invoice DetTotal 24.3 [2025-01-07 09:35:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Orange%20Contracting" [2025-01-07 09:35:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 09:35:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 09:35:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 09:35:19] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 250,DiscountRate : 0.000000,"Description": "Collaboration and productivity suite, managed by OnSwitch.",Quantity : 3,UnitAmount : 8.100000,LineAmount : 24.300000} [2025-01-07 09:35:21] Production.INFO: ==== result ===== [2025-01-07 09:35:21] Production.INFO: { "Id": "ecb067dd-df3f-489e-80b7-5f71db311fea", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736260521889)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "45f782e4-e68a-4278-acbf-b681590a54d3", "InvoiceNumber": "INV10924", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 27.46, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "075abb78-3e33-47bd-a869-70486b7179f2", "ContactStatus": "ACTIVE", "Name": "Orange Contracting", "FirstName": "Mohamed", "LastName": "", "EmailAddress": "mohamed@orangecontracting.com", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "20 Poulias Ave.", "AddressLine2": "", "AddressLine3": "", "AddressLine4": "", "City": "Richmond Hill", "Region": "ON", "PostalCode": "L4E4A1", "Country": "Canada", "AttentionTo": "Mohamed" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(416) 8172590", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "4168172590", "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-10-19T00:00:00", "Date": "\/Date(1729296000000+0000)\/", "DueDateString": "2024-11-18T00:00:00", "DueDate": "\/Date(1731888000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Collaboration and productivity suite, managed by OnSwitch.", "UnitAmount": 8.10, "TaxType": "TAX020", "TaxAmount": 3.16, "LineAmount": 24.30, "AccountCode": "250", "Tracking": [], "Quantity": 3.0000, "DiscountRate": 0.00, "LineItemID": "c5ccad18-4712-4e92-8712-1c33ab7269b3", "AccountID": "d5399e58-1ff5-401c-b6b9-7561071439f7", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 24.30, "TotalTax": 3.16, "Total": 27.46, "UpdatedDateUTC": "\/Date(1736260521827+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 09:35:21] Production.INFO: -- Create Invoice id --45f782e4-e68a-4278-acbf-b681590a54d3 [2025-01-07 09:35:21] Production.INFO: -- Create Invoice Done -- [2025-01-07 09:35:21] Production.INFO: -- Xero End Inovice -- [2025-01-07 09:35:21] Production.INFO: ==26966== Releasing lock... [2025-01-07 09:35:21] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10494 #Stops# [2025-01-07 09:35:21] Production.INFO: 29.5 MB #Memory Used#