When Posting invoices to the Sales endpoints You may encounter the error:
{
"Errors": [
{
"Name": "ValidationWarning",
"Message": "SaleEvent_DuplicateSale",
"AdditionalDetails": "EventId:(SaleEvent)",
"ErrorCode": 4332,
"Severity": "Warning",
"LearnMore": null
},
This error is caused by a duplicate Invoice number on the POST request, You will need to edit the "number" field within the body request so this is a unique invoice number. You can also remove the number field and this will auto-populate the next invoice number in the queue.
"Number": "ABC123",
If you wish to POST duplicate invoice numbers there is a setting in the UI the Administrator of the company file can disable.
1. Setup
2. Preferences
3. Sales
4. Untick warn for duplicate
If you have any questions, feel to log a ticket with the Customisation & Integration Team.
Comments
0 comments
Article is closed for comments.