Postman includes the Content-Length, if I remove this parameter this request fails. The response incorrectly states:
{“errors”: [{“code”: “BAD_REQUEST”,“detail”: “At least one of given_name, family_name, company_name, email_address, or phone_number is required for a customer.”,“category”: “INVALID_REQUEST_ERROR”}]}
If the length is required then the returned response should show that specific error. The API does not mention Content-Length.
Typically when sending data, you specify in the Content-Length field the size of the data being sent (especially since sometimes it can be chunked). So completely omitting it on something other than a GET or DELETE isn’t ideal. We recommend following the common HTTP spec and specify the Content-Length in the request.
The Content-Length indicates to the server the size of the request body that is added to the request. The server uses the value to parse the request body accurately.