• 1
rodrigo.aiello

Problem to create a test user "Invalid siteId"

Question

6 answers to this question

Recommended Posts

  • 1

yo lo testie con postman y con Chrome crest client y me arroja el mismo problema

 

{
  "message":"Invalid siteId",
  "error":"bad_request",
  "status":400,"cause":[]
}

 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

It works from Windows CMD console by inverting all the quotation marks in the SiteID Json ...

like this:   "{'site_id':'MCO'}"

instead of:    '{"site_id":"MCO"}'

 

pretty mutch the entire request will be:

curl -X POST -H "Content-Type: application/json" "https://api.mercadopago.com/users/test_user?access_token=PROD_ACCESS_TOKEN" -d "{'site_id':'MCO'}"
Edited by Dan Ortega
changin to one-line command

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now