Which documentation are you looking for?
Do not know how to start integrating?
Check the first stepsCreate Agreement
POST
Products that use it:
Request's parameters
QUERY
client.id
Unique ID that identifies a specific Clientnumber
HEADER
x-platform-id
Field intended for platforms or modules that offer Mercado Pago in their solutionsstring
BODY
agreement_data
Contains information about actions the user must do and the amount to be paidobject
external_flow_id
Identifies the Seller side flow current statestring
external_user
The external_user contains the data that the Seller will need to use to indentify a User, so then it can continue with their own flow.object
return_url
URL that redirects the user back to the sellers sitestring
Response parameters
agreement_id
Unique ID that identifies an Agreementstring
agreement_uri
This is the uri to redirect the user to the wallet linking in the frontendstring
Errors
400Error
400
Bad-Request
400
Bad-Request
400
Bad-Request
400
Bad-Request
400
Bad-Request
400
Bad-Request
Did you find this information useful?
Yes
No
Request
curl -X POST \
'https://api.mercadopago.com/v2/wallet_connect/agreements?client.id=<CLIENT.ID>'\
-H 'Content-Type: application/json' \
-H 'x-platform-id: YOUR_ACCESS_TOKEN' \,
-H 'Authorization: Bearer TEST-2151*********762-03031*********750b665b7*********4dac477-1*********' \
-d '{
"agreement_data": {
"validation_amount": 3.14,
"description": "Test agreement"
},
"external_flow_id": "EXTERNAL_FLOW_ID",
"external_user": {
"id": "usertest",
"description": "Test account"
},
"return_url": "https://www.mercadopago.com/"
}'
Sample answer
{
"agreement_id": "22abcd1235ed497f945f755fcaba3c6c",
"agreement_uri": "https://wwww.mercadopago.com.ar/v1/wallet_agreement/22abcd1235ed497f945f755fcaba3c6c"
}