Atualizar um pagamento - Pagamentos - Mercado Pago Developers
Developers
Referência API
Suporte
Entrar

    Introdução

    LISTA DE API

    Preferências

    Criar uma preferência

    POST

    Pesquisar preferências

    GET

    Obter uma preferência

    GET

    Atualizar uma preferência

    PUT

    Tipos de documento

    Obter tipos de documentos

    GET

    Meios de pagamento

    Obter meios de pagamento

    GET

    Pagamentos

    Criar um pagamento

    POST

    Pesquisar pagamentos

    GET

    Obter um pagamento

    GET

    Atualizar um pagamento

    PUT

    Estornos

    Obter um estorno

    GET

    Clientes

    Criar um cliente

    POST

    Pesquisar clientes

    GET

    Obter um cliente

    GET

    Atualizar um cliente

    PUT

    Cartões

    Salvar um cartão

    POST

    Obter cartões de um cliente

    GET

    Obter um cartão

    GET

    Atualizar um cartão

    PUT

    Excluir um cartão

    DELETE

    Lojas

    Obter uma Loja

    GET

    Criar uma Loja

    POST

    Pesquisar lojas

    GET

    Atualizar uma Loja

    PUT

    Excluir uma Loja

    DELETE

    Caixa

    Criar um Caixa

    POST

    Pesquisar caixas

    GET

    Obter um Caixa

    GET

    Atualizar um Caixa

    PUT

    Excluir um Caixa

    DELETE

    Ordens presenciais

    Criar uma ordem

    POST

    Excluir uma ordem

    DELETE

    Ordens presenciais v2

    Criar uma ordem

    PUT

    Obter uma ordem

    GET

    Excluir uma ordem

    DELETE

    Ordens

    Criar uma ordem

    POST

    Pesquisar ordens

    GET

    Obter uma ordem

    GET

    Atualizar uma ordem

    PUT

    Preferência de assinatura

    Criar uma assinatura

    POST

Atualizar um pagamento

PUT

/v1/payments/{id}
Altera os dados de um pagamento quando necessário. Indique a identificação do pagamento e envie os parâmetros com as informações que você deseja atualizar.
Produtos relacionados:
Checkout Pro
Marketplace
Mobile Checkout
Código QR
Assinaturas
Parâmetros de requisição
id

OBRIGATÓRIO

string
Localização: pathThe Id of the payment
additional_info
object
Localização: bodyInformações que podem melhorar a análise de prevenção de fraude e a taxa de conversão. Trata de enviar-nos toda a informação possível
application_fee
number
Localização: bodyComissão coletadas pelo mercado ou pelo Mercado Pago
binary_mode
boolean
Localização: bodyQuando definido como true, o pagamento só pode ter os status approved ou rejected. Caso contrário, o status in_process é adicionado
Parâmetros de resposta
Esta requisição não tem resposta.
Solicitação
curl
curl -X PUT \
    'https://api.mercadopago.com/v1/payments/{id}' \
    -H 'Authorization: Bearer ACCESS_TOKEN_ENV' \ 
    -d '{
  "additional_info": {
    "items": [
      {
        "id": "PR0001",
        "title": "Point Mini",
        "description": "Producto Point para cobros con tarjetas mediante bluetooth",
        "picture_url": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium@2x.png",
        "category_id": "electronics",
        "quantity": 1,
        "unit_price": 58.8
      }
    ],
    "payer": {
      "first_name": "Test",
      "last_name": "Test",
      "phone": {
        "area_code": 11,
        "number": "987654321"
      },
      "address": {}
    },
    "shipments": {
      "receiver_address": {
        "zip_code": "12312-123",
        "state_name": "Rio de Janeiro",
        "city_name": "Buzios",
        "street_name": "Av das Nacoes Unidas",
        "street_number": 3003
      }
    },
    "barcode": {}
  },
  "description": "Payment for product",
  "external_reference": "MP0001",
  "installments": 1,
  "metadata": {},
  "order": {
    "type": "mercadolibre"
  },
  "payer": {
    "entity_type": "individual",
    "type": "customer",
    "identification": {},
    "phone": {}
  },
  "payment_method_id": "visa",
  "transaction_amount": 58.8
}'
Resposta
json
{}
Erros
400bad_request
1Params Error.
3Token must be for test.
5Must provide your access_token to proceed.
1000Number of rows exceeded the limits.
1001Date format must be yyyy-MM-dd'T'HH:mm:ss.SSSZ.
2001Already posted the same request in the last minute.
2002Customer not found.
2004POST to Gateway Transactions API fail.
2006Card Token not found.
2007Connection to Card Token API fail.
2009Card token issuer can't be null.
3000You must provide your cardholder_name with your card data.
3001You must provide your cardissuer_id with your card data.
3003Invalid card_token_id.
3004Invalid parameter site_id.
3005Not valid action, the resource is in a state that does not allow this operation. For more information see the state that has the resource.
3006Invalid parameter cardtoken_id.
3007The parameter client_id can not be null or empty.
3008Not found Cardtoken.
3009unauthorized client_id.
3010Not found card on whitelist.
3011Not found payment_method.
3012Invalid parameter security_code_length.
3013The parameter security_code is a required field can not be null or empty.
3014Invalid parameter payment_method.
3015Invalid parameter card_number_length.
3016Invalid parameter card_number.
3017The parameter card_number_id can not be null or empty.
3018The parameter expiration_month can not be null or empty.
3019The parameter expiration_year can not be null or empty.
3020The parameter cardholder.name can not be null or empty.
3021The parameter cardholder.document.number can not be null or empty.
3022The parameter cardholder.document.type can not be null or empty.
3023The parameter cardholder.document.subtype can not be null or empty.
3024Not valid action - partial refund unsupported for this transaction.
3025Invalid Auth Code.
3026Invalid card_id for this payment_method_id.
3027Invalid payment_type_id.
3028Invalid payment_method_id.
3029Invalid card expiration month.
3030Invalid card expiration year.
403bad_request
4The caller is not authorized to access this resource.
3002The caller is not authorized to perform this action.
404bad_request
2000Payment not found.
Essas informações foram úteis?

Copyright © 1999-2021 MercadoLibre Perú S.R.L.

Termos e condiçõesComo cuidamos da sua privacidade
Partners Mercado Pago

Al navegar en este sitio aceptas las cookies que utilizamos para mejorar tu experiencia. Más información.