API3
ibabovic at August 1st, 2020 01:46 — #1
Hi,
I'm trying to integrate creating contacts by POST-ing data off a web form directly to OnePage CRM API, but whenever I send the request, I'm getting a HTTP 406 Not Acceptable
response, with a Unknown request format
message as the body of the response. However, I can find the newly created contact in the CRM.
I'm sending the requests via AJAX and they have the Basic HTTP authentication as per the documentation. I've set the Content-Type: application/json
and the payload is sent as a stringified JSON.
Do you have any idea why this might be happening?
Thanks!
EDIT: I've previously created this issue as a CORS issue, but this has not been happening anymore.
cillian at August 4th, 2020 11:08 — #2
Hello there,
Thanks for getting in touch with your query.
Would you mind providing all the information related to the request and response? It will be easier for us to figure out the problem.
For example, it might look something like:
****************************************
--- REQUEST ---
Type: POST
Url: https://onepagecrm.com/api/v3/endpoint.json
Body: {"field":"value"}
--- RESPONSE ---
Code: 200
Message: OK
Body: {"status":0,"message":"OK","timestamp":1596553784,"data":{}}
****************************************
Thanks in advance,
Cillian
Powered by Discourse, best viewed with JavaScript enabled