{"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/fc5b5e11-d99a-4f9e-baaa-3c648c2300f3", "resourceId": "fc5b5e11-d99a-4f9e-baaa-3c648c2300f3", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-01T14:32:04.198" }],"firstEventSequence": 215,"lastEventSequence": 215, "entropy": "IMGUUTDRSVUYMBYKJHVJ"} XeroInvoice response { "Id": "f6608922-6944-4b28-a524-83d92c5d43af", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746109931103)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "fc5b5e11-d99a-4f9e-baaa-3c648c2300f3", "InvoiceNumber": "INV-0018", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 4.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "214c3f44-b9ce-4005-b329-13fadf878261", "ContactStatus": "ACTIVE", "Name": "testsherry", "FirstName": "testsherry", "LastName": "n/a", "EmailAddress": "testwebycart@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(1746108508120+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 4.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 4.0000, "LineItemID": "861bd7e8-f879-48b6-a2c8-b13a5aeed715", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 4.00, "TotalTax": 0.00, "Total": 4.00, "UpdatedDateUTC": "\/Date(1746109924130+0000)\/", "CurrencyCode": "USD" } ] } {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/fc5b5e11-d99a-4f9e-baaa-3c648c2300f3", "resourceId": "fc5b5e11-d99a-4f9e-baaa-3c648c2300f3", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-01T14:35:52.304" }],"firstEventSequence": 216,"lastEventSequence": 216, "entropy": "BHCVWUPTOXZTLVKVFSND"} XeroInvoice response { "Id": "c069bfdf-ba13-4ed8-bf7d-9ad3fb1ecce7", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746110166117)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "fc5b5e11-d99a-4f9e-baaa-3c648c2300f3", "InvoiceNumber": "INV-0018", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 5.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "214c3f44-b9ce-4005-b329-13fadf878261", "ContactStatus": "ACTIVE", "Name": "testsherry", "FirstName": "testsherry", "LastName": "n/a", "EmailAddress": "testwebycart@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(1746108508120+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 5.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 5.0000, "LineItemID": "861bd7e8-f879-48b6-a2c8-b13a5aeed715", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 5.00, "TotalTax": 0.00, "Total": 5.00, "UpdatedDateUTC": "\/Date(1746110152220+0000)\/", "CurrencyCode": "USD" } ] } {"altId":"srOpgM4tU2B01kO57VoS","altType":"location","name":"New Invoice","currency":"USD","businessDetails":{"name":"testsherry"},"contactId":"f2dt72BBecVZMu5Cv6ls","contactDetails":{"id":"f2dt72BBecVZMu5Cv6ls","name":"testsherry","email":"testwebycart@gmail.com"},"discount":[],"invoiceItems":[{"name":"Test","productId":"6813869915075c9f5ffb6162","currency":"USD","amount":1,"qty":5}],"issueDate":"2025-05-01","dueDate":"2025-05-02","liveMode":true} GHL invoice update response {"status":"sent","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"6813804e0df61a2873462d7c","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"testsherry"},"invoiceNumber":"000055","currency":"USD","contactDetails":{"id":"f2dt72BBecVZMu5Cv6ls","name":"testsherry","email":"testwebycart@gmail.com"},"issueDate":"2025-05-01T05:00:00.000Z","dueDate":"2025-05-03T04:59:59.999Z","termsNotes":"","invoiceItems":[{"taxes":[],"taxInclusive":false,"_id":"681386d627ece274adf2e39c","name":"Test","productId":"6813869915075c9f5ffb6162","currency":"USD","amount":1,"qty":5}],"total":5,"invoiceTotal":5,"amountDue":5,"title":"INVOICE","automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"invoiceNumberPrefix":"INV-","paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"lateFeesConfiguration":{"charges":[],"enable":true,"type":"percentage","grace":{"interval":"day","intervalCount":10},"frequency":{"interval":"month","intervalCount":1},"value":1,"totalLateFees":0,"collectedLateFees":0,"meta":{"6813804e0df61a2873462d7c":{"nextChildTask":{"id":"681385df97facc4799183f42","executeAt":"2025-05-12T05:00:00.000Z"},"parentTask":{"id":"681385df97faccb91d183f41"}}},"maxLateFees":null},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-01T14:08:14.266Z","updatedAt":"2025-05-01T14:36:06.715Z","manualStatusTransitions":{"sent":false},"sentAt":"2025-05-01T14:08:23.213Z","sentBy":"XKdi9z2sFTMXhuo3O9pq","sentFrom":{"fromName":"Dev Admin","fromEmail":"bjmarino@gmail.com"},"sentTo":{"email":["testwebycart@gmail.com"],"emailCc":[],"emailBcc":[]},"updatedBy":null,"remindersConfiguration":{"reminderExecutionDetailsList":{"11181442-6a6a-49da-a2b6-eb6dc3f74dea":{"parentTaskId":"68138057a668a5013373bf97","nextChildTaskId":"68138057a668a535d373bf98","executeAt":"2025-05-01T23:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"efafa523-3822-4b68-b770-33eb4f713b24":{"parentTaskId":"6813805779e24d76f1fcc76c","nextChildTaskId":"6813805779e24d96d3fcc76d","executeAt":"2025-05-01T22:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"92beeed0-1153-46dd-b6df-4df713fe3bec":{"parentTaskId":"68138057a668a5440f73bf99","nextChildTaskId":"68138057a668a5582b73bf9a","executeAt":"2025-05-09T13:00:00.000Z","executedCount":0,"reminderStatus":"initiated"}},"reminderSettings":{"reminders":[{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 1","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":3,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Friendly Reminder: Payment Due Soon for Invoice #[{{ invoice.number }}]","reminderId":"11181442-6a6a-49da-a2b6-eb6dc3f74dea"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 2","enabled":true,"maxReminders":1,"intervalType":"hourly","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":1,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Action Required: Payment Due Today for Invoice #[{{ invoice.number }}]","reminderId":"efafa523-3822-4b68-b770-33eb4f713b24"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 3","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"after","reminderInvoiceCondition":"invoice_overdue","reminderNumber":7,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Urgent: Invoice #[{{ invoice.number }}] is Overdue","reminderId":"92beeed0-1153-46dd-b6df-4df713fe3bec"}],"defaultEmailTemplateId":""}},"traceId":"b671e04f-d2b2-43d4-aeae-a9b19d86e4fd"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "resourceId": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-01T15:04:04.467" }],"firstEventSequence": 217,"lastEventSequence": 217, "entropy": "WKMOMQGHQHZWVQBBMGNR"} XeroInvoice response { "Id": "fc33ae84-2659-4455-a7e4-9e03e5161c68", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746111854125)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "InvoiceNumber": "INV-0019", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.03, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "ff2d3e12-8f64-4bf2-a1ff-b0c0708906e2", "ContactStatus": "ACTIVE", "Name": "bjmarino@gmail.com", "EmailAddress": "bjmarino@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(1746091806037+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "OUTPUT", "TaxAmount": 0.03, "LineAmount": 1.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "a7d21fb2-2808-406d-83d8-321fad4ac4eb", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 1.00, "TotalTax": 0.03, "Total": 1.03, "UpdatedDateUTC": "\/Date(1746111844423+0000)\/", "CurrencyCode": "USD" } ] } New invoice store in db. {"status":"draft","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"68138d6f27ece2680af2e71a","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"bj marino"},"invoiceNumber":"000058","currency":"USD","contactDetails":{"id":"EImsXjaPMmWz9JXTkTNN","name":"bj marino","email":"bjmarino@gmail.com"},"issueDate":"2025-05-01T05:00:00.000Z","dueDate":"2025-05-03T04:59:59.999Z","sentTo":{"email":["bjmarino@gmail.com"]},"invoiceItems":[{"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":"OUTPUT","rate":3,"calculation":"exclusive"}],"taxInclusive":false,"_id":"68138d6f27ece2a14bf2e71b","name":"Test","productId":"6813869915075c9f5ffb6162","currency":"USD","amount":1,"qty":1}],"total":1.0300000000000000266453525910037569701671600341796875,"invoiceTotal":1.0300000000000000266453525910037569701671600341796875,"amountDue":1.0300000000000000266453525910037569701671600341796875,"automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-01T15:04:15.815Z","updatedAt":"2025-05-01T15:04:15.815Z","traceId":"a6e08fd1-e80c-4dd9-9887-c71d3475c171"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "resourceId": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-01T15:04:04.467" },{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "resourceId": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-01T15:04:20.699" }],"firstEventSequence": 217,"lastEventSequence": 218, "entropy": "PLUCFJFPIGHHNFKDFYWO"} XeroInvoice response { "Id": "7a5b3774-c58d-4fab-b261-e6d260617e16", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746111914891)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "InvoiceNumber": "INV-0019", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.03, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "ff2d3e12-8f64-4bf2-a1ff-b0c0708906e2", "ContactStatus": "ACTIVE", "Name": "bjmarino@gmail.com", "EmailAddress": "bjmarino@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(1746091806037+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "OUTPUT", "TaxAmount": 0.03, "LineAmount": 1.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "a7d21fb2-2808-406d-83d8-321fad4ac4eb", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 1.00, "TotalTax": 0.03, "Total": 1.03, "UpdatedDateUTC": "\/Date(1746111860627+0000)\/", "CurrencyCode": "USD" } ] } New invoice store in db. {"status":"draft","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"68138dab111f4d7c17b947d4","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"bj marino"},"invoiceNumber":"000059","currency":"USD","contactDetails":{"id":"EImsXjaPMmWz9JXTkTNN","name":"bj marino","email":"bjmarino@gmail.com"},"issueDate":"2025-05-01T05:00:00.000Z","dueDate":"2025-05-03T04:59:59.999Z","sentTo":{"email":["bjmarino@gmail.com"]},"invoiceItems":[{"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":"OUTPUT","rate":3,"calculation":"exclusive"}],"taxInclusive":false,"_id":"68138dab111f4d7846b947d5","name":"Test","productId":"6813869915075c9f5ffb6162","currency":"USD","amount":1,"qty":1}],"total":1.0300000000000000266453525910037569701671600341796875,"invoiceTotal":1.0300000000000000266453525910037569701671600341796875,"amountDue":1.0300000000000000266453525910037569701671600341796875,"automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-01T15:05:15.653Z","updatedAt":"2025-05-01T15:05:15.653Z","traceId":"dedcebc2-7b61-484f-a599-552bbdc2a7b2"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "resourceId": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-01T15:05:21.166" }],"firstEventSequence": 219,"lastEventSequence": 219, "entropy": "NQOKTLUDAKPFUMSSGRCI"} XeroInvoice response { "Id": "3c4bcc79-21b2-4f16-9c44-cb4028d7cd1f", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746111928444)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "6fb77bc4-c779-4802-b96c-1fe5c4aecebc", "InvoiceNumber": "INV-0019", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.03, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "ff2d3e12-8f64-4bf2-a1ff-b0c0708906e2", "ContactStatus": "ACTIVE", "Name": "bjmarino@gmail.com", "EmailAddress": "bjmarino@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(1746091806037+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-03T00:00:00", "DueDate": "\/Date(1746230400000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "OUTPUT", "TaxAmount": 0.03, "LineAmount": 1.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "3a16da93-b67f-4ffd-8106-0787c8dd4517", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 1.00, "TotalTax": 0.03, "Total": 1.03, "UpdatedDateUTC": "\/Date(1746111921103+0000)\/", "CurrencyCode": "USD" } ] } {"altId":"srOpgM4tU2B01kO57VoS","altType":"location","name":"New Invoice","currency":"USD","businessDetails":{"name":"bj marino"},"contactId":"EImsXjaPMmWz9JXTkTNN","contactDetails":{"id":"EImsXjaPMmWz9JXTkTNN","name":"bj marino","email":"bjmarino@gmail.com"},"discount":[],"invoiceItems":[{"name":"Test","productId":"6813869915075c9f5ffb6162","currency":"USD","amount":1,"qty":1,"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":"OUTPUT","rate":3,"calculation":"exclusive"}]}],"issueDate":"2025-05-01","dueDate":"2025-05-03","liveMode":true} GHL invoice update response {"status":"sent","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"68138d430df61a1ca7463329","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"bj marino"},"invoiceNumber":"000057","currency":"USD","contactDetails":{"id":"EImsXjaPMmWz9JXTkTNN","name":"bj marino","email":"bjmarino@gmail.com"},"issueDate":"2025-05-01T05:00:00.000Z","dueDate":"2025-05-04T04:59:59.999Z","termsNotes":"","invoiceItems":[{"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":"OUTPUT","rate":3,"calculation":"exclusive"}],"taxInclusive":false,"_id":"68138db9111f4d1601b947d7","name":"Test","productId":"6813869915075c9f5ffb6162","currency":"USD","amount":1,"qty":1}],"total":1.03,"invoiceTotal":1.03,"amountDue":1.03,"title":"INVOICE","automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"invoiceNumberPrefix":"INV-","paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"lateFeesConfiguration":{"charges":[],"enable":true,"type":"percentage","grace":{"interval":"day","intervalCount":10},"frequency":{"interval":"month","intervalCount":1},"value":1,"totalLateFees":0,"collectedLateFees":0,"meta":{"68138d430df61a1ca7463329":{"nextChildTask":{"id":"68138d4797facce16018424e","executeAt":"2025-05-12T05:00:00.000Z"},"parentTask":{"id":"68138d4797facc3fa918424d"}}}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-01T15:03:31.451Z","updatedAt":"2025-05-01T15:05:29.052Z","manualStatusTransitions":{"sent":false},"sentAt":"2025-05-01T15:03:35.046Z","sentBy":"L4MutkQI45PpvIwAsycU","sentFrom":{"fromName":"Ben Marino","fromEmail":"bmarino@teamitservices.com"},"sentTo":{"email":["bjmarino@gmail.com"],"emailCc":[],"emailBcc":[]},"updatedBy":null,"remindersConfiguration":{"reminderExecutionDetailsList":{"11181442-6a6a-49da-a2b6-eb6dc3f74dea":{"parentTaskId":"68138d4797facca41718424b","nextChildTaskId":"68138d4797facc877e18424c","executeAt":"2025-05-01T23:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"efafa523-3822-4b68-b770-33eb4f713b24":{"parentTaskId":"68138d47a668a57b9973c340","nextChildTaskId":"68138d47a668a50a5773c341","executeAt":"2025-05-01T22:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"92beeed0-1153-46dd-b6df-4df713fe3bec":{"parentTaskId":"68138d47e17bf23015b9fdd5","nextChildTaskId":"68138d47e17bf264a8b9fdd6","executeAt":"2025-05-09T13:00:00.000Z","executedCount":0,"reminderStatus":"initiated"}},"reminderSettings":{"reminders":[{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 1","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":3,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Friendly Reminder: Payment Due Soon for Invoice #[{{ invoice.number }}]","reminderId":"11181442-6a6a-49da-a2b6-eb6dc3f74dea"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 2","enabled":true,"maxReminders":1,"intervalType":"hourly","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":1,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Action Required: Payment Due Today for Invoice #[{{ invoice.number }}]","reminderId":"efafa523-3822-4b68-b770-33eb4f713b24"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 3","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"after","reminderInvoiceCondition":"invoice_overdue","reminderNumber":7,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Urgent: Invoice #[{{ invoice.number }}] is Overdue","reminderId":"92beeed0-1153-46dd-b6df-4df713fe3bec"}],"defaultEmailTemplateId":""}},"traceId":"af986d1e-ee33-420e-8191-2e44a9c48e4b"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/a6ac5304-0316-4df0-a82a-19134b26b983", "resourceId": "a6ac5304-0316-4df0-a82a-19134b26b983", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-02T09:10:29.286" }],"firstEventSequence": 220,"lastEventSequence": 220, "entropy": "CUMRXGBGSNMHXFTSMMDT"} XeroInvoice response { "Id": "f5d98879-384a-48cd-a204-92ff44f861f4", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746177037480)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a6ac5304-0316-4df0-a82a-19134b26b983", "InvoiceNumber": "INV-0020", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 2.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "214c3f44-b9ce-4005-b329-13fadf878261", "ContactStatus": "ACTIVE", "Name": "testsherry", "FirstName": "testsherry", "LastName": "n/a", "EmailAddress": "testwebycart@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(1746108508120+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-03T00:00:00", "DueDate": "\/Date(1746230400000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 2.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 2.0000, "LineItemID": "0ef22615-9ed7-4383-a7fa-9ef473b25190", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 2.00, "TotalTax": 0.00, "Total": 2.00, "UpdatedDateUTC": "\/Date(1746177029190+0000)\/", "CurrencyCode": "USD" } ] } New invoice store in db. {"status":"draft","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"68148c0ed872902655c61c0d","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"testsherry"},"invoiceNumber":"000061","currency":"USD","contactDetails":{"id":"f2dt72BBecVZMu5Cv6ls","name":"testsherry","email":"testwebycart@gmail.com"},"issueDate":"2025-05-02T05:00:00.000Z","dueDate":"2025-05-04T04:59:59.999Z","sentTo":{"email":["testwebycart@gmail.com"]},"invoiceItems":[{"taxes":[],"taxInclusive":false,"_id":"68148c0ed872903ac8c61c0e","name":"Test","productId":"6813d08852e211144a43991c","currency":"USD","amount":1,"qty":2}],"total":2,"invoiceTotal":2,"amountDue":2,"automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-02T09:10:38.084Z","updatedAt":"2025-05-02T09:10:38.084Z","traceId":"3a5b8ceb-95d2-4a6f-9593-cf25361698cc"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/a6ac5304-0316-4df0-a82a-19134b26b983", "resourceId": "a6ac5304-0316-4df0-a82a-19134b26b983", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T09:10:43.747" }],"firstEventSequence": 221,"lastEventSequence": 221, "entropy": "QWUOTZHEKWZPPTWZKXIN"} XeroInvoice response { "Id": "b009eeae-1b05-4065-ad17-a836d87f7960", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746177051197)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a6ac5304-0316-4df0-a82a-19134b26b983", "InvoiceNumber": "INV-0020", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 2.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "214c3f44-b9ce-4005-b329-13fadf878261", "ContactStatus": "ACTIVE", "Name": "testsherry", "FirstName": "testsherry", "LastName": "n/a", "EmailAddress": "testwebycart@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(1746108508120+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-04T00:00:00", "DueDate": "\/Date(1746316800000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 2.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 2.0000, "LineItemID": "cfe05399-d143-4c69-aa35-e31ce3a76702", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 2.00, "TotalTax": 0.00, "Total": 2.00, "UpdatedDateUTC": "\/Date(1746177043677+0000)\/", "CurrencyCode": "USD" } ] } {"altId":"srOpgM4tU2B01kO57VoS","altType":"location","name":"New Invoice","currency":"USD","businessDetails":{"name":"testsherry"},"contactId":"f2dt72BBecVZMu5Cv6ls","contactDetails":{"id":"f2dt72BBecVZMu5Cv6ls","name":"testsherry","email":"testwebycart@gmail.com"},"discount":[],"invoiceItems":[{"name":"Test","productId":"6813d08852e211144a43991c","currency":"USD","amount":1,"qty":2}],"issueDate":"2025-05-02","dueDate":"2025-05-04","liveMode":true} GHL invoice update response {"status":"sent","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"68148bfb1e162344ab305f5f","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"testsherry"},"invoiceNumber":"000060","currency":"USD","contactDetails":{"id":"f2dt72BBecVZMu5Cv6ls","name":"testsherry","email":"testwebycart@gmail.com"},"issueDate":"2025-05-02T05:00:00.000Z","dueDate":"2025-05-05T04:59:59.999Z","termsNotes":"","invoiceItems":[{"taxes":[],"taxInclusive":false,"_id":"68148c1bd872902a9cc61c0f","name":"Test","productId":"6813d08852e211144a43991c","currency":"USD","amount":1,"qty":2}],"total":2,"invoiceTotal":2,"amountDue":2,"title":"INVOICE","automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"invoiceNumberPrefix":"INV-","paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"lateFeesConfiguration":{"charges":[],"enable":true,"type":"percentage","grace":{"interval":"day","intervalCount":10},"frequency":{"interval":"month","intervalCount":1},"value":1,"totalLateFees":0,"collectedLateFees":0,"meta":{"68148bfb1e162344ab305f5f":{"nextChildTask":{"id":"68148c01e17bf2708bba1d50","executeAt":"2025-05-13T05:00:00.000Z"},"parentTask":{"id":"68148c01e17bf29c65ba1d4f"}}}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-02T09:10:19.280Z","updatedAt":"2025-05-02T09:10:51.708Z","manualStatusTransitions":{"sent":false},"sentAt":"2025-05-02T09:10:24.047Z","sentBy":"XKdi9z2sFTMXhuo3O9pq","sentFrom":{"fromName":"Dev Admin","fromEmail":"bjmarino@gmail.com"},"sentTo":{"email":["testwebycart@gmail.com"],"emailCc":[],"emailBcc":[]},"updatedBy":null,"remindersConfiguration":{"reminderExecutionDetailsList":{"11181442-6a6a-49da-a2b6-eb6dc3f74dea":{"parentTaskId":"68148c00e17bf225daba1d4b","nextChildTaskId":"68148c00e17bf24b43ba1d4c","executeAt":"2025-05-02T23:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"efafa523-3822-4b68-b770-33eb4f713b24":{"parentTaskId":"68148c00a668a5977273e29d","nextChildTaskId":"68148c00a668a527b073e29e","executeAt":"2025-05-02T22:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"92beeed0-1153-46dd-b6df-4df713fe3bec":{"parentTaskId":"68148c01e17bf2d6d3ba1d4d","nextChildTaskId":"68148c01e17bf28c8dba1d4e","executeAt":"2025-05-10T13:00:00.000Z","executedCount":0,"reminderStatus":"initiated"}},"reminderSettings":{"reminders":[{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 1","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":3,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Friendly Reminder: Payment Due Soon for Invoice #[{{ invoice.number }}]","reminderId":"11181442-6a6a-49da-a2b6-eb6dc3f74dea"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 2","enabled":true,"maxReminders":1,"intervalType":"hourly","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":1,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Action Required: Payment Due Today for Invoice #[{{ invoice.number }}]","reminderId":"efafa523-3822-4b68-b770-33eb4f713b24"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 3","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"after","reminderInvoiceCondition":"invoice_overdue","reminderNumber":7,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Urgent: Invoice #[{{ invoice.number }}] is Overdue","reminderId":"92beeed0-1153-46dd-b6df-4df713fe3bec"}],"defaultEmailTemplateId":""}},"traceId":"ef7897af-ac0b-493a-b4da-94983a3470c7"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/a6ac5304-0316-4df0-a82a-19134b26b983", "resourceId": "a6ac5304-0316-4df0-a82a-19134b26b983", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T09:19:10.454" }],"firstEventSequence": 222,"lastEventSequence": 222, "entropy": "MACKZGPCRMDQASDJLVQC"} XeroInvoice response { "Id": "7aec9b55-66a2-42cd-a94c-1d1efa9965f3", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746177563428)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a6ac5304-0316-4df0-a82a-19134b26b983", "InvoiceNumber": "000060", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 4.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "214c3f44-b9ce-4005-b329-13fadf878261", "ContactStatus": "ACTIVE", "Name": "testsherry", "FirstName": "testsherry", "LastName": "n/a", "EmailAddress": "testwebycart@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(1746108508120+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-05T00:00:00", "DueDate": "\/Date(1746403200000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 4.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 4.0000, "LineItemID": "b656a8a5-e7c7-4b80-a9a9-bd67875851a6", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 4.00, "TotalTax": 0.00, "Total": 4.00, "UpdatedDateUTC": "\/Date(1746177550373+0000)\/", "CurrencyCode": "USD" } ] } {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/a6ac5304-0316-4df0-a82a-19134b26b983", "resourceId": "a6ac5304-0316-4df0-a82a-19134b26b983", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T09:30:51.428" }],"firstEventSequence": 223,"lastEventSequence": 223, "entropy": "CIOACBTTGTVACIRFWOAU"} XeroInvoice response { "Id": "d0068da0-5d2f-4fb2-bba6-7c72b2e75f8c", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746178256253)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "a6ac5304-0316-4df0-a82a-19134b26b983", "InvoiceNumber": "INV-000060", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 5.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "214c3f44-b9ce-4005-b329-13fadf878261", "ContactStatus": "ACTIVE", "Name": "testsherry", "FirstName": "testsherry", "LastName": "n/a", "EmailAddress": "testwebycart@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(1746108508120+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-05T00:00:00", "DueDate": "\/Date(1746403200000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "test", "Description": "Test", "UnitAmount": 1.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 5.00, "AccountCode": "600", "Item": { "ItemID": "39cf9f94-6183-423f-9e0c-2b7a67391797", "Name": "Test", "Code": "test" }, "Tracking": [], "Quantity": 5.0000, "LineItemID": "6808b0a9-cdab-4538-b3f7-e81aa2ef4439", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 5.00, "TotalTax": 0.00, "Total": 5.00, "UpdatedDateUTC": "\/Date(1746178251360+0000)\/", "CurrencyCode": "USD" } ] } {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/5467899d-1286-49e0-be2c-1ffcf2c50f54", "resourceId": "5467899d-1286-49e0-be2c-1ffcf2c50f54", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-02T09:46:15.059" }],"firstEventSequence": 224,"lastEventSequence": 224, "entropy": "MIPERRHQDEAORMYCZGEW"} XeroInvoice response { "Id": "3c59ca43-f087-42d2-a6bc-6f8a4503c4af", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746179181608)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "5467899d-1286-49e0-be2c-1ffcf2c50f54", "InvoiceNumber": "ch_3RJx6UGvFjI7rgNX14ia8u8s 25-05-01", "Reference": "Stripe Sales May 01, 2025 for markc@thehangout.com", "Payments": [ { "PaymentID": "997c308f-7d89-483b-a990-e34ed0043f09", "Date": "\/Date(1746057600000+0000)\/", "Amount": 2831.37, "Reference": "Stripe Credit Card Payment ch_3RJx6UGvFjI7rgNX14ia8u8s", "CurrencyRate": 1.0000000000, "HasAccount": false, "HasValidationErrors": false } ], "Prepayments": [], "Overpayments": [], "AmountDue": 0.00, "AmountPaid": 2831.37, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "74c40158-9de6-4829-81de-b387286e4268", "ContactStatus": "ACTIVE", "Name": "markc@thehangout.com", "EmailAddress": "markc@thehangout.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(1744709159093+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-01T00:00:00", "DueDate": "\/Date(1746057600000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "PAID", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Stripe Sales Total", "UnitAmount": 2831.37, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 2831.37, "AccountCode": "SYNC001", "Tracking": [], "Quantity": 1.0000, "LineItemID": "39895ee8-a462-4629-a518-472eb33c5587", "AccountID": "48da2a92-681c-40b9-99e0-09075ee55096", "ValidationErrors": [] } ], "SubTotal": 2831.37, "TotalTax": 0.00, "Total": 2831.37, "UpdatedDateUTC": "\/Date(1746179177493+0000)\/", "CurrencyCode": "USD", "FullyPaidOnDate": "\/Date(1746057600000+0000)\/" } ] } New invoice store in db. {"status":422,"message":"Unprocessable Entity Exception","name":"HttpException","statusCode":422,"error":["items.0.name should not be empty","items.0.name must be a string"],"traceId":"4a158b51-d623-447c-a656-f040d18900a5"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/5467899d-1286-49e0-be2c-1ffcf2c50f54", "resourceId": "5467899d-1286-49e0-be2c-1ffcf2c50f54", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T09:46:17.606" }],"firstEventSequence": 225,"lastEventSequence": 225, "entropy": "WOVBPUYCXNRZBTUBQDHM"} XeroInvoice response { "Id": "cbd1e742-b781-4212-a1d9-7847cdd077c1", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746179187146)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "5467899d-1286-49e0-be2c-1ffcf2c50f54", "InvoiceNumber": "ch_3RJx6UGvFjI7rgNX14ia8u8s 25-05-01", "Reference": "Stripe Sales May 01, 2025 for markc@thehangout.com", "Payments": [ { "PaymentID": "997c308f-7d89-483b-a990-e34ed0043f09", "Date": "\/Date(1746057600000+0000)\/", "Amount": 2831.37, "Reference": "Stripe Credit Card Payment ch_3RJx6UGvFjI7rgNX14ia8u8s", "CurrencyRate": 1.0000000000, "HasAccount": false, "HasValidationErrors": false } ], "Prepayments": [], "Overpayments": [], "AmountDue": 0.00, "AmountPaid": 2831.37, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "74c40158-9de6-4829-81de-b387286e4268", "ContactStatus": "ACTIVE", "Name": "markc@thehangout.com", "EmailAddress": "markc@thehangout.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(1744709159093+0000)\/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-01T00:00:00", "Date": "\/Date(1746057600000+0000)\/", "DueDateString": "2025-05-01T00:00:00", "DueDate": "\/Date(1746057600000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "PAID", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Stripe Sales Total", "UnitAmount": 2831.37, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 2831.37, "AccountCode": "SYNC001", "Tracking": [], "Quantity": 1.0000, "LineItemID": "39895ee8-a462-4629-a518-472eb33c5587", "AccountID": "48da2a92-681c-40b9-99e0-09075ee55096", "ValidationErrors": [] } ], "SubTotal": 2831.37, "TotalTax": 0.00, "Total": 2831.37, "UpdatedDateUTC": "\/Date(1746179177493+0000)\/", "CurrencyCode": "USD", "FullyPaidOnDate": "\/Date(1746057600000+0000)\/" } ] } {"altId":"srOpgM4tU2B01kO57VoS","altType":"location","name":"New Invoice","currency":"USD","businessDetails":{"name":"mark chaffins"},"contactId":"4VM6DrHeNUsDYJkiwDGY","contactDetails":{"id":"4VM6DrHeNUsDYJkiwDGY","name":"mark chaffins","email":"markc@thehangout.com"},"discount":[],"invoiceItems":[{"name":null,"productId":"6813d08852e211144a43991c","currency":"USD","amount":2831.3699999999998908606357872486114501953125,"qty":1}],"issueDate":"2025-05-01","dueDate":"2025-05-01","liveMode":true} GHL invoice update response {"statusCode":401,"message":"This route is not yet supported by the IAM Service. Please update your IAM config."} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/b9923fef-584c-43bd-911e-d687561bd142", "resourceId": "b9923fef-584c-43bd-911e-d687561bd142", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T13:08:55.574" }],"firstEventSequence": 226,"lastEventSequence": 226, "entropy": "XPNBIRLPODTFYAGSDNNT"} XeroInvoice response { "Id": "9d8754fa-ac43-4134-bcbb-05c550b67916", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746191343308)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b9923fef-584c-43bd-911e-d687561bd142", "InvoiceNumber": "9790", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 2520.87, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "87da6aa2-ecdc-46df-a780-d2f4827257ae", "ContactStatus": "ACTIVE", "Name": "BB's Cafe - HQ Office", "FirstName": "Brooks", "LastName": "Bassler", "EmailAddress": "susann@bbstexorleans.com", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "AddressLine1": "1302 Waugh Dr #632", "AddressLine2": "", "City": "Houston", "Region": "TX", "PostalCode": "77019", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "7132130790", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "00000000", "PhoneAreaCode": "", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "\/Date(1744076001270+0000)\/", "ContactGroups": [ { "ContactGroupID": "ab1a3ef6-fce2-44a7-94e6-5b2dc32d35c1", "Name": "Texas", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": false, "IsCustomer": true, "SalesTrackingCategories": [ { "TrackingCategoryName": "Sales Rep", "TrackingOptionName": "Ben Marino" }, { "TrackingCategoryName": "Region", "TrackingOptionName": "Texas" } ], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-03-28T00:00:00", "Date": "\/Date(1743120000000+0000)\/", "DueDateString": "2025-03-28T00:00:00", "DueDate": "\/Date(1743120000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "TMALIGN", "Description": "Correspondence with client (BB's Tex-Orleans) to confirm continuation of TM SecureSync as a monthly subscription service post-termination agreement. Discussed scheduled data/account deletion and confirmed SecureSync exclusion from deletion. Notified client of potential additional charges for extending other services past the cutoff date. Requested confirmation on continued music subscription billing for all locations.", "UnitAmount": 250.00, "TaxType": "TAX001", "TaxAmount": 20.63, "LineAmount": 250.00, "AccountCode": "600.5", "Item": { "ItemID": "5f48bdd9-fcee-403f-9637-9bc4988f6669", "Name": "ALIGN - Consulting", "Code": "TMALIGN" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "569c1aec-b43a-4de7-91ef-03c7923181fc", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] }, { "ItemCode": "TMALIGN", "Description": "Final coordination and confirmation with client (Matthew at BB's Tex Orleans) regarding the disconnection of all services except SecureSync. Verified that billing for Soundtrack will conclude this month and Tech-MAR will no longer be charged. Confirmed initiation of termination processes for all other systems. Expressed appreciation for continued partnership and left the door open for future collaboration.", "UnitAmount": 250.00, "TaxType": "TAX001", "TaxAmount": 20.63, "LineAmount": 250.00, "AccountCode": "600.5", "Item": { "ItemID": "5f48bdd9-fcee-403f-9637-9bc4988f6669", "Name": "ALIGN - Consulting", "Code": "TMALIGN" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "cd919fa2-d533-4c8f-be57-4f084e2a4f4f", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] }, { "ItemCode": "TMALIGN", "Description": "Engaged in multi-day coordination regarding the disconnection of phone and cellular backup internet services for all BB’s Tex-Orleans locations. Reconfirmed client intent for service termination and escalated communication to avoid service disruption. Discussed risk implications of disconnecting without replacement systems in place and clarified the consequences of losing critical business continuity components. Provided advisement regarding phone number retention via the Telnyx porting process after denial of direct billing ownership transfer. Supported client efforts in setting up new accounts for both Verizon and AT&T services. Requested clarity on system setup and contingency plans to ensure smooth service transition. Adjusted disconnection schedule based on evolving client priorities and ensured services remain active until official cutover is completed.", "UnitAmount": 250.00, "TaxType": "TAX001", "TaxAmount": 41.25, "LineAmount": 500.00, "AccountCode": "600.5", "Item": { "ItemID": "5f48bdd9-fcee-403f-9637-9bc4988f6669", "Name": "ALIGN - Consulting", "Code": "TMALIGN" }, "Tracking": [], "Quantity": 2.0000, "LineItemID": "0aaa95d4-d099-45d7-940c-f94cf85b79a3", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] }, { "ItemCode": "TMALIGN", "Description": "Consulted with client (Matthew at BB's Tex-Orleans) regarding transfer of DID phone numbers and SIP trunk migration to new VoIP.ms account (Acct# 439363). Clarified technical misunderstanding about the number transfer process, explaining standard porting procedures and role of the current carrier. Discussed future phone system hosting strategy, confirming client’s plan to implement a 3CX environment with VoIP.ms handling SIP trunking. Provided insight into current SIP trunking setup via wholesale provider and addressed limitations on direct access. Offered guidance on optimal migration timing, advising client to ensure 3CX environment and SIP trunks are fully in place before initiating port requests to minimize downtime and potential communication disruption.", "UnitAmount": 250.00, "TaxType": "TAX001", "TaxAmount": 41.25, "LineAmount": 500.00, "AccountCode": "600.5", "Item": { "ItemID": "5f48bdd9-fcee-403f-9637-9bc4988f6669", "Name": "ALIGN - Consulting", "Code": "TMALIGN" }, "Tracking": [], "Quantity": 2.0000, "LineItemID": "be27f644-4d5c-435d-9f5a-38152a3af58f", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] }, { "ItemCode": "TMALIGN", "Description": "Collaborated with client (Matthew at BB's Tex-Orleans) on initiating the porting process for 14 phone numbers from existing Telnyx-hosted services to a new Telnyx account under BB’s Tex-Orleans. Clarified porting requirements and coordinated details for the End User Account, Service Address, Billing Telephone Number, and ownership verification. Explained constraints of Telnyx’s wholesale setup and advised on acceptable documentation substitutions, including generating a PDF from the CSV of phone numbers as the “most recent invoice.” Reviewed and confirmed phone number list, provided guidance on filling out the Letter of Authorization (LOA), and processed signed LOA submission. Verified account transition from previous plan to new Telnyx setup, replacing initial plan to use VoIP.ms. Ensured client had all necessary materials and instructions to complete porting without service disruption.", "UnitAmount": 250.00, "TaxType": "TAX001", "TaxAmount": 61.88, "LineAmount": 750.00, "AccountCode": "600.5", "Item": { "ItemID": "5f48bdd9-fcee-403f-9637-9bc4988f6669", "Name": "ALIGN - Consulting", "Code": "TMALIGN" }, "Tracking": [], "Quantity": 3.0000, "LineItemID": "8b961518-08ab-4048-b8ac-f3a54914e364", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] }, { "ItemCode": "TMALIGN", "Description": "Late Fee", "UnitAmount": 85.24, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 85.24, "AccountCode": "600.5", "Item": { "ItemID": "5f48bdd9-fcee-403f-9637-9bc4988f6669", "Name": "ALIGN - Consulting", "Code": "TMALIGN" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "653e22a6-4500-4393-a990-358795be7328", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] }, { "Description": "Adjustment line", "UnitAmount": -0.01, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": -0.01, "AccountCode": "600.5", "Tracking": [], "Quantity": 1.0000, "LineItemID": "c6e641fa-bf3b-42fa-b246-21b6f9c2c10f", "AccountID": "a7e0dcf1-1902-4291-80c4-ce330962a26d", "ValidationErrors": [] } ], "SubTotal": 2335.23, "TotalTax": 185.64, "Total": 2520.87, "UpdatedDateUTC": "\/Date(1746191335460+0000)\/", "CurrencyCode": "USD" } ] } {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/65b5443f-26f6-434c-8727-a75956b49cfb", "resourceId": "65b5443f-26f6-434c-8727-a75956b49cfb", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-02T13:16:21.316" }],"firstEventSequence": 227,"lastEventSequence": 227, "entropy": "JTTPGSAUWTILPZIHDAZI"} XeroInvoice response { "Id": "07a64b21-7840-42ea-88fc-d4c0821a3d11", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746191787410)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "65b5443f-26f6-434c-8727-a75956b49cfb", "InvoiceNumber": "INV-0021", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 0.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "4f565ca8-fbb3-483a-944d-ba8b33bf8ff4", "ContactStatus": "ACTIVE", "Name": "test webycart", "FirstName": "test", "LastName": "webycart", "EmailAddress": "sheharyar.cs14@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(1746093106137+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Tracking": [], "LineItemID": "959c1f56-71d8-47e9-aa67-0a1859efbf62", "ValidationErrors": [] } ], "SubTotal": 0.00, "TotalTax": 0.00, "Total": 0.00, "UpdatedDateUTC": "\/Date(1746191781253+0000)\/", "CurrencyCode": "USD" } ] } New invoice store in db. {"status":500,"message":"Cannot read properties of null (reading 'toString')","name":"HttpException","traceId":"3ed92e32-56e0-4fb6-808a-95a151ca4cfb"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/65b5443f-26f6-434c-8727-a75956b49cfb", "resourceId": "65b5443f-26f6-434c-8727-a75956b49cfb", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T13:22:57.602" }],"firstEventSequence": 228,"lastEventSequence": 228, "entropy": "ASIKHFPUZXVLUZEXWQRU"} XeroInvoice response { "Id": "8f3ffe62-9246-4b9d-a98e-16d0e3237c83", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746192188560)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "65b5443f-26f6-434c-8727-a75956b49cfb", "InvoiceNumber": "INV-0021", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 0.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "4f565ca8-fbb3-483a-944d-ba8b33bf8ff4", "ContactStatus": "ACTIVE", "Name": "test webycart", "FirstName": "test", "LastName": "webycart", "EmailAddress": "sheharyar.cs14@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(1746093106137+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "DELETED", "LineAmountTypes": "Exclusive", "LineItems": [ { "Tracking": [], "LineItemID": "959c1f56-71d8-47e9-aa67-0a1859efbf62", "ValidationErrors": [] } ], "SubTotal": 0.00, "TotalTax": 0.00, "Total": 0.00, "UpdatedDateUTC": "\/Date(1746192177560+0000)\/", "CurrencyCode": "USD" } ] } {"altId":"srOpgM4tU2B01kO57VoS","altType":"location","name":"New Invoice","currency":"USD","businessDetails":{"name":"test webycart"},"contactId":"XSQYcMSdnxY9znYqCOCZ","contactDetails":{"id":"XSQYcMSdnxY9znYqCOCZ","name":"test webycart","email":"sheharyar.cs14@gmail.com"},"discount":[],"invoiceItems":[{"name":null,"productId":"6814c3ef52e21106b14400dc","currency":"USD","amount":null,"qty":null,"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":null,"rate":0,"calculation":"exclusive"}]}],"issueDate":"2025-05-02","dueDate":"2025-05-02","liveMode":true} GHL invoice update response {"statusCode":401,"message":"This route is not yet supported by the IAM Service. Please update your IAM config."} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/b8e541c2-dd8c-48f4-a4b4-a1160fcea443", "resourceId": "b8e541c2-dd8c-48f4-a4b4-a1160fcea443", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-02T13:24:46.979" }],"firstEventSequence": 229,"lastEventSequence": 229, "entropy": "IKXBRQQVEZAJPKKEXIVV"} XeroInvoice response { "Id": "dcd14a6a-1808-4a4d-84a0-dc043d8447d0", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746192292166)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b8e541c2-dd8c-48f4-a4b4-a1160fcea443", "InvoiceNumber": "INV-0022", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 4.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "4f565ca8-fbb3-483a-944d-ba8b33bf8ff4", "ContactStatus": "ACTIVE", "Name": "test webycart", "FirstName": "test", "LastName": "webycart", "EmailAddress": "sheharyar.cs14@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(1746093106137+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-02T00:00:00", "DueDate": "\/Date(1746144000000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "121130599005941760", "Description": "Office 365 Exchange Online Plan", "UnitAmount": 4.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 4.00, "AccountCode": "600", "Item": { "ItemID": "8f7133ce-dbb2-486b-8182-6ab757751e82", "Name": "Microsoft Office 365 Exchange Online Mailbox", "Code": "121130599005941760" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "e35815f4-c73d-44c8-8114-ea48f5cd85aa", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 4.00, "TotalTax": 0.00, "Total": 4.00, "UpdatedDateUTC": "\/Date(1746192286897+0000)\/", "CurrencyCode": "USD" } ] } New invoice store in db. {"status":"draft","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"6814c7a51e16232d84306e62","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"test webycart"},"invoiceNumber":"0022","currency":"USD","contactDetails":{"id":"XSQYcMSdnxY9znYqCOCZ","name":"test webycart","email":"sheharyar.cs14@gmail.com"},"issueDate":"2025-05-02T05:00:00.000Z","dueDate":"2025-05-03T04:59:59.999Z","sentTo":{"email":["sheharyar.cs14@gmail.com"]},"invoiceItems":[{"taxes":[],"taxInclusive":false,"_id":"6814c7a51e1623017e306e63","name":"Microsoft Office 365 Exchange Online Mailbox","productId":"6814c7a4385b72f7c715e402","currency":"USD","amount":4,"qty":1}],"total":4,"invoiceTotal":4,"amountDue":4,"automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-02T13:24:53.021Z","updatedAt":"2025-05-02T13:24:53.021Z","traceId":"24e69941-cacd-4408-9057-7e055e269b8a"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/b8e541c2-dd8c-48f4-a4b4-a1160fcea443", "resourceId": "b8e541c2-dd8c-48f4-a4b4-a1160fcea443", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T13:24:58.541" }],"firstEventSequence": 230,"lastEventSequence": 230, "entropy": "VDEXCUKBYQMURHUGOBYE"} XeroInvoice response { "Id": "8d456e7a-3544-4fc7-866a-92dc491e7950", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746192311041)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "b8e541c2-dd8c-48f4-a4b4-a1160fcea443", "InvoiceNumber": "INV-0022", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 4.00, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "4f565ca8-fbb3-483a-944d-ba8b33bf8ff4", "ContactStatus": "ACTIVE", "Name": "test webycart", "FirstName": "test", "LastName": "webycart", "EmailAddress": "sheharyar.cs14@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(1746093106137+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-03T00:00:00", "DueDate": "\/Date(1746230400000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "NoTax", "LineItems": [ { "ItemCode": "121130599005941760", "Description": "Microsoft Office 365 Exchange Online Mailbox", "UnitAmount": 4.00, "TaxType": "NONE", "TaxAmount": 0.00, "LineAmount": 4.00, "AccountCode": "600", "Item": { "ItemID": "8f7133ce-dbb2-486b-8182-6ab757751e82", "Name": "Microsoft Office 365 Exchange Online Mailbox", "Code": "121130599005941760" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "2d95f767-852a-4d31-8230-348438302cd6", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 4.00, "TotalTax": 0.00, "Total": 4.00, "UpdatedDateUTC": "\/Date(1746192298467+0000)\/", "CurrencyCode": "USD" } ] } {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/3693ecbc-05ca-4a18-8f61-565c5ac7201e", "resourceId": "3693ecbc-05ca-4a18-8f61-565c5ac7201e", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "CREATE", "eventDateUtc": "2025-05-02T13:37:31.889" }],"firstEventSequence": 231,"lastEventSequence": 231, "entropy": "INYKXNDGIYHFPJPTHYUN"} XeroInvoice response { "Id": "8167d7d5-3496-4079-b53a-d2b8ebeb630a", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746193058554)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "3693ecbc-05ca-4a18-8f61-565c5ac7201e", "InvoiceNumber": "INV-000062", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.08, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "ff2d3e12-8f64-4bf2-a1ff-b0c0708906e2", "ContactStatus": "ACTIVE", "Name": "bjmarino@gmail.com", "EmailAddress": "bjmarino@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(1746091806037+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-03T00:00:00", "DueDate": "\/Date(1746230400000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "test-item-2", "Description": "Test Item 2", "UnitAmount": 1.00, "TaxType": "OUTPUT", "TaxAmount": 0.08, "LineAmount": 1.00, "AccountCode": "600", "Item": { "ItemID": "8d12d4f1-0f4f-46b1-b88f-7f6769b29346", "Name": "Test Item 2", "Code": "test-item-2" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "416c01ed-688f-48b4-a635-50a66620043e", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 1.00, "TotalTax": 0.08, "Total": 1.08, "UpdatedDateUTC": "\/Date(1746193052537+0000)\/", "CurrencyCode": "USD" } ] } New invoice store in db. {"status":400,"message":"Invoice number already exists! Please try with different invoice number","name":"HttpException","statusCode":400,"traceId":"86b7a265-33c6-4c0a-a30c-72b3c11e0f22"} {"events":[{ "resourceUrl": "https://api.xero.com/api.xro/2.0/Invoices/3693ecbc-05ca-4a18-8f61-565c5ac7201e", "resourceId": "3693ecbc-05ca-4a18-8f61-565c5ac7201e", "tenantId": "4e3eef5b-31cd-45fa-bec2-55c777be0c8a", "tenantType": "ORGANISATION", "eventCategory": "INVOICE", "eventType": "UPDATE", "eventDateUtc": "2025-05-02T13:37:32.581" }],"firstEventSequence": 232,"lastEventSequence": 232, "entropy": "FJNIQPQZVOUJBZZMLJMG"} XeroInvoice response { "Id": "787b3cdb-357c-4a12-83a8-7ebc2f37d3fa", "Status": "OK", "ProviderName": "webycart", "DateTimeUTC": "\/Date(1746193069357)\/", "Invoices": [ { "Type": "ACCREC", "InvoiceID": "3693ecbc-05ca-4a18-8f61-565c5ac7201e", "InvoiceNumber": "INV-000062", "Reference": "", "Prepayments": [], "Overpayments": [], "AmountDue": 1.08, "AmountPaid": 0.00, "SentToContact": false, "CurrencyRate": 1.0000000000, "IsDiscounted": false, "HasAttachments": false, "HasErrors": false, "Attachments": [], "InvoicePaymentServices": [], "Contact": { "ContactID": "ff2d3e12-8f64-4bf2-a1ff-b0c0708906e2", "ContactStatus": "ACTIVE", "Name": "bjmarino@gmail.com", "EmailAddress": "bjmarino@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(1746091806037+0000)\/", "ContactGroups": [], "IsSupplier": true, "IsCustomer": true, "DefaultCurrency": "USD", "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "DateString": "2025-05-02T00:00:00", "Date": "\/Date(1746144000000+0000)\/", "DueDateString": "2025-05-03T00:00:00", "DueDate": "\/Date(1746230400000+0000)\/", "BrandingThemeID": "3d80d6bd-ce3a-4f50-886c-f672bf930a00", "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "ItemCode": "test-item-2", "Description": "Test Item 2", "UnitAmount": 1.00, "TaxType": "OUTPUT", "TaxAmount": 0.08, "LineAmount": 1.00, "AccountCode": "600", "Item": { "ItemID": "8d12d4f1-0f4f-46b1-b88f-7f6769b29346", "Name": "Test Item 2", "Code": "test-item-2" }, "Tracking": [], "Quantity": 1.0000, "LineItemID": "416c01ed-688f-48b4-a635-50a66620043e", "AccountID": "99f847ba-1ddc-4e14-8540-1451333c14d4", "ValidationErrors": [] } ], "SubTotal": 1.00, "TotalTax": 0.08, "Total": 1.08, "UpdatedDateUTC": "\/Date(1746193052537+0000)\/", "CurrencyCode": "USD" } ] } {"altId":"srOpgM4tU2B01kO57VoS","altType":"location","name":"New Invoice","currency":"USD","businessDetails":{"name":"bj marino"},"contactId":"EImsXjaPMmWz9JXTkTNN","contactDetails":{"id":"EImsXjaPMmWz9JXTkTNN","name":"bj marino","email":"bjmarino@gmail.com"},"discount":[],"invoiceItems":[{"name":"Test Item 2","productId":"680b7eaf6d8a8550072c7718","currency":"USD","amount":1,"qty":1,"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":"OUTPUT","rate":8,"calculation":"exclusive"}]}],"issueDate":"2025-05-02","dueDate":"2025-05-03","liveMode":true} GHL invoice update response {"status":"sent","discount":[],"liveMode":true,"amountPaid":0,"attachments":[],"_id":"6814ca9482da1a1efdabd1ba","altId":"srOpgM4tU2B01kO57VoS","altType":"location","companyId":"U9xRlkvpnFNiWqJrraA7","name":"New Invoice","businessDetails":{"name":"bj marino"},"invoiceNumber":"000062","currency":"USD","contactDetails":{"id":"EImsXjaPMmWz9JXTkTNN","name":"bj marino","email":"bjmarino@gmail.com"},"issueDate":"2025-05-02T05:00:00.000Z","dueDate":"2025-05-04T04:59:59.999Z","termsNotes":"","invoiceItems":[{"taxes":[{"_id":"67fc0da0c1a9900ad1bdfc73","name":"OUTPUT","rate":8,"calculation":"exclusive"}],"taxInclusive":false,"_id":"6814cab082da1a7f7cabd1bc","name":"Test Item 2","productId":"680b7eaf6d8a8550072c7718","currency":"USD","amount":1,"qty":1}],"total":1.08,"invoiceTotal":1.08,"amountDue":1.08,"title":"INVOICE","automaticTaxesCalculated":false,"tipsConfiguration":{"tipsPercentage":[],"tipsEnabled":false},"invoiceNumberPrefix":"INV-","paymentMethods":{"stripe":{"enableBankDebitOnly":false}},"lateFeesConfiguration":{"charges":[],"enable":true,"type":"percentage","grace":{"interval":"day","intervalCount":10},"frequency":{"interval":"month","intervalCount":1},"value":1,"totalLateFees":0,"collectedLateFees":0,"meta":{"6814ca9482da1a1efdabd1ba":{"nextChildTask":{"id":"6814ca99e17bf245a0ba251f","executeAt":"2025-05-13T05:00:00.000Z"},"parentTask":{"id":"6814ca99e17bf2d62aba251e"}}}},"syncDetails":[],"tipsReceived":[],"externalTransactions":[],"createdAt":"2025-05-02T13:37:24.470Z","updatedAt":"2025-05-02T13:37:52.562Z","manualStatusTransitions":{"sent":false},"sentAt":"2025-05-02T13:37:28.642Z","sentBy":"L4MutkQI45PpvIwAsycU","sentFrom":{"fromName":"Ben Marino","fromEmail":"bmarino@teamitservices.com"},"sentTo":{"email":["bjmarino@gmail.com"],"emailCc":[],"emailBcc":[]},"updatedBy":null,"remindersConfiguration":{"reminderExecutionDetailsList":{"11181442-6a6a-49da-a2b6-eb6dc3f74dea":{"parentTaskId":"6814ca98796afe706030b47a","nextChildTaskId":"6814ca98796afe3bc930b47b","executeAt":"2025-05-02T23:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"efafa523-3822-4b68-b770-33eb4f713b24":{"parentTaskId":"6814ca99796afe8ea330b47c","nextChildTaskId":"6814ca99796afe5e0430b47d","executeAt":"2025-05-02T22:00:00.000Z","executedCount":0,"reminderStatus":"initiated"},"92beeed0-1153-46dd-b6df-4df713fe3bec":{"parentTaskId":"6814ca99e17bf2a70dba251c","nextChildTaskId":"6814ca99e17bf2264dba251d","executeAt":"2025-05-10T13:00:00.000Z","executedCount":0,"reminderStatus":"initiated"}},"reminderSettings":{"reminders":[{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 1","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":3,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Friendly Reminder: Payment Due Soon for Invoice #[{{ invoice.number }}]","reminderId":"11181442-6a6a-49da-a2b6-eb6dc3f74dea"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 2","enabled":true,"maxReminders":1,"intervalType":"hourly","reminderTime":"before","reminderInvoiceCondition":"invoice_overdue","reminderNumber":1,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Action Required: Payment Due Today for Invoice #[{{ invoice.number }}]","reminderId":"efafa523-3822-4b68-b770-33eb4f713b24"},{"startTime":"8:00 AM","endTime":"6:00 PM","timezone":"contactTZ","reminderName":"Reminder 3","enabled":true,"maxReminders":1,"intervalType":"daily","reminderTime":"after","reminderInvoiceCondition":"invoice_overdue","reminderNumber":7,"emailTemplate":"default","smsTemplate":"default","emailSubject":"[{{ invoice.company.name }}] Urgent: Invoice #[{{ invoice.number }}] is Overdue","reminderId":"92beeed0-1153-46dd-b6df-4df713fe3bec"}],"defaultEmailTemplateId":""}},"traceId":"6fc3d0ad-0eab-493e-9610-407a9f7deaf7"}