How to create users
To perform the tests, you must have at least two users:
Type of test users | Description |
Seller | It is the account you use to configure the application and credentials for collection. |
Buyer | It is the account you use to test the purchase process.. |
Execute the following curl to generate a test user:
curl
curl -X POST \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer PROD_ACCESS_TOKEN' \
"https://api.mercadopago.com/users/test_user" \
-d '{"site_id":"MLB"}'
The answer will have a structure similar to the following example:
json
{
"id": 123456,
"nickname": "TT123456",
"password": "qatest123456",
"site_status": "active",
"email": "test_user_123456@testuser.com",
"date_created": "2021-11-04T12:02:35Z",
"date_last_updated": "2021-11-04T12:02:35Z"
}
For more information about test user API parameters and responses, check API References