[2025-01-07 08:44:03] Production.INFO: -- Xero Api Check -- [2025-01-07 08:44:03] 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.659498 [namelookup_time] => 0.275455 [connect_time] => 0.276797 [pretransfer_time] => 0.554665 [size_upload] => 82 [size_download] => 2755 [speed_download] => 4177 [speed_upload] => 124 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.659448 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42944 ) [2025-01-07 08:44:03] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTc0NDMsImV4cCI6MTczNjI1Nzc0MywiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU3NDQzLCJhdF9oYXNoIjoiTVR1eHVfQVU2eG9aY0lsRHVYNVJlZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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wieGVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.TUJ9BuK0Z3jy7DK1eX5zmROJjUqj9vWc_6wBaLYSteCZdokLvSJ3Obvx4xYBCs4wbJp-nZLBYcNYpcHyTnBTlMx_KSA5TfsgdZO1u6EQ6IFaEeU02wk8bHkv_18dWlL-aG76c5hyQwNFaS34ZxyZ9m9GVesLwbnwSh7Vkz1kyLJboXSVr45mzjf3nWZlHo6E7J2amgmISKa19fh8zaNs6IoaxAYaPKCfdXYjj333tjn7oTx6g2i7tacGQCPwrFgcH4D-Kh_QWZzYCepDtaGjegpVRuXi6sTEMaDeP3sCR0JGzYJOs5aHKIgVtbmVz2LGOu5vk6p7AVXfI_4wSOut7w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => NYJ8GQ7qTQz-4_zh72SRV-EcBAkRoRY9r8ywBBK2JlA [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 08:44:03] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQU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0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.TUJ9BuK0Z3jy7DK1eX5zmROJjUqj9vWc_6wBaLYSteCZdokLvSJ3Obvx4xYBCs4wbJp-nZLBYcNYpcHyTnBTlMx_KSA5TfsgdZO1u6EQ6IFaEeU02wk8bHkv_18dWlL-aG76c5hyQwNFaS34ZxyZ9m9GVesLwbnwSh7Vkz1kyLJboXSVr45mzjf3nWZlHo6E7J2amgmISKa19fh8zaNs6IoaxAYaPKCfdXYjj333tjn7oTx6g2i7tacGQCPwrFgcH4D-Kh_QWZzYCepDtaGjegpVRuXi6sTEMaDeP3sCR0JGzYJOs5aHKIgVtbmVz2LGOu5vk6p7AVXfI_4wSOut7w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => NYJ8GQ7qTQz-4_zh72SRV-EcBAkRoRY9r8ywBBK2JlA [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 08:44:03] Production.INFO: AccountID 184 [2025-01-07 08:44:04] Production.INFO: AccountName TTC (Donlands - Strathmore Subway) - Construction Site (Cancom - Think Secure) [2025-01-07 08:44:04] Production.INFO: Checkcustomer [2025-01-07 08:44:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TTC%20%28Donlands%20-%20Strathmore%20Subway%29%20-%20Construction%20Site%20%28Cancom%20-%20Think%20Secure%29" [2025-01-07 08:44:06] Production.INFO: Contact id print CheckCustomer Case===bc13c86d-cd70-4f32-948a-d1f4850061a0 [2025-01-07 08:44:06] Production.INFO: -- count --1 [2025-01-07 08:44:06] Production.INFO: -- Xero Add Inovice -- [2025-01-07 08:44:06] Production.INFO: CheckInvoice xerov2: INV11224 [2025-01-07 08:44:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11224 [2025-01-07 08:44:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 08:44:09] Production.INFO: Invoice SubTotal 76.860000 [2025-01-07 08:44:09] Production.INFO: Invoice DetTotal 76.86 [2025-01-07 08:44:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TTC%20%28Donlands%20-%20Strathmore%20Subway%29%20-%20Construction%20Site%20%28Cancom%20-%20Think%20Secure%29" [2025-01-07 08:44:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 08:44:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 08:44:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 08:44:20] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 204,"Description": "LTE Primary Internet (30 Donalds Ave, Toronto, ON M4J3N6) - 10GB/month",Quantity : 1,UnitAmount : 76.860000,LineAmount : 76.860000} [2025-01-07 08:44:23] Production.INFO: ==== result ===== [2025-01-07 08:44:23] Production.INFO: { "Id": "c276d8ec-a4a0-4d89-b6fb-10aa1ec15bbb", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736257463022)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "37aab875-26c4-4839-ac4e-531e63d1e476", "InvoiceNumber": "INV11224", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 86.85, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "bc13c86d-cd70-4f32-948a-d1f4850061a0", "ContactStatus": "ACTIVE", "Name": "TTC (Donlands - Strathmore Subway) - Construction Site (Cancom - Think Secure)", "FirstName": "Darcy", "LastName": "Chelvan", "EmailAddress": "", "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(1657573506193+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-15T00:00:00", "Date": "\/Date(1734220800000+0000)\/", "DueDateString": "2025-01-14T00:00:00", "DueDate": "\/Date(1736812800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "LTE Primary Internet (30 Donalds Ave, Toronto, ON M4J3N6) - 10GB/month", "UnitAmount": 76.86, "TaxType": "TAX020", "TaxAmount": 9.99, "LineAmount": 76.86, "AccountCode": "204", "Tracking": [], "Quantity": 1.0000, "LineItemID": "5af8e896-a5bd-4e5f-bb40-f42d1a9dc5b3", "AccountID": "b2bf83b2-1c14-4030-b69a-a5c5338ad7df", "ValidationErrors": [] } ], "SubTotal": 76.86, "TotalTax": 9.99, "Total": 86.85, "UpdatedDateUTC": "\/Date(1736257462977+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 08:44:23] Production.INFO: -- Create Invoice id --37aab875-26c4-4839-ac4e-531e63d1e476 [2025-01-07 08:44:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 08:44:23] Production.INFO: -- Xero End Inovice -- [2025-01-07 08:44:23] Production.INFO: ==22971== Releasing lock... [2025-01-07 08:44:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10476 #Stops# [2025-01-07 08:44:23] Production.INFO: 29.5 MB #Memory Used#