Did you find this information useful?
Yes
No
Create payment intent/point/integration-api/devices/{deviceid}/payment-intentsThis endpoint allows to create a payment intent for a device.
POST
Products that use it:
Request's parameters
x-test-scope
Localization: headerThis is a temporary header, it should be used just for development with the value "sandbox"string
deviceIdstring
Localization: pathidentifier of the device that will have a payment intent queuedREQUIRED
additional_infoobject
Localization: bodypayment intent additional infoREQUIRED
amountinteger
Localization: bodyA 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).REQUIRED
Response parameters
id
Localization: bodypayment intent identifierstring
device_id
Localization: bodyidentifier of the device that have a payment intent queuedstring
amount
Localization: bodypayment intent amountinteger
additional_info
Localization: bodyobject
Request
curl
curl -X POST \
'https://api.mercadopago.com/point/integration-api/devices/{deviceid}/payment-intents' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN \
-H 'Content-Type: application/json' \
-H 'x-test-scope: sandbox' \
-d '{
"amount": 1500,
"additional_info": {
"external_reference": "some-reference-from-your-application",
"print_on_terminal": true,
"ticket_number": "S0392JED"
}
}'
Answer
json
{
"id": "7f25f9aa-eea6-4f9c-bf16-a341f71ba2f1",
"device_id": "INGENICO_MOVE2500__ING-23976989",
"amount": 1500,
"additional_info": {
"external_reference": "some-reference-from-your-application",
"print_on_terminal": true,
"ticket_number": "S0392JED"
}
}
Errors
400bad_request
400
401bad_request
401 Unauthorized Token is invalid
403bad_request
403 Forbidden - Integrator isn't registered
409bad_request
409 Conflict-error - Device has a queued payment intent
500bad_request
500 Internal server error