[2025-01-07 07:00:04] Production.INFO: -- Xero Api Check -- [2025-01-07 07:00:05] 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.388508 [namelookup_time] => 0.520345 [connect_time] => 0.522133 [pretransfer_time] => 1.127548 [size_upload] => 82 [size_download] => 2755 [speed_download] => 1984 [speed_upload] => 59 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.388476 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.53.4.33 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 42286 ) [2025-01-07 07:00:05] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTEyMDUsImV4cCI6MTczNjI1MTUwNSwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUxMjA1LCJhdF9oYXNoIjoiUlM0aEM3XzNfbXFIZnFJRXFpTGdhUSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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c2VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.FoaU7kLLBeTkrvzK1OApv_jPMDxu7PKTLRXasx4H6UwUQKEPb3myBAmeAs4A2vQoSM06XYyyu_8P_fvddVZiaWtdvPMEsmDWPvYA6J6LgfflMPUE5sfEbEaRdA2qSZj1w5k2PQrywSz364ehhfnSFVQrVclxgxnoIOZ9uByPTmXOTgxcEOXJ-y6VpWjWsl4X-pHMd89SqdbyL4DlxDUx84g-O5bUbWw4AqLK5xJz4PLinVWNXtezMdJISlgucbAjiabAZSax_CDHTs3CTX2M4ukyvxTIbJ6IA0WdxxXfjecz-9iD4ftcYQ5jM5sFJoBCeaZQTWri1WYNBWjSULfxxw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 16Yi-E5-QHdMj0kzyv7ZU1Uk8vRCZPUDzA3gcQGOQQo [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:00:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRD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NjZXNzIl0sImFtciI6WyJwd2QiXX0.FoaU7kLLBeTkrvzK1OApv_jPMDxu7PKTLRXasx4H6UwUQKEPb3myBAmeAs4A2vQoSM06XYyyu_8P_fvddVZiaWtdvPMEsmDWPvYA6J6LgfflMPUE5sfEbEaRdA2qSZj1w5k2PQrywSz364ehhfnSFVQrVclxgxnoIOZ9uByPTmXOTgxcEOXJ-y6VpWjWsl4X-pHMd89SqdbyL4DlxDUx84g-O5bUbWw4AqLK5xJz4PLinVWNXtezMdJISlgucbAjiabAZSax_CDHTs3CTX2M4ukyvxTIbJ6IA0WdxxXfjecz-9iD4ftcYQ5jM5sFJoBCeaZQTWri1WYNBWjSULfxxw [expires_in] => 1800 [token_type] => Bearer [refresh_token] => 16Yi-E5-QHdMj0kzyv7ZU1Uk8vRCZPUDzA3gcQGOQQo [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:00:05] Production.INFO: AccountID 148 [2025-01-07 07:00:05] Production.INFO: AccountName Pharmacy Associates of Port Perry [2025-01-07 07:00:05] Production.INFO: Checkcustomer [2025-01-07 07:00:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Pharmacy%20Associates%20of%20Port%20Perry" [2025-01-07 07:00:08] Production.INFO: Contact id print CheckCustomer Case===c60706d0-0fd9-40ff-a211-387c86733ac7 [2025-01-07 07:00:08] Production.INFO: -- count --1 [2025-01-07 07:00:08] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:00:08] Production.INFO: CheckInvoice xerov2: INV11292 [2025-01-07 07:00:08] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11292 [2025-01-07 07:00:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:00:10] Production.INFO: Invoice SubTotal 32.500000 [2025-01-07 07:00:10] Production.INFO: Invoice DetTotal 32.5 [2025-01-07 07:00:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Pharmacy%20Associates%20of%20Port%20Perry" [2025-01-07 07:00:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:00:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:00:19] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:00:22] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Retail - 3 Line Flat Rate (Burstable to 5 Active Calls)",Quantity : 3,UnitAmount : 10.000000,LineAmount : 30.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "e911 address registration (19059850200 - 11 Water Street Unit B Port Perry, ON L9L 1H9 Canada)",Quantity : 1,UnitAmount : 2.500000,LineAmount : 2.500000} [2025-01-07 07:00:25] Production.INFO: ==== result ===== [2025-01-07 07:00:25] Production.INFO: { "Id": "76fbb2ad-66d7-4e02-b2c0-4dd5cebd1940", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736251225289)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "2e58a0e6-b755-4ed9-9e11-69f511d83ca5", "InvoiceNumber": "INV11292", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 36.73, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "c60706d0-0fd9-40ff-a211-387c86733ac7", "ContactStatus": "ACTIVE", "Name": "Pharmacy Associates of Port Perry", "FirstName": "Doug", "LastName": "Brown", "EmailAddress": "pharmacyassociates.pp@gmail.com", "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(1620932850877+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-01-01T00:00:00", "Date": "\/Date(1735689600000+0000)\/", "DueDateString": "2025-01-31T00:00:00", "DueDate": "\/Date(1738281600000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Retail - 3 Line Flat Rate (Burstable to 5 Active Calls)", "UnitAmount": 10.00, "TaxType": "TAX020", "TaxAmount": 3.90, "LineAmount": 30.00, "AccountCode": "203", "Tracking": [], "Quantity": 3.0000, "DiscountRate": 0.00, "LineItemID": "606dc62e-61a4-41e7-807f-e84117f84cf1", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "e911 address registration (19059850200 - 11 Water Street Unit B Port Perry, ON L9L 1H9 Canada)", "UnitAmount": 2.50, "TaxType": "TAX020", "TaxAmount": 0.33, "LineAmount": 2.50, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "f2f92d1b-3c1e-4f6b-bfeb-29fcd163168f", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 32.50, "TotalTax": 4.23, "Total": 36.73, "UpdatedDateUTC": "\/Date(1736251225023+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:00:25] Production.INFO: -- Create Invoice id --2e58a0e6-b755-4ed9-9e11-69f511d83ca5 [2025-01-07 07:00:25] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:00:25] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:00:25] Production.INFO: ==14022== Releasing lock... [2025-01-07 07:00:25] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10458 #Stops# [2025-01-07 07:00:25] Production.INFO: 29.5 MB #Memory Used#