[2025-01-07 09:13:03] Production.INFO: -- Xero Api Check -- [2025-01-07 09:13: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] => 858 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.141451 [namelookup_time] => 0.534794 [connect_time] => 0.545802 [pretransfer_time] => 0.897966 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2413 [speed_upload] => 71 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.141416 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 43222 ) [2025-01-07 09:13:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTkxODQsImV4cCI6MTczNjI1OTQ4NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU5MTg0LCJhdF9oYXNoIjoiQ1ZCNzBLR2QyVVZVUDBkUVRwSXJnQSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1M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191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.KDvl-rICED6bwtQqRIgE7ONDX8QCjGKoPRv9VI499asPsn-TPMs47sENJC_zIETN2-K0-x74PicZjAT_vy8xaMeiLP-cKrLJC5nO7nyf2xbrqfDWKknCP1hmHBqHh1osmcSUJlPb8wWgJKpfcNupRfFFREONJ0ZLIOSCZ6C-wm0aWCwUNo8XL6HFrSJI1sH7dGoFbm7qOsujdAfhMl9eJwLNP9RHt1aIAYUDij3hDEDrcl58MYMFLh7aok-6Oxag4h1C2CDBOl0h2738JLgDQ7ChKI9KWXB-g79O4zCV8Ym10MOPVHq5Gq1TAlAYWMXDLePBDyKNZ4HQlAlrZQ2k8g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => THwwvnFCcLCTv6uuBwxNYmTT--4kVVWyr2sv1k-M-9k [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:13:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZE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jZXNzIl0sImFtciI6WyJwd2QiXX0.KDvl-rICED6bwtQqRIgE7ONDX8QCjGKoPRv9VI499asPsn-TPMs47sENJC_zIETN2-K0-x74PicZjAT_vy8xaMeiLP-cKrLJC5nO7nyf2xbrqfDWKknCP1hmHBqHh1osmcSUJlPb8wWgJKpfcNupRfFFREONJ0ZLIOSCZ6C-wm0aWCwUNo8XL6HFrSJI1sH7dGoFbm7qOsujdAfhMl9eJwLNP9RHt1aIAYUDij3hDEDrcl58MYMFLh7aok-6Oxag4h1C2CDBOl0h2738JLgDQ7ChKI9KWXB-g79O4zCV8Ym10MOPVHq5Gq1TAlAYWMXDLePBDyKNZ4HQlAlrZQ2k8g [expires_in] => 1800 [token_type] => Bearer [refresh_token] => THwwvnFCcLCTv6uuBwxNYmTT--4kVVWyr2sv1k-M-9k [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:13:04] Production.INFO: AccountID 195 [2025-01-07 09:13:04] Production.INFO: AccountName TSFV Management Corp (Two Small Fish) [2025-01-07 09:13:04] Production.INFO: Checkcustomer [2025-01-07 09:13:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TSFV%20Management%20Corp%20%28Two%20Small%20Fish%29" [2025-01-07 09:13:07] Production.INFO: Contact id print CheckCustomer Case===9833b5c4-71b1-4ca5-9307-986f727c9b62 [2025-01-07 09:13:07] Production.INFO: -- count --1 [2025-01-07 09:13:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 09:13:07] Production.INFO: CheckInvoice xerov2: INV11156 [2025-01-07 09:13:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11156 [2025-01-07 09:13:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 09:13:09] Production.INFO: Invoice SubTotal 1.750000 [2025-01-07 09:13:09] Production.INFO: Invoice DetTotal 1.75 [2025-01-07 09:13:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="TSFV%20Management%20Corp%20%28Two%20Small%20Fish%29" [2025-01-07 09:13:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 09:13:16] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 09:13:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 09:13:21] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,"Description": "License for a VM-only line",Quantity : 1,UnitAmount : 1.750000,LineAmount : 1.750000} [2025-01-07 09:13:23] Production.INFO: ==== result ===== [2025-01-07 09:13:23] Production.INFO: { "Id": "7eae3612-d6a0-4292-9fe9-24fc27e810ca", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736259203501)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b6b2cce4-de82-4b38-b7ae-41b66434806a", "InvoiceNumber": "INV11156", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.98, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "9833b5c4-71b1-4ca5-9307-986f727c9b62", "ContactStatus": "ACTIVE", "Name": "TSFV Management Corp (Two Small Fish)", "FirstName": "Nazia", "LastName": "Khan", "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(1682945569710+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-05T00:00:00", "Date": "\/Date(1733356800000+0000)\/", "DueDateString": "2025-01-04T00:00:00", "DueDate": "\/Date(1735948800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for a VM-only line", "UnitAmount": 1.75, "TaxType": "TAX020", "TaxAmount": 0.23, "LineAmount": 1.75, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "cce02fa2-36ad-4808-9100-f504f1e349e1", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 1.75, "TotalTax": 0.23, "Total": 1.98, "UpdatedDateUTC": "\/Date(1736259203470+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 09:13:23] Production.INFO: -- Create Invoice id --b6b2cce4-de82-4b38-b7ae-41b66434806a [2025-01-07 09:13:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 09:13:23] Production.INFO: -- Xero End Inovice -- [2025-01-07 09:13:23] Production.INFO: ==25272== Releasing lock... [2025-01-07 09:13:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10486 #Stops# [2025-01-07 09:13:23] Production.INFO: 29.5 MB #Memory Used#