[2025-01-07 09:11:03] Production.INFO: -- Xero Api Check -- [2025-01-07 09:11: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.964574 [namelookup_time] => 0.534056 [connect_time] => 0.536415 [pretransfer_time] => 0.817708 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2856 [speed_upload] => 85 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.964522 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 45292 ) [2025-01-07 09:11:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTkwNjQsImV4cCI6MTczNjI1OTM2NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU5MDY0LCJhdF9oYXNoIjoibWtkdnZMTVljcWd5c2RDS0tVSE4yZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiL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c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.kJgYRVB3AJ1FrVcS-YWHuqZicNak9xnkVWfPR79lwGPzO_ScOrOscW64G7_J5wX12DXoizEAgNl02lN8ouz15lawl5lG6PGEKj77uxs1c8tCubh1lp28MDQrIoC19OZ0XtSeZ_0VChknQEtS7oGwrUaB6Ut4u8n2970xPosvZIFwK1qNhuRYqPfb1KqE3Dw-_6W_GRRKJnsDJ092We4I5-wEvAwdki9boLv9R5A0936sDC3jkqla5KeFRSUeAf_z_oauTMwJ7gC8rOdISfKdgoYOb5DeImVprHmUDdnO4uYiTJI6rLCjxmwx6OnUNwr6ogcqx3Zk-haP027NvlcO3Q [expires_in] => 1800 [token_type] => Bearer [refresh_token] => k-ByRP9YwgbekWYDi19ObbjGO1TVrn2P_BZBUJgtUYw [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:11:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2N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tciI6WyJwd2QiXX0.kJgYRVB3AJ1FrVcS-YWHuqZicNak9xnkVWfPR79lwGPzO_ScOrOscW64G7_J5wX12DXoizEAgNl02lN8ouz15lawl5lG6PGEKj77uxs1c8tCubh1lp28MDQrIoC19OZ0XtSeZ_0VChknQEtS7oGwrUaB6Ut4u8n2970xPosvZIFwK1qNhuRYqPfb1KqE3Dw-_6W_GRRKJnsDJ092We4I5-wEvAwdki9boLv9R5A0936sDC3jkqla5KeFRSUeAf_z_oauTMwJ7gC8rOdISfKdgoYOb5DeImVprHmUDdnO4uYiTJI6rLCjxmwx6OnUNwr6ogcqx3Zk-haP027NvlcO3Q [expires_in] => 1800 [token_type] => Bearer [refresh_token] => k-ByRP9YwgbekWYDi19ObbjGO1TVrn2P_BZBUJgtUYw [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:11:04] Production.INFO: AccountID 232 [2025-01-07 09:11:04] Production.INFO: AccountName Jenopher Inc. [2025-01-07 09:11:04] Production.INFO: Checkcustomer [2025-01-07 09:11:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Jenopher%20Inc." [2025-01-07 09:11:07] Production.INFO: Contact id print CheckCustomer Case===5fa26058-5c6f-4ffe-9c35-4f8d77ccf359 [2025-01-07 09:11:07] Production.INFO: -- count --1 [2025-01-07 09:11:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 09:11:07] Production.INFO: CheckInvoice xerov2: INV11166 [2025-01-07 09:11:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11166 [2025-01-07 09:11:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 09:11:10] Production.INFO: Invoice SubTotal 63.200000 [2025-01-07 09:11:10] Production.INFO: Invoice DetTotal 63.2 [2025-01-07 09:11:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Jenopher%20Inc." [2025-01-07 09:11:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 09:11:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 09:11:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 09:11:20] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 90.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension (discounted - utility phone/low call volume)",Quantity : 5,UnitAmount : 12.990000,LineAmount : 6.500000},{taxType:"TAX020",AccountCode : 250,"Description": "Microsoft 365 Business Essentials subscription. Collaboration and productivity suite, managed by OnSwitch.",Quantity : 7,UnitAmount : 8.100000,LineAmount : 56.700000} [2025-01-07 09:11:23] Production.INFO: ==== result ===== [2025-01-07 09:11:23] Production.INFO: { "Id": "2749f69a-8738-44a4-97c7-9e409f43aaf2", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736259083684)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "532afede-97fc-4860-98bb-896a1c391f9b", "InvoiceNumber": "INV11166", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 71.42, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 58.46, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "5fa26058-5c6f-4ffe-9c35-4f8d77ccf359", "ContactStatus": "ACTIVE", "Name": "Jenopher Inc.", "FirstName": "Chris", "LastName": "Lumley", "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(1724224696790+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-07T00:00:00", "Date": "\/Date(1733529600000+0000)\/", "DueDateString": "2025-01-06T00:00:00", "DueDate": "\/Date(1736121600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for an Unlimited Canada/US Cloud Phone extension (discounted - utility phone/low call volume)", "UnitAmount": 12.99, "TaxType": "TAX020", "TaxAmount": 0.85, "LineAmount": 6.50, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 90.00, "LineItemID": "48500af9-a8db-45d3-a765-1ba9289d3a3e", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountEnteredAsPercent": true, "DiscountAmount": 58.4500, "ValidationErrors": [] }, { "Description": "Microsoft 365 Business Essentials subscription. Collaboration and productivity suite, managed by OnSwitch.", "UnitAmount": 8.10, "TaxType": "TAX020", "TaxAmount": 7.37, "LineAmount": 56.70, "AccountCode": "250", "Tracking": [], "Quantity": 7.0000, "LineItemID": "f808ddad-0454-4e98-94b9-4eb1e1593caf", "AccountID": "d5399e58-1ff5-401c-b6b9-7561071439f7", "ValidationErrors": [] } ], "SubTotal": 63.20, "TotalTax": 8.22, "Total": 71.42, "UpdatedDateUTC": "\/Date(1736259083637+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 09:11:23] Production.INFO: -- Create Invoice id --532afede-97fc-4860-98bb-896a1c391f9b [2025-01-07 09:11:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 09:11:23] Production.INFO: -- Xero End Inovice -- [2025-01-07 09:11:23] Production.INFO: ==25081== Releasing lock... [2025-01-07 09:11:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10485 #Stops# [2025-01-07 09:11:23] Production.INFO: 29.75 MB #Memory Used#