[2025-01-07 09:01:03] Production.INFO: -- Xero Api Check -- [2025-01-07 09:01: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] => 857 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.106221 [namelookup_time] => 0.545805 [connect_time] => 0.555439 [pretransfer_time] => 0.85344 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2490 [speed_upload] => 74 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.106162 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 45218 ) [2025-01-07 09:01:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTg0NjQsImV4cCI6MTczNjI1ODc2NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU4NDY0LCJhdF9oYXNoIjoiTUkyanIxUTdmSDh1ejBLQU5qeElEZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiL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c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.fI9GqKyyxoVfErYw5r8XaTQPb372ODLgiAZlOXXtjThwXAVfubEmXFbjm3T0_RwdsTIqyqRk7uhQR0BGfYQ3Bka0SuneHP22kFdJxPSYkFMW1T9aXyFT8qhEr3RjZItQpl4M6vcl7zdI06qRnugzyMlRL85YbdNSVWFCMM1Iw-GUziuqhDl1_DDGvo-bLE_HK4POs33v3qkCr0-ZFeuX7L2OQjjdTz89oW5SnlvTzPhUxMgpQd-Kds29xdqIG08U05ujCzoQOoF1550OVb6vpFbyXsFFtHDng4Av1yDPeSZfL87kXTWGhNn01nS4FgrHFk9zmicHbAf4TWz1BP4JWw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => Tz62OhHhBb8YOu3BrOvDMEUW2FNi3tIO7X88kJKeLdU [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:01:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyO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l0sImFtciI6WyJwd2QiXX0.fI9GqKyyxoVfErYw5r8XaTQPb372ODLgiAZlOXXtjThwXAVfubEmXFbjm3T0_RwdsTIqyqRk7uhQR0BGfYQ3Bka0SuneHP22kFdJxPSYkFMW1T9aXyFT8qhEr3RjZItQpl4M6vcl7zdI06qRnugzyMlRL85YbdNSVWFCMM1Iw-GUziuqhDl1_DDGvo-bLE_HK4POs33v3qkCr0-ZFeuX7L2OQjjdTz89oW5SnlvTzPhUxMgpQd-Kds29xdqIG08U05ujCzoQOoF1550OVb6vpFbyXsFFtHDng4Av1yDPeSZfL87kXTWGhNn01nS4FgrHFk9zmicHbAf4TWz1BP4JWw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => Tz62OhHhBb8YOu3BrOvDMEUW2FNi3tIO7X88kJKeLdU [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:01:04] Production.INFO: AccountID 25 [2025-01-07 09:01:04] Production.INFO: AccountName Harding Security [2025-01-07 09:01:04] Production.INFO: Checkcustomer [2025-01-07 09:01:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harding%20Security" [2025-01-07 09:01:06] Production.INFO: Contact id print CheckCustomer Case===631aa009-5337-4bbb-817f-724f7ca5f6db [2025-01-07 09:01:06] Production.INFO: -- count --1 [2025-01-07 09:01:06] Production.INFO: -- Xero Add Inovice -- [2025-01-07 09:01:06] Production.INFO: CheckInvoice xerov2: INV11270 [2025-01-07 09:01:06] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11270 [2025-01-07 09:01:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 09:01:09] Production.INFO: Invoice SubTotal 17.850000 [2025-01-07 09:01:09] Production.INFO: Invoice DetTotal 17.85 [2025-01-07 09:01:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Harding%20Security" [2025-01-07 09:01:11] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 09:01:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 09:01:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 09:01:20] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 1,UnitAmount : 23.000000,LineAmount : 23.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (14169257474 - 70 SHAFTESBURY AVE TORONTO, ON M4T1A3)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Loyalty Discount",Quantity : 1,UnitAmount : -7.650000,LineAmount : -7.650000} [2025-01-07 09:01:24] Production.INFO: ==== result ===== [2025-01-07 09:01:24] Production.INFO: { "Id": "8af1061a-a938-4f89-a6b7-6c1b506a8af8", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736258483944)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b2d6f50e-237b-4ac7-8f35-dc105bbc019f", "InvoiceNumber": "INV11270", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 20.18, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "631aa009-5337-4bbb-817f-724f7ca5f6db", "ContactStatus": "ACTIVE", "Name": "Harding Security", "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(1562268171973+0000)\/", "ContactGroups": [ { "ContactGroupID": "73efd01d-7369-4fa2-a005-8c8239e72e58", "Name": "Benjamin's Customers", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-28T00:00:00", "Date": "\/Date(1735344000000+0000)\/", "DueDateString": "2025-01-27T00:00:00", "DueDate": "\/Date(1737936000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 23.00, "TaxType": "TAX020", "TaxAmount": 2.99, "LineAmount": 23.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "29180a72-5e65-4839-a507-40f777f5751e", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14169257474 - 70 SHAFTESBURY AVE TORONTO, ON M4T1A3)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "3202e77c-65ec-4fef-939e-2abbf62e2cd8", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Loyalty Discount", "UnitAmount": -7.65, "TaxType": "TAX020", "TaxAmount": -0.99, "LineAmount": -7.65, "AccountCode": "303", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "56d3611d-da1f-41d8-afd0-fd188f8426a1", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 17.85, "TotalTax": 2.33, "Total": 20.18, "UpdatedDateUTC": "\/Date(1736258483867+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 09:01:24] Production.INFO: -- Create Invoice id --b2d6f50e-237b-4ac7-8f35-dc105bbc019f [2025-01-07 09:01:24] Production.INFO: -- Create Invoice Done -- [2025-01-07 09:01:24] Production.INFO: -- Xero End Inovice -- [2025-01-07 09:01:24] Production.INFO: ==24322== Releasing lock... [2025-01-07 09:01:24] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10483 #Stops# [2025-01-07 09:01:24] Production.INFO: 29.75 MB #Memory Used#