These endpoints are deprecated and will be discontinued. Migrate to the new Orders API
AI resources
Create payment intenthttps://api.mercadopago.com/point/integration-api/devices/{deviceid}/payment-intents
This endpoint allows to create a payment intent, which is a call that contains all the details of a transaction, and assign it to a device.
POST
Request parameters
Header
Authorization
string
REQUIRED
Access Token obtained through the developer panel. Must be sent in all requests.
x-test-scope
string
This is a temporary header. It should be used only in the development stage with the value "sandbox"
Path
deviceId
string
REQUIRED
Identifier of the device that will receive the payment intent
Body
amount
integer
REQUIRED
A positive integer representing how much to charge. The value must have two decimal places in the integer part (e.g., 175 to charge $1.75).
description
string
Payment intent description
payment
object
Properties of the payment intent
additional_info
object
Payment intent additional info
Response parameters
id
string
Payment intent identifier
device_id
string
Identifier of the device to which the payment intent was assigned
amount
integer
Payment intent amount
description
string
Payment intent description
Errors
400Error
400
Bad request - Field is missing o incorrect
401Error
401
Unauthorized - Token is invalid
403Error
403
Forbidden - Integrator isn't registered
409Error
409
Conflict error - Device has a queued payment intent
500Error
500
Internal server error
Request
curl -X POST \
'https://api.mercadopago.com/point/integration-api/devices/{deviceid}/payment-intents'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-8*********88776-122*********fc20dede6*********a497d7225*********64' \
-H 'x-test-scope: sandbox' \
-d '{
"amount": 1500,
"description": "your payment intent description",
"payment": {
"installments": 1,
"type": "credit_card",
"installments_cost": "seller"
},
"additional_info": {
"external_reference": "4561ads-das4das4-das4754-das456",
"print_on_terminal": false
}
}'Response
{
"id": "7f25f9aa-eea6-4f9c-bf16-a341f71ba2f1",
"device_id": "PAX_A910__SMARTPOS1234345545",
"amount": 1500,
"description": "your payment intent description",
"payment": {
"installments": 1,
"type": "credit_card",
"installments_cost": "seller"
},
"additional_info": {
"external_reference": "someone-reference-from-your-application",
"print_on_terminal": true
}
}