We're trying to retrieve manufacturers by name (via the REST service) and we're getting an http 400 response back, but we don't know why. I've pasted the redacted request and response below.
Request:
Response:
Please let us know what we're doing wrong or if there's a problem with the service.
Thanks.
Request:
GET http://apirest.3dcart.com/3dCartWebA...rontline+Plus& HTTP/1.1
Accept: application/json
privatekey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
secureUrl: https://xxxxxxxxxxxxxxxxxxxx-com.3dcartstores.com
Host: apirest.3dcart.com
Connection: Keep-Alive
Accept: application/json
privatekey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
secureUrl: https://xxxxxxxxxxxxxxxxxxxx-com.3dcartstores.com
Host: apirest.3dcart.com
Connection: Keep-Alive
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server:
X-AspNet-Version: 4.0.30319
X-Powered-By:
Access-Control-Allow-Origin: *
Date: Mon, 13 Jun 2016 16:03:51 GMT
Content-Length: 37
{"Message":"The request is invalid."}
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server:
X-AspNet-Version: 4.0.30319
X-Powered-By:
Access-Control-Allow-Origin: *
Date: Mon, 13 Jun 2016 16:03:51 GMT
Content-Length: 37
{"Message":"The request is invalid."}
Thanks.
Comment