Trying to use PATCH verb to update a Invoice Detail record. Only updating one filed and it’s a UD field if that matters.
But I’m getting an error. Please note that the GET works without any issues.
Here is the API call:
curl -X 'PATCH' \
'https://company.epicorsaas.com/server/api/v2/odata/200/Erp.BO.ARInvoiceSvc/InvcDtls('\''200'\'',173687,1)' \
-H 'accept: */*' \
-H 'X-API-Key: acripticapikeyhere' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer someevenmorecriptickeyhere' \
-d '{
"Freight_c": 0.12,
}'
and the error is:
{
"HttpStatus": 400,
"ReasonPhrase": "REST API Exception",
"ErrorMessage": "Incorrect input data for PATCH",
"ErrorType": "Ice.Api.Exceptions.ApiException",
"CorrelationId": "549e9a39-7da6-4200-a59f-96c5c048d95f"
}