vincere-io / restful-api-support

5 stars 0 forks source link

Vincere API v2 - Candidate Search - 400 Bad Request error #7

Closed alexeysourcebreaker closed 4 years ago

alexeysourcebreaker commented 5 years ago

Hi,

Hope you can help me with a few technical issues.

I am trying to build integration with Vincere API v2 (candidate search https://api.vincere.io/documentation.html#operation/searchCandidate).

I am sending a GET request to https://companyname.vincere.io/api/v2/candidate/search/fl=id,name (I keep it simple here for now so I excluded all queries, etc.). I added the following 2 request headers: x-api-key and id-token, where x-api-key is company's API key and id-token is a valid id token that I got after passing through Vincere auth process.

Unfortunately, I get the following response from Vincere (400 BAD REQUEST):

{
    "message": "Data is invalid",
    "status": "FAILED",
    "httpStatus": "400",
    "errorCode": "QUERY_PARSE_FAIL",
    "errorId": "487ed120-b571-401b-9517-82f31892f56c",
    "errors": [
        "Parse exception {0}"
    ]
}

Please note the following:

I would highly appreciate if you could help me understand what is causing this error.

Please let me know should you need more details.

Thank you!

Alexey

phamvannam commented 5 years ago

@alexeysourcebreaker I have try with your query on my tenant, it's work fine. Can you tell me your tenant called on Vincere.