Create test user - Test user - Mercado Pago Developers
Create test user

POST

/users/test_user
This endpoint handles http requests to create a test user.
Request's parameters
access_token

REQUIRED

string
Localization: queryAccess token generated from the seller by the authentication process (OAuth). Security code that identifies the user, their privileges and an application used in different requests from public sources to access protected resources. Its validity is determined by the expires_in parameter and is similar to APP_USR-1585551492-030918-25######3458-2880736, which is composed of
Access token type: APP_USR (application on behalf of a user), TEST (test, only valid in sandbox)
Client ID: 1585551492
Creation date (MMddHH): 030918
Security hash: 25######3458
User ID: 2880736
site_id

REQUIRED

string
Localization: bodyID of the site where the test user will be created.
MPE: Mercado Libre Perú
MLU: Mercado Libre Uruguay
MLA: Mercado Libre Argentina
MLC: Mercado Libre Chile
MCO: Mercado Libre Colombia
MLB: Mercado Libre Brasil
MLM: Mercado Libre México
Response parameters
id
integer
Localization: bodyUnique ID that identifies the test user.
nickname
string
Localization: bodyNickname that identifies the test user.
password
string
Localization: bodyTest user password.
site_status
string
Localization: bodyStatus of the site where the test user was created.
Request
curl
curl -X POST \
    'https://api.mercadopago.com/users/test_user?access_token=12123adfasdf123u4u' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
  "site_id": "MLA"
}'
Answer
json
{
  "id": 123,
  "nickname": "TEST45I5GYIH",
  "password": "qatest6730",
  "site_status": "active",
  "site_id": "MLA",
  "email": "test_user_123@testuser.com",
  "date_created": "2022-02-01T12:00:00.000-04:00",
  "date_last_updated": "2022-02-01T12:00:00.000-04:00"
}
Errors
400bad_request
400400--Bad-Request--invalid-site_id
401bad_request
401401--Not-Found--invalid-token
403bad_request
403403--Forbidden--authorization-the-caller-id-must-be-a-productive-user
404bad_request
404404--Resource-Not-Found
500bad_request
500500--Internal-Server-Error