[2025-01-07 07:13:03] Production.INFO: -- Xero Api Check -- [2025-01-07 07: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] => 855 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.542914 [namelookup_time] => 0.274663 [connect_time] => 0.27629 [pretransfer_time] => 0.451773 [size_upload] => 82 [size_download] => 2755 [speed_download] => 5074 [speed_upload] => 151 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 0.542875 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.17 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 44484 ) [2025-01-07 07:13:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTE5ODQsImV4cCI6MTczNjI1MjI4NCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUxOTg0LCJhdF9oYXNoIjoiWFY3QURUdDJxU1h5c1ptMEVZSjJzUSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIi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GVyb191c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.omGMY1IvC262zqjbaptdBhhS_49UEKlScxDC3mn-HN4XS3483y-5-pHGwMIPQdSy4GiVyQXjPj2JZcLJ7RI5ZD_8oynKn1QxJKvHcuDT6KQF18lA5_oUWsCjGH3E9MQbIxtLjJvzk81zcssA5u3FQ5NB2muVMIoIyBCYVdfxJ9n3PFE46pUkLYBWn45hTsZ-Pk8ss3mAQfAbdSSnC_N-lBCVEQrZ7oxYjjdcIBLIhszWkaiKvAMNynVWmITx9BS4YvBmv8cefiFqDLw5huoy84eCFvldSuNb9_roJiZNWfPVigv_N2BD0yAy58iSTkiur6K-NJWwCoDFwU0D6vAvYg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => kx6R4GtVUUT831x-hrrryYG1bCPReeQCvGZOJT_IyTA [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:13:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQ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YWNjZXNzIl0sImFtciI6WyJwd2QiXX0.omGMY1IvC262zqjbaptdBhhS_49UEKlScxDC3mn-HN4XS3483y-5-pHGwMIPQdSy4GiVyQXjPj2JZcLJ7RI5ZD_8oynKn1QxJKvHcuDT6KQF18lA5_oUWsCjGH3E9MQbIxtLjJvzk81zcssA5u3FQ5NB2muVMIoIyBCYVdfxJ9n3PFE46pUkLYBWn45hTsZ-Pk8ss3mAQfAbdSSnC_N-lBCVEQrZ7oxYjjdcIBLIhszWkaiKvAMNynVWmITx9BS4YvBmv8cefiFqDLw5huoy84eCFvldSuNb9_roJiZNWfPVigv_N2BD0yAy58iSTkiur6K-NJWwCoDFwU0D6vAvYg [expires_in] => 1800 [token_type] => Bearer [refresh_token] => kx6R4GtVUUT831x-hrrryYG1bCPReeQCvGZOJT_IyTA [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:13:04] Production.INFO: AccountID 86 [2025-01-07 07:13:04] Production.INFO: AccountName Selective Conformal Coatings Inc. [2025-01-07 07:13:04] Production.INFO: Checkcustomer [2025-01-07 07:13:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Selective%20Conformal%20Coatings%20Inc." [2025-01-07 07:13:07] Production.INFO: Contact id print CheckCustomer Case===829ddc9d-f1ae-447b-9687-394867f488a7 [2025-01-07 07:13:07] Production.INFO: -- count --1 [2025-01-07 07:13:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:13:07] Production.INFO: CheckInvoice xerov2: INV11258 [2025-01-07 07:13:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11258 [2025-01-07 07:13:09] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:13:09] Production.INFO: Invoice SubTotal 199.580000 [2025-01-07 07:13:09] Production.INFO: Invoice DetTotal 199.58 [2025-01-07 07:13:09] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Selective%20Conformal%20Coatings%20Inc." [2025-01-07 07:13:12] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:13:14] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:13:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:13:20] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 234,DiscountRate : 0.000000,"Description": " From 11-23-2024 To 12-22-2024",Quantity : 1,UnitAmount : 1.380000,LineAmount : 1.380000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for a Pay As You Go Cloud Phone extension",Quantity : 7,UnitAmount : 10.000000,LineAmount : 70.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19059519523 - 141 TRADE VALLEY DR UNIT 5 VAUGHAN, ON L4H3N6)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000},{taxType:"TAX020",AccountCode : 250,DiscountRate : 0.000000,"Description": "Microsoft Office 365 Business Standard subscription (formerly called Office 365 Business Premium)",Quantity : 6,UnitAmount : 16.900000,LineAmount : 101.400000},{taxType:"TAX020",AccountCode : 250,"Description": "Microsoft Office 365 Business Basic subscription (formerly called Office 365 Business Essentials)",Quantity : 3,UnitAmount : 8.100000,LineAmount : 24.300000} [2025-01-07 07:13:22] Production.INFO: ==== result ===== [2025-01-07 07:13:22] Production.INFO: { "Id": "30041d59-cffb-482d-97b4-9b83ca167428", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736252002817)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "7bead9a3-72f5-4d67-b66c-4a651b194c9d", "InvoiceNumber": "INV11258", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 225.53, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "829ddc9d-f1ae-447b-9687-394867f488a7", "ContactNumber": "", "ContactStatus": "ACTIVE", "Name": "Selective Conformal Coatings Inc.", "FirstName": "Christine", "LastName": "Francis", "EmailAddress": "cfrancis@conformalcoating.ca", "BankAccountDetails": "", "TaxNumber": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "365 Healey Dr.", "AddressLine2": "Unit 5", "AddressLine3": "", "AddressLine4": "", "City": "Bolton", "Region": "ON", "PostalCode": "L7E 5C1", "Country": "Canada", "AttentionTo": "Christine Francis" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "(905) 9519523", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "(905) 9519523", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "9055051135", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1544121527830+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2024-12-23T00:00:00", "Date": "\/Date(1734912000000+0000)\/", "DueDateString": "2025-01-22T00:00:00", "DueDate": "\/Date(1737504000000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "From 11-23-2024 To 12-22-2024", "UnitAmount": 1.38, "TaxType": "TAX020", "TaxAmount": 0.18, "LineAmount": 1.38, "AccountCode": "234", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "d81fa4c1-8c49-4073-bdf1-c46f6a5b1627", "AccountID": "8dfd3f31-78c9-433b-85d4-b6b294f097b7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "License for a Pay As You Go Cloud Phone extension", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 9.10, "LineAmount": 70.00, "AccountCode": "203", "Tracking": [], "Quantity": 7.0000, "DiscountRate": 0.00, "LineItemID": "b1d4bf47-0b34-40ed-ad05-8f739a2061a7", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19059519523 - 141 TRADE VALLEY DR UNIT 5 VAUGHAN, ON L4H3N6)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "2a4fe5d3-c0d0-4c09-a39b-ad313ae594f7", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Microsoft Office 365 Business Standard subscription (formerly called Office 365 Business Premium)", "UnitAmount": 16.90, "TaxType": "TAX020", "TaxAmount": 13.18, "LineAmount": 101.40, "AccountCode": "250", "Tracking": [], "Quantity": 6.0000, "DiscountRate": 0.00, "LineItemID": "90fc802d-bbc4-4c6a-ad43-21cbfca586b6", "AccountID": "d5399e58-1ff5-401c-b6b9-7561071439f7", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Microsoft Office 365 Business Basic subscription (formerly called Office 365 Business Essentials)", "UnitAmount": 8.10, "TaxType": "TAX020", "TaxAmount": 3.16, "LineAmount": 24.30, "AccountCode": "250", "Tracking": [], "Quantity": 3.0000, "LineItemID": "c2491039-57bd-430f-a171-807ef7c04c6c", "AccountID": "d5399e58-1ff5-401c-b6b9-7561071439f7", "ValidationErrors": [] } ], "SubTotal": 199.58, "TotalTax": 25.95, "Total": 225.53, "UpdatedDateUTC": "\/Date(1736252002753+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:13:22] Production.INFO: -- Create Invoice id --7bead9a3-72f5-4d67-b66c-4a651b194c9d [2025-01-07 07:13:22] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:13:22] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:13:22] Production.INFO: ==15366== Releasing lock... [2025-01-07 07:13:22] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10462 #Stops# [2025-01-07 07:13:22] Production.INFO: 29.5 MB #Memory Used#