[2025-01-07 09:05:03] Production.INFO: -- Xero Api Check -- [2025-01-07 09:05: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] => 0.91649 [namelookup_time] => 0.526635 [connect_time] => 0.537722 [pretransfer_time] => 0.767517 [size_upload] => 82 [size_download] => 2755 [speed_download] => 3006 [speed_upload] => 89 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.916459 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 43158 ) [2025-01-07 09:05:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTg3MDQsImV4cCI6MTczNjI1OTAwNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjU4NzA0LCJhdF9oYXNoIjoiVE9PZGtlNGJoUUZ5cTZKQ3RFMVlGZyIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1M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aWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.wytwmy_lFHJ6cQR76gew7WtPEgB6zHO0GMfsjSyiPB_qN4XBXxmHk7p3ipfBaSd3J1ZSmncccxI1P1iAp-Di3dcBNWQaobjazFczM4tWFEVqBWdWnPVbhznJDSvDUc6_dL6lURtmlc7qIND5VRxzoLUPNXQi7NBDk9Ctquc6BqCDeuz1_6bcrsZAt5ry5tY4erHg7a2LSME5ncK9dFdrqDdqfeQp7xwFLKx9UpVFxL3WYjb3968TLLCOR9-2yVBg4wIyOODBtd4NJAHEmnTzIsA97PTjKUKqq2MK7RTSGOL00xe1jM-MSadgH9bXvhu41hhR_nN1j99f1bLVkPYm_w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => I6QpGNhh5v3xmhDdsIP7KqTdQtTzNaIfSLqaqc8YkzY [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:05:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOE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tciI6WyJwd2QiXX0.wytwmy_lFHJ6cQR76gew7WtPEgB6zHO0GMfsjSyiPB_qN4XBXxmHk7p3ipfBaSd3J1ZSmncccxI1P1iAp-Di3dcBNWQaobjazFczM4tWFEVqBWdWnPVbhznJDSvDUc6_dL6lURtmlc7qIND5VRxzoLUPNXQi7NBDk9Ctquc6BqCDeuz1_6bcrsZAt5ry5tY4erHg7a2LSME5ncK9dFdrqDdqfeQp7xwFLKx9UpVFxL3WYjb3968TLLCOR9-2yVBg4wIyOODBtd4NJAHEmnTzIsA97PTjKUKqq2MK7RTSGOL00xe1jM-MSadgH9bXvhu41hhR_nN1j99f1bLVkPYm_w [expires_in] => 1800 [token_type] => Bearer [refresh_token] => I6QpGNhh5v3xmhDdsIP7KqTdQtTzNaIfSLqaqc8YkzY [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 09:05:04] Production.INFO: AccountID 13 [2025-01-07 09:05:04] Production.INFO: AccountName Rosedale Diner [2025-01-07 09:05:04] Production.INFO: Checkcustomer [2025-01-07 09:05:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Rosedale%20Diner" [2025-01-07 09:05:07] Production.INFO: Contact id print CheckCustomer Case===d315b223-0318-473a-8190-ce14e673da0e [2025-01-07 09:05:07] Production.INFO: -- count --1 [2025-01-07 09:05:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 09:05:07] Production.INFO: CheckInvoice xerov2: INV11189 [2025-01-07 09:05:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11189 [2025-01-07 09:05:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 09:05:10] Production.INFO: Invoice SubTotal 14.780000 [2025-01-07 09:05:10] Production.INFO: Invoice DetTotal 14.78 [2025-01-07 09:05:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Rosedale%20Diner" [2025-01-07 09:05:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 09:05:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 09:05:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 09:05:21] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-10-2024 To 12-09-2024",Quantity : 1,UnitAmount : 0.280000,LineAmount : 0.280000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 1,UnitAmount : 7.000000,LineAmount : 7.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (14169233122 - 1164 YONGE ST TORONTO, ON M4W2L9)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Additional DID (14167850655)",Quantity : 1,UnitAmount : 3.000000,LineAmount : 3.000000},{taxType:"TAX020",AccountCode : 203,"Description": "Additional DID (14168770759)",Quantity : 1,UnitAmount : 2.000000,LineAmount : 2.000000} [2025-01-07 09:05:23] Production.INFO: ==== result ===== [2025-01-07 09:05:23] Production.INFO: { "Id": "7ec059f8-245a-469f-be42-dc1d20115d6b", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736258723859)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b292fc89-a1c3-4be9-b0a0-c61aeac0f7f5", "InvoiceNumber": "INV11189", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 16.71, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "d315b223-0318-473a-8190-ce14e673da0e", "ContactStatus": "ACTIVE", "Name": "Rosedale Diner", "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(1562268227653+0000)\/", "ContactGroups": [ { "ContactGroupID": "73efd01d-7369-4fa2-a005-8c8239e72e58", "Name": "Benjamin's Customers", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": true, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-10T00:00:00", "Date": "\/Date(1733788800000+0000)\/", "DueDateString": "2025-01-09T00:00:00", "DueDate": "\/Date(1736380800000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-10-2024 To 12-09-2024", "UnitAmount": 0.28, "TaxType": "TAX020", "TaxAmount": 0.04, "LineAmount": 0.28, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "32126054-8adc-4c2e-882b-126a81dc1aba", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 7.00, "TaxType": "TAX020", "TaxAmount": 0.91, "LineAmount": 7.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "eefbb892-903d-4fc6-853c-ab83183e6696", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (14169233122 - 1164 YONGE ST TORONTO, ON M4W2L9)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "7758d98a-70c4-44df-bfa0-def3ee212420", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (14167850655)", "UnitAmount": 3.00, "TaxType": "TAX020", "TaxAmount": 0.39, "LineAmount": 3.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "39cbe225-1b04-406d-8e9a-00cce89ef5f5", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (14168770759)", "UnitAmount": 2.00, "TaxType": "TAX020", "TaxAmount": 0.26, "LineAmount": 2.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "LineItemID": "2d1628e9-bef1-45d0-9b8d-2292e9b11d96", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "ValidationErrors": [] } ], "SubTotal": 14.78, "TotalTax": 1.93, "Total": 16.71, "UpdatedDateUTC": "\/Date(1736258723797+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 09:05:23] Production.INFO: -- Create Invoice id --b292fc89-a1c3-4be9-b0a0-c61aeac0f7f5 [2025-01-07 09:05:23] Production.INFO: -- Create Invoice Done -- [2025-01-07 09:05:23] Production.INFO: -- Xero End Inovice -- [2025-01-07 09:05:23] Production.INFO: ==24620== Releasing lock... [2025-01-07 09:05:23] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10484 #Stops# [2025-01-07 09:05:23] Production.INFO: 29.5 MB #Memory Used#