Obter último status de uma intenção de pagamento

GET

/point/integration-api/payment-intents/{paymentintentid}/events
Este endpoint permite que você encontre o último status de uma intenção de pagamento.
Parâmetros de requisição
x-test-scope
string
Localização: headerThis is a temporary header, it should be used just for development with the value "sandbox"
paymentIntentId

OBRIGATÓRIO

string
Localização: pathPayment intent Id
Parâmetros de resposta
status
string
Localização: body
created_on
string
Localização: body
Solicitação
curl
curl -X GET \
      'https://api.mercadopago.com/point/integration-api/payment-intents/{paymentintentid}/events' \
       -H 'Authorization: Bearer YOUR_ACCESS_TOKEN \
      
Resposta
json
{
  "status": "FINISHED",
  "created_on": "2021-09-03T20:59:10Z"
}
Erros
401bad_request
401 Unauthorized - Token is invalid
403bad_request
403 Forbidden - Integrator isn't registered
404bad_request
404 Not Found - Payment Intent doesn't exist
500bad_request
500 Internal server error