[2025-03-20 06:57:03] Production.INFO: -- Xero Api Check -- [2025-03-20 06:57: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] => 1.237786 [namelookup_time] => 0.542868 [connect_time] => 0.620813 [pretransfer_time] => 1.01 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2225 [speed_upload] => 66 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.237727 [redirect_time] => 0 [redirect_url] => [primary_ip] => 2.21.67.32 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 52348 ) [2025-03-20 06:57:04] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3NDI0NjgyMjQsImV4cCI6MTc0MjQ2ODUyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzQyNDY4MjI0LCJhdF9oYXNoIjoiZU9vVEN6MWJVel91eVNoSkxHMTJIUSIsInN1YiI6Ijc1NGMxN2Q3MTA0YTUxODViYjEyZmM5ODFiN2VlMzliIiwiYXV0aF90aW1lIjoxNzQyNDY2MzA1LCJ4ZXJvX3VzZXJpZCI6IjFiOGM2ODExLTJmMGItNGU3Mi05Y2JhLTY5ZDVlM2RmOTEyYyIsImdsb2JhbF9zZXNzaW9uX2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiLCJz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NSwieGVyb191c2VyaWQiOiIxYjhjNjgxMS0yZjBiLTRlNzItOWNiYS02OWQ1ZTNkZjkxMmMiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6IjllYWZkYTEzZjk1YTQ2YmM4MjZjNzg3YjFlNGM1ZjUwIiwic2lkIjoiOWVhZmRhMTNmOTVhNDZiYzgyNmM3ODdiMWU0YzVmNTAiLCJqdGkiOiIyNUNEQkY1RjBBNTRGMjlDNjBDNUE2RjU4Qzg3NzMyQSIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiMGZlNDU1NWEtNmNkMy00YjFkLTljNjEtMzAzMjBmMjBmZGFkIiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.mf9kjOEqetIQkQniRN0zmerkJeoKa57QqVtoOSvjfH60OrzVsQkkyc2UJWh3PlVOuJCeKTIDsr7WYtSWBwUKei9qqOcS62PilmFWqC8wL0G4_xsFfcEnXTgSQFxGYir5KCHunVzxxx4grwtk-fa4KhV71wXtJHnDt9ckOfe5gWrx9Szc6REimmHe6FbjutTqn-e70JAXpmzJs7pHalIzeQzdCnQESfEyXhBp5SqkFtEGBpFrWUatDkKpXti_BeAto_KTsNNfn8VRQM-4w9Cl1deSxbmep92aZqxR2ZYnusqHGsYgJd6ml9BRrb2XxWRE9nfaUHH0MAlFLEyFeLQFKA [expires_in] => 1800 [token_type] => Bearer [refresh_token] => rY_gxodqxF0ECRjikjjjTtgKQn9YT54d_8RPJmskcIM [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-03-20 06:57:04] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAy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WNjZXNzIl0sImFtciI6WyJwd2QiXX0.mf9kjOEqetIQkQniRN0zmerkJeoKa57QqVtoOSvjfH60OrzVsQkkyc2UJWh3PlVOuJCeKTIDsr7WYtSWBwUKei9qqOcS62PilmFWqC8wL0G4_xsFfcEnXTgSQFxGYir5KCHunVzxxx4grwtk-fa4KhV71wXtJHnDt9ckOfe5gWrx9Szc6REimmHe6FbjutTqn-e70JAXpmzJs7pHalIzeQzdCnQESfEyXhBp5SqkFtEGBpFrWUatDkKpXti_BeAto_KTsNNfn8VRQM-4w9Cl1deSxbmep92aZqxR2ZYnusqHGsYgJd6ml9BRrb2XxWRE9nfaUHH0MAlFLEyFeLQFKA [expires_in] => 1800 [token_type] => Bearer [refresh_token] => rY_gxodqxF0ECRjikjjjTtgKQn9YT54d_8RPJmskcIM [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-03-20 06:57:04] Production.INFO: AccountID 67 [2025-03-20 06:57:04] Production.INFO: AccountName Stars & Maple Tours [2025-03-20 06:57:04] Production.INFO: Checkcustomer [2025-03-20 06:57:04] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Stars%20%26%20Maple%20Tours" [2025-03-20 06:57:07] Production.INFO: Contact id print CheckCustomer Case===42f3da1b-13b4-4bab-b989-2a74b97947bd [2025-03-20 06:57:07] Production.INFO: -- count --1 [2025-03-20 06:57:07] Production.INFO: -- Xero Add Inovice -- [2025-03-20 06:57:07] Production.INFO: CheckInvoice xerov2: INV11734 [2025-03-20 06:57:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11734 [2025-03-20 06:57:10] Production.INFO: Check Invoice Id XEROV20 [2025-03-20 06:57:10] Production.INFO: Invoice SubTotal 32.000000 [2025-03-20 06:57:10] Production.INFO: Invoice DetTotal 32 [2025-03-20 06:57:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Stars%20%26%20Maple%20Tours" [2025-03-20 06:57:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-03-20 06:57:17] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-03-20 06:57:20] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-03-20 06:57:23] Production.INFO: =========Invoices String here======{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "License for an Unlimited Canada/US Cloud Phone extension",Quantity : 5,UnitAmount : 5.000000,LineAmount : 25.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Additional DID (611800431330) - Australia Toll Free",Quantity : 1,UnitAmount : 12.000000,LineAmount : 12.000000},{taxType:"TAX020",AccountCode : 203,DiscountRate : 0.000000,"Description": "Additional DID (18772928528) - North America Toll Free",Quantity : 1,UnitAmount : 5.000000,LineAmount : 5.000000},{taxType:"TAX020",AccountCode : 303,DiscountRate : 0.000000,"Description": "Loyalty discount - $10/month - No expiry (XR)",Quantity : 1,UnitAmount : -10.000000,LineAmount : -10.000000} [2025-03-20 06:57:27] Production.INFO: ==== result ===== [2025-03-20 06:57:27] Production.INFO: { "Id": "1567230a-d29c-4c98-87e2-583e847e4d4c", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1742468247487)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "2cf9f5d4-2568-4fcb-bf1a-baf9be6e1a50", "InvoiceNumber": "INV11734", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 36.16, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "TotalDiscount": 0.00, "IsDiscounted": true, "HasErrors": false, "InvoicePaymentServices": [], "Contact": { "ContactID": "42f3da1b-13b4-4bab-b989-2a74b97947bd", "ContactStatus": "ACTIVE", "Name": "Stars & Maple Tours", "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(1533070471157+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-03-19T00:00:00", "Date": "\/Date(1742342400000+0000)\/", "DueDateString": "2025-04-18T00:00:00", "DueDate": "\/Date(1744934400000+0000)\/", "BrandingThemeID": "2e3f02ce-a6ea-4968-9633-b087c8eb128b", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "License for an Unlimited Canada/US Cloud Phone extension", "UnitAmount": 5.00, "TaxType": "TAX020", "TaxAmount": 3.25, "LineAmount": 25.00, "AccountCode": "203", "Tracking": [], "Quantity": 5.0000, "DiscountRate": 0.00, "LineItemID": "5845ce16-387b-497b-bc40-6095698d819f", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (611800431330) - Australia Toll Free", "UnitAmount": 12.00, "TaxType": "TAX020", "TaxAmount": 1.56, "LineAmount": 12.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "8ee67e9c-f11f-43e8-842d-f2d3ce86a120", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Additional DID (18772928528) - North America Toll Free", "UnitAmount": 5.00, "TaxType": "TAX020", "TaxAmount": 0.65, "LineAmount": 5.00, "AccountCode": "203", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "2d821a37-ec5b-49d4-a76c-2d17d3a432ec", "AccountID": "493d352f-41b2-4e0a-9c89-0adfff4eb3b2", "DiscountAmount": 0.0000, "ValidationErrors": [] }, { "Description": "Loyalty discount - $10/month - No expiry (XR)", "UnitAmount": -10.00, "TaxType": "TAX020", "TaxAmount": -1.30, "LineAmount": -10.00, "AccountCode": "303", "Tracking": [], "Quantity": 1.0000, "DiscountRate": 0.00, "LineItemID": "156c9173-2966-4887-8dbf-2d9b884015bf", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 32.00, "TotalTax": 4.16, "Total": 36.16, "UpdatedDateUTC": "\/Date(1742468247337+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-03-20 06:57:27] Production.INFO: -- Create Invoice id --2cf9f5d4-2568-4fcb-bf1a-baf9be6e1a50 [2025-03-20 06:57:27] Production.INFO: -- Create Invoice Done -- [2025-03-20 06:57:27] Production.INFO: -- Xero End Inovice -- [2025-03-20 06:57:27] Production.INFO: ==23081== Releasing lock... [2025-03-20 06:57:27] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10795 #Stops# [2025-03-20 06:57:27] Production.INFO: 29.5 MB #Memory Used#