[2025-01-07 07:07:04] Production.INFO: -- Xero Api Check -- [2025-01-07 07:07: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] => 858 [request_size] => 352 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.004799 [namelookup_time] => 0.28865 [connect_time] => 0.37851 [pretransfer_time] => 0.781874 [size_upload] => 82 [size_download] => 2755 [speed_download] => 2741 [speed_upload] => 81 [download_content_length] => 2755 [upload_content_length] => 82 [starttransfer_time] => 1.004767 [redirect_time] => 0 [redirect_url] => [primary_ip] => 23.72.248.213 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 54.39.180.235 [local_port] => 57782 ) [2025-01-07 07:07:05] Production.INFO: -- connection successfully here --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOEQ2NzI2RkQwMjYxNTgxNTcwRUZDMTkiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJISy1PWm5jdGJjQW8xbkp2MENZVmdWY09fQmsifQ.eyJuYmYiOjE3MzYyNTE2MjQsImV4cCI6MTczNjI1MTkyNCwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS54ZXJvLmNvbSIsImF1ZCI6IjBFNUE4OTZEQ0JCMTQ0Mzk4NENDNjJFNjlCMjBDOTU4IiwiaWF0IjoxNzM2MjUxNjI0LCJhdF9oYXNoIjoiRWFpd2NXc2FnN2xEdjVNT1lSYTNqUSIsInN1YiI6Ijk4MzYzNDUwNGIxNzVkNzA4ZmYwZWQ0ZGRkNmY2NjNkIiwiYXV0aF90aW1lIjoxNzMyNTI1NTY0LCJ4ZXJvX3VzZXJpZCI6IjQxOWY5MmM4LTkxZTEtNDllNS05ZmZiLWI4YTdjNmI3ODg0NSIsImdsb2JhbF9zZXNzaW9uX2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmI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VyaWQiOiI0MTlmOTJjOC05MWUxLTQ5ZTUtOWZmYi1iOGE3YzZiNzg4NDUiLCJnbG9iYWxfc2Vzc2lvbl9pZCI6ImIyMDA3MDcxY2RmMjQ5MGRhODY4OTEyMTVhNDQwNTJiIiwic2lkIjoiYjIwMDcwNzFjZGYyNDkwZGE4Njg5MTIxNWE0NDA1MmIiLCJqdGkiOiJGNTNDRTI4MjFGRjY3QzE5NEU2QTNFQzgwQjFCNUVCQiIsImF1dGhlbnRpY2F0aW9uX2V2ZW50X2lkIjoiNzc3OWNmODUtMTcwNS00MmYyLWI1Y2MtYTdmZWQ3ZTNjNDI4Iiwic2NvcGUiOlsiZW1haWwiLCJwcm9maWxlIiwib3BlbmlkIiwiYWNjb3VudGluZy5zZXR0aW5ncyIsImFjY291bnRpbmcudHJhbnNhY3Rpb25zIiwiYWNjb3VudGluZy5jb250YWN0cyIsIm9mZmxpbmVfYWNjZXNzIl0sImFtciI6WyJwd2QiXX0.RZVg_5uFLXed5EjNZXgC5Ill9leuJJ7mVInOnitqiiatm9ix9bbbzvev4EgzITx4Nwn9sembIYaagIVDPGq4Hy92OzzlixPY0YduM55piP-UPZN1cUXoi3091GQshyI2f6uZn8xGw977Xj9zbZJM6uebmRqOlZJjaSD2s6k1KbEVtE-mYPtFIN-puZFrqVwRuItllsWuxqytuaPP7LP2C9YYOH_51UpFXmoL0F2bp1aZ6s5B0TNvcRQG1hcRV71gL1JBgfbw6RAZczZnqJrvWRkkMlJFSdGmH_Bu3hX7zbRcTyoLkoxsa69Aa1nRukbQfxUfPM4BjLgpFK-xxicHIQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => Zm2JQZmLLlt6M6VOuUmm8d_qLyBBS8j3h3JzIsrGJ2o [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:07:05] Production.INFO: -- connection successfully --stdClass Object ( [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjFDQUY4RTY2NzcyRDZEQzAyOE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ImFtciI6WyJwd2QiXX0.RZVg_5uFLXed5EjNZXgC5Ill9leuJJ7mVInOnitqiiatm9ix9bbbzvev4EgzITx4Nwn9sembIYaagIVDPGq4Hy92OzzlixPY0YduM55piP-UPZN1cUXoi3091GQshyI2f6uZn8xGw977Xj9zbZJM6uebmRqOlZJjaSD2s6k1KbEVtE-mYPtFIN-puZFrqVwRuItllsWuxqytuaPP7LP2C9YYOH_51UpFXmoL0F2bp1aZ6s5B0TNvcRQG1hcRV71gL1JBgfbw6RAZczZnqJrvWRkkMlJFSdGmH_Bu3hX7zbRcTyoLkoxsa69Aa1nRukbQfxUfPM4BjLgpFK-xxicHIQ [expires_in] => 1800 [token_type] => Bearer [refresh_token] => Zm2JQZmLLlt6M6VOuUmm8d_qLyBBS8j3h3JzIsrGJ2o [scope] => email profile openid accounting.settings accounting.transactions accounting.contacts offline_access ) [2025-01-07 07:07:05] Production.INFO: AccountID 67 [2025-01-07 07:07:05] Production.INFO: AccountName Stars & Maple Tours [2025-01-07 07:07:05] Production.INFO: Checkcustomer [2025-01-07 07:07:05] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Stars%20%26%20Maple%20Tours" [2025-01-07 07:07:07] Production.INFO: Contact id print CheckCustomer Case===42f3da1b-13b4-4bab-b989-2a74b97947bd [2025-01-07 07:07:07] Production.INFO: -- count --1 [2025-01-07 07:07:07] Production.INFO: -- Xero Add Inovice -- [2025-01-07 07:07:07] Production.INFO: CheckInvoice xerov2: INV11241 [2025-01-07 07:07:07] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Invoices?InvoiceNumbers=INV11241 [2025-01-07 07:07:10] Production.INFO: Check Invoice Id XEROV20 [2025-01-07 07:07:10] Production.INFO: Invoice SubTotal 32.000000 [2025-01-07 07:07:10] Production.INFO: Invoice DetTotal 32 [2025-01-07 07:07:10] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Contacts?where=Name="Stars%20%26%20Maple%20Tours" [2025-01-07 07:07:13] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Items [2025-01-07 07:07:15] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/TaxRates [2025-01-07 07:07:18] Production.INFO: calling invoices get methodhttps://api.xero.com/api.xro/2.0/Accounts [2025-01-07 07:07:21] 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-01-07 07:07:24] Production.INFO: ==== result ===== [2025-01-07 07:07:24] Production.INFO: { "Id": "239a9e67-67c5-448a-b6fb-81c309ae208f", "Status": "OK", "ProviderName": "Neon OAuth v2", "DateTimeUTC": "\/Date(1736251643959)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "c32711cf-0d5e-45f9-8983-441184db60e6", "InvoiceNumber": "INV11241", "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": "2024-12-19T00:00:00", "Date": "\/Date(1734566400000+0000)\/", "DueDateString": "2025-01-18T00:00:00", "DueDate": "\/Date(1737158400000+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": "0f2ec97b-af4e-48c4-beb0-f82de2665662", "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": "539b1fa6-ad68-4ab4-9a11-1baa234c26fa", "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": "3d96be74-d86a-4fff-9456-a02d36f4b7b6", "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": "6896098a-c409-4141-9f20-23df84a2b37b", "AccountID": "d535551e-b511-426b-8f4b-8f99de09b635", "DiscountAmount": 0.0000, "ValidationErrors": [] } ], "SubTotal": 32.00, "TotalTax": 4.16, "Total": 36.16, "UpdatedDateUTC": "\/Date(1736251643913+0000)\/", "CurrencyCode": "CAD", "StatusAttributeString": "OK" } ] } [2025-01-07 07:07:24] Production.INFO: -- Create Invoice id --c32711cf-0d5e-45f9-8983-441184db60e6 [2025-01-07 07:07:24] Production.INFO: -- Create Invoice Done -- [2025-01-07 07:07:24] Production.INFO: -- Xero End Inovice -- [2025-01-07 07:07:24] Production.INFO: ==14726== Releasing lock... [2025-01-07 07:07:24] Production.INFO: xeroinvoicepostv2-command-xeroinvoicepostv2-companyid-1-jobid-10461 #Stops# [2025-01-07 07:07:24] Production.INFO: 29.5 MB #Memory Used#