How to create users - Integration test - Mercado Pago Developers

How to create users

To perform the tests, you must have at least two users:

Type of test usersDescription
SellerIt is the account you use to configure the application and credentials for collection.
BuyerIt is the account you use to test the purchase process..

Execute the following curl to generate a test user:


curl -X POST \
-H "Content-Type: application/json" \
-H 'Authorization: Bearer PROD_ACCESS_TOKEN' \
"" \
-d '{"site_id":"MLB"}'

The answer will have a structure similar to the following example:


    "id": 123456,
    "nickname": "TT123456",
    "password": "qatest123456",
    "site_status": "active",
    "email": "",
    "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

You can generate up to 10 test user accounts simultaneously. Therefore, we recommend you **save each email and password.
Test users expire after 60 days without activity in Mercado Pago.
Both buyer and seller must be test users.