/v1/payments/:id

BASE URI https://api.mercadopago.com/v1/payments/{id}

HTTP Request

curl

 curl -X GET \
    'https://api.mercadopago.com/v1/payments/:id?access_token=ACCESS_TOKEN_ENV' 

Request Params

ParameterTypeDescription
id Integer Payment identifier.

HTTP Response

json

 {
	"id": "0000001",
	"date_created": "2017-08-31T07:26:38.000-04:00",
	"date_approved": "2017-08-31T07:26:38.000-04:00",
	"date_last_updated": "2017-08-31T07:26:38.000-04:00",
	"date_of_expiration": null,
	"money_release_date": "2017-09-14T07:26:38.000-04:00",
	"operation_type": "money_transfer",
	"issuer_id": null,
	"payment_method_id": "account_money",
	"payment_type_id": "account_money",
	"status": "approved",
	"status_detail": "accredited",
	"currency_id": "[FAKER][CURRENCY][ACRONYM]",
	"description": "Pago Pizza",
	"live_mode": true,
	"sponsor_id": null,
	"authorization_code": null,
	"money_release_schema": null,
	"counter_currency": null,
	"collector_id": "0000002",
	"payer": {
		"type": "registered",
		"id": "000001",
		"email": "afriend@gmail.com",
		"identification": {
			"type": "DNI",
			"number": "12345678"
		},
		"phone": {
			"area_code": null,
			"number": "11123456789",
			"extension": null
		},
		"first_name": "Name",
		"last_name": "LastName",
		"entity_type": null
	},
	"metadata": {},
	"additional_info": {},
	"order": {},
	"external_reference": null,
	"transaction_amount": 250,
	"transaction_amount_refunded": 0,
	"coupon_amount": 0,
	"differential_pricing_id": null,
	"deduction_schema": null,
	"transaction_details": {
		"net_received_amount": 250,
		"total_paid_amount": 250,
		"overpaid_amount": 0,
		"external_resource_url": null,
		"installment_amount": 250,
		"financial_institution": null,
		"payment_method_reference_id": null,
		"payable_deferral_period": null,
		"acquirer_reference": null
	},
	"fee_details": [],
	"captured": true,
	"binary_mode": false,
	"call_for_authorize_id": null,
	"statement_descriptor": null,
	"installments": 1,
	"card": {},
	"notification_url": null,
	"refunds": [],
	"processing_mode": null,
	"merchant_account_id": null,
	"acquirer": null,
	"merchant_number": null,
	"acquirer_reconciliation": []
} 

Error Codes

CodeDescription
404 NOT_FOUND
2000 Payment not found.
403 FORBIDDEN
4 The caller is not authorized to access this resource.
3002 The caller is not authorized to perform this action.
400 BAD_REQUEST
1 Params Error.
3 Token must be for test.
5 Must provide your access_token to proceed.
1000 Number of rows exceeded the limits.
1001 Date format must be yyyy-MM-dd'T'HH:mm:ss.SSSZ.
2001 Already posted the same request in the last minute.
2004 POST to Gateway Transactions API fail.
2002 Customer not found.
2006 Card Token not found.
2007 Connection to Card Token API fail.
2009 Card token issuer can't be null.
3000 You must provide your cardholder_name with your card data.
3001 You must provide your cardissuer_id with your card data.
3003 Invalid card_token_id.
3004 Invalid parameter site_id.
3005 Not valid action, the resource is in a state that does not allow this operation. For more information see the state that has the resource.
3006 Invalid parameter cardtoken_id.
3007 The parameter client_id can not be null or empty.
3008 Not found Cardtoken.
3009 unauthorized client_id.
3010 Not found card on whitelist.
3011 Not found payment_method.
3012 Invalid parameter security_code_length.
3013 The parameter security_code is a required field can not be null or empty.
3014 Invalid parameter payment_method.
3015 Invalid parameter card_number_length.
3016 Invalid parameter card_number.
3017 The parameter card_number_id can not be null or empty.
3018 The parameter expiration_month can not be null or empty.
3019 The parameter expiration_year can not be null or empty.
3020 The parameter cardholder.name can not be null or empty.
3021 The parameter cardholder.document.number can not be null or empty.
3022 The parameter cardholder.document.type can not be null or empty.
3023 The parameter cardholder.document.subtype can not be null or empty.
3024 Not valid action - partial refund unsupported for this transaction.
3025 Invalid Auth Code.
3026 Invalid card_id for this payment_method_id.
3027 Invalid payment_type_id.
3028 Invalid payment_method_id.
3029 Invalid card expiration month.
3030 Invalid card expiration year.

La búsqueda no arrojó ningún resultado.

Verifica la la ortografía de los términos de búsqueda o prueba con otras palabras clave.