Change operating mode/point/integration-api/devices/{device-id}This endpoint allows you to change the device operating mode, the options for operating mode are PDV and STANDALONE. PDV is used when you want to use device in mode integration with our API and STANDALONE is used when you want to process payments without our API.
PATCH
Products that use it:
Request's parameters
device-idstring
Localization: pathDeviceIdREQUIRED
operating_modestring
Localization: bodyREQUIRED
PDV: point of sale, integrated mode with the API.
STANDALONE: default device configuration, mode not integrated with the API.
Response parameters
operating_modestring
Localization: bodyREQUIRED
PDV: point of sale, integrated mode with the API.
STANDALONE: default device configuration, mode not integrated the API.
Request
curl
curl -X PATCH \
'https://api.mercadopago.com/point/integration-api/devices/{device-id}' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"operating_mode": "PDV"
}'
Answer
json
{
"operating_mode": "PDV"
}
Errors
400bad_request
400
403bad_request
403 Unauthorized - User not logged into the device
500bad_request
500 Internal server error