Sachin Salgarkar Posted October 8, 2021 Share Posted October 8, 2021 Hello, I am getting this response while creating a Sales Invoice . { "$severity": "error", "$dataCode": "Validation", "$message": "artefact_number must be between 1 and 2147483647", "$source": "artefact_number" } The artefact_number field is not a part of the payload for the POST request to create a new invoice. https://developer.sage.com/api/accounting/api/invoicing-sales/#operation/postSalesInvoices What am I missing ? Thanks, Sachin Link to comment Share on other sites More sharing options...
Steel, Mark Posted October 8, 2021 Share Posted October 8, 2021 Hi Sachin, thank you for your question. Could you send us the failed request headers and body please. Thanks Mark Link to comment Share on other sites More sharing options...
Sachin Salgarkar Posted October 15, 2021 Author Share Posted October 15, 2021 Mark, Sorry for the delayed reply. I was able to figure this out. Since this is a Create Invoice request, I figured that he Artefact number could mean Invoice Number. The Invoice number field type is String , however it worked when I used integer values. Thanks, Sachin 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now