[2025-01-07 08:56:03] Production.INFO: -- Xero Api Check -- [2025-01-07 08:56: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] => 1.271512 [namelookup_time] => 0.544235 [connect_time] => 0.641399 [pretransfer_time] => 1.022449 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2166 [speed_upload] => 64 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.271476 [redirect_time] => 0 [redirect_url] => [primary_ip] => 96.16.248.139 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 37974 ) [2025-01-07 08:56:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTgxNjQsImV4cCI6MTczNjI1ODQ2NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU4MTY0LCJhdF9oYXNoIjoia21abkVoanZXOU5DX1hpM1F0ZGk0dyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiL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Vyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.D4DtSyAs6nTqXNRoPo19qZZVaFx2EsR1EdkbrTHLT-rOOaopF_6INSohmFUS2UBBOQiB5932hu1cpZXjC907erBcZpsi8SIADjZYKsMqkxhsgRAe13uKYeokeS8u2iLojt50HIQrqSjoPp_P8GWBq3m6WiNC8zXwUNaCGADt17jW6BvFpqPkkgjy7CQaRkUoz4GYMZELGmmhyrX4sHpASsBTwZlgGfp_VYhK7yVQE0ldSXtO-cxMmAxwgch2tlmytWAH-QWNarVLN_5tmxhZcOaofVuR3keWIom2zjWkWca4q54EPKSoVgjkvLrU9hFbTtzlvJin7d1welfdKUR9kA [expires_in] => 1800 [token_type] => Bearer [refresh_token] => l8ghTsKRB87GuXUEaasujvcyczuwJtUzHXPZkDUcuMI [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 08:56:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI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ImFtciI6WyJwd2QiXX0.D4DtSyAs6nTqXNRoPo19qZZVaFx2EsR1EdkbrTHLT-rOOaopF_6INSohmFUS2UBBOQiB5932hu1cpZXjC907erBcZpsi8SIADjZYKsMqkxhsgRAe13uKYeokeS8u2iLojt50HIQrqSjoPp_P8GWBq3m6WiNC8zXwUNaCGADt17jW6BvFpqPkkgjy7CQaRkUoz4GYMZELGmmhyrX4sHpASsBTwZlgGfp_VYhK7yVQE0ldSXtO-cxMmAxwgch2tlmytWAH-QWNarVLN_5tmxhZcOaofVuR3keWIom2zjWkWca4q54EPKSoVgjkvLrU9hFbTtzlvJin7d1welfdKUR9kA [expires_in] => 1800 [token_type] => Bearer [refresh_token] => l8ghTsKRB87GuXUEaasujvcyczuwJtUzHXPZkDUcuMI [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 08:56:04] Production.INFO: AccountID 93 [2025-01-07 08:56:04] Production.INFO: AccountName Personas [2025-01-07 08:56:04] Production.INFO: Checkcustomer [2025-01-07 08:56:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Personas" [2025-01-07 08:56:08] Production.INFO: Contact id print CheckCustomer Case===31472f57-4acd-4468-9ab0-8ed346b2d96f [2025-01-07 08:56:08] Production.INFO: -- count --1 [2025-01-07 08:56:08] Production.INFO: -- Xero Add Inovice -- [2025-01-07 08:56:08] Production.INFO: CheckInvoice xerov2: INV11076 [2025-01-07 08:56:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11076 [2025-01-07 08:56:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 08:56:10] Production.INFO: Invoice SubTotal 57.000000 [2025-01-07 08:56:10] Production.INFO: Invoice DetTotal 57 [2025-01-07 08:56:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Personas" [2025-01-07 08:56:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 08:56:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 08:56:19] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 08:56:22] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 7,UnitAmount : 7.500000,LineAmount : 52.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (16472642233 - 55 University Ave 302 Toronto, ON M5H 3B7 Canada)",Quantity : 1,UnitAmount : 2.750000,LineAmount : 2.750000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Additional DID (18883119273)",Quantity : 1,UnitAmount : 1.750000,LineAmount : 1.750000} [2025-01-07 08:56:24] Production.INFO: ==== result ===== [2025-01-07 08:56:24] Production.INFO: { "Id": "a0255342-f1a6-4cd6-941b-9b32193d2614", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736258184966)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a4365ba6-4eea-4588-9c60-802baf24df9a", "InvoiceNumber": "INV11076", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 64.42, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "31472f57-4acd-4468-9ab0-8ed346b2d96f", "ContactStatus": "ACTIVE", "Name": "Personas", "FirstName": "David", "LastName": "Kerry", "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(1655926156083+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-11-17T00:00:00", "Date": "\/Date(1731801600000+0000)\/", "DueDateString": "2024-12-17T00:00:00", "DueDate": "\/Date(1734393600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 7.50, "TaxType": "TAX020", "TaxAmount": 6.83, "LineAmount": 52.50, "AccountCode": "203", "Tracking": [], "Quantity": 7.0000, "DiscountRate": 0.00, "LineItemID": "74ff569d-32d2-4277-af98-db7d28a10593", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (16472642233 - 55 University Ave 302 Toronto, ON M5H 3B7 Canada)", "UnitAmount": 2.75, "TaxType": "TAX020", "TaxAmount": 0.36, "LineAmount": 2.75, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "6744e10e-8fe7-4079-ac5f-91a5b63f5a9d", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (18883119273)", "UnitAmount": 1.75, "TaxType": "TAX020", "TaxAmount": 0.23, "LineAmount": 1.75, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "72744cae-811c-4635-9388-d2d3035e8f7e", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 57.00, "TotalTax": 7.42, "Total": 64.42, "UpdatedDateUTC": "\/Date(1736258184903+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 08:56:24] Production.INFO: -- Create Invoice id --a4365ba6-4eea-4588-9c60-802baf24df9a [2025-01-07 08:56:24] Production.INFO: -- Create Invoice Done -- [2025-01-07 08:56:25] Production.INFO: -- Xero End Inovice -- [2025-01-07 08:56:25] Production.INFO: ==23890== Releasing lock... [2025-01-07 08:56:25] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10481 #Stops# [2025-01-07 08:56:25] Production.INFO: 29.5 MB #Memory Used#