Intelligent search powered by OpenAI
Create payer token
POST
Products that use it:
Request's parameters
PATH
agreement_id
Unique ID that identifies an agreement.string
REQUIRED
HEADER
x-platform-id
Field intended for platforms or modules that offer Mercado Pago in their solutions.string
BODY
code
This is the payer token. It is a reference to the ID that represents the authorization of the user.string
REQUIRED
Response parameters
payer_token
This is the payer token. It is a reference to the ID that represents the authorization of the user.string
Errors
400Error
400
Bad-Request
404Error
404
Not-Found
500Error
500
Error
Request
curl -X POST \
'https://api.mercadopago.com/v2/wallet_connect/agreements/{agreement_id}/payer_token'\
-H 'Content-Type: application/json' \
-H 'x-platform-id: YOUR_PLATFORM_ID' \
-H 'Authorization: Bearer TEST-3322*********190-03031*********46528954c*********0339910-1*********' \
-d '{
"code": "aeecea3e11f2545d1e7790eb6591ff68df74c57930551ed980239f4538a7e530"
}'
Sample answer
{
"payer_token": "abcdef1e23f4567d8e9123eb6591ff68df74c57930551ed980239f4538a7e530"
}