Create payment intent - Point Payments - Mercado Pago Developers
Create payment intent

POST

/point/integration-api/devices/{deviceid}/payment-intents
This endpoint allows to create a payment intent for a device.
Request's parameters
x-test-scope
string
Localization: headerThis is a temporary header, it should be used just for development with the value "sandbox"
deviceId

REQUIRED

string
Localization: pathidentifier of the device that will have a payment intent queued
additional_info

REQUIRED

object
Localization: bodypayment intent additional info
amount

REQUIRED

integer
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).
Response parameters
id
string
Localization: bodypayment intent identifier
device_id
string
Localization: bodyidentifier of the device that have a payment intent queued
amount
integer
Localization: bodypayment intent amount
additional_info
object
Localization: body
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 Bad request - Field is missing o incorrect
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