Mercado Pago
App · 13 actions
Find and manage Mercado Pago payments, refunds and subscriptions.
Actions
| Action | What it does |
|---|---|
| Cancel payment | Cancel payment. |
| Create checkout preference | Create checkout preference. |
| Get account | Get account. |
| Get checkout preference | Get checkout preference. |
| Get order | Get order. |
| Get payment | Get payment. |
| Get payment refund | Get payment refund. |
| Get subscription | Get subscription. |
| List payment methods | List payment methods. |
| List payment refunds | List payment refunds. |
| Refund payment | Refund payment. |
| Search payments | Search payments. |
| Search subscriptions | Search subscriptions. |
Cancel payment
Cancel payment.
Inputs
- Payment ID
payment_idtextRequired - Payment ID from Search payments.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"date_created": "example",
"date_last_updated": "example",
"external_reference": "example",
"id": 1,
"status": "example"
}
}Create checkout preference
Create checkout preference.
Inputs
- Items
itemslistRequired - Each item has a title, quantity, currency_id and unit_price.
- External reference
external_referencetext - Your internal order reference.
- Expires
expirestrue/false - Set an expiration window.
- Expires at
expires_atdate and time - Last time this preference can be used.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": "example",
"init_point": "example",
"sandbox_init_point": "example"
}
}Get account
Get account.
Inputs
None.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": 1,
"nickname": "example",
"site_id": "example"
}
}Get checkout preference
Get checkout preference.
Inputs
- Preference ID
preference_idtextRequired - Checkout preference ID from Create checkout preference.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": "example",
"init_point": "example"
}
}Get order
Get order.
Inputs
- Order ID
order_idtextRequired - Order ID from your Mercado Pago checkout.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": "example",
"status": "example"
}
}Get payment
Get payment.
Inputs
- Payment ID
payment_idtextRequired - Payment ID from Search payments.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"date_created": "example",
"date_last_updated": "example",
"external_reference": "example",
"id": 1,
"status": "example"
}
}Get payment refund
Get payment refund.
Inputs
- Payment ID
payment_idtextRequired - Payment ID from Search payments.
- Refund ID
refund_idtextRequired - Refund ID from List payment refunds.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": 1,
"payment_id": 1,
"status": "example"
}
}Get subscription
Get subscription.
Inputs
- Subscription ID
subscription_idtextRequired - Subscription ID from Search subscriptions.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": "example",
"reason": "example",
"status": "example"
}
}List payment methods
List payment methods.
Inputs
None.
Outputs
datalist- The response from Mercado Pago.
Example output
{
"data": [
{
"id": "example",
"name": "example",
"payment_type_id": "example"
}
]
}List payment refunds
List payment refunds.
Inputs
- Payment ID
payment_idtextRequired - Payment ID from Search payments.
Outputs
datalist- The response from Mercado Pago.
Example output
{
"data": [
{
"id": 1,
"payment_id": 1,
"status": "example"
}
]
}Refund payment
Refund payment.
Inputs
- Payment ID
payment_idtextRequired - Payment ID from Search payments.
- Idempotency key
idempotency_keytextRequired - Unique key for this operation. Reuse the same key if you retry it.
- Amount
amountnumber - Amount to refund. Leave blank for a full refund.At least 0.01.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"id": 1,
"payment_id": 1,
"status": "example"
}
}Search payments
Search payments.
Inputs
- Limit
limitnumber - Maximum results per page.From 1 to 100.
- Offset
offsetnumber - Number of results to skip.At least 0.
- External reference
external_referencetext - Your own payment reference.
- Status
statustext - Only return payments with this status.One of:
pending,approved,authorized,in_process(In process),in_mediation(In mediation),rejected,cancelled,refunded,charged_back(Charged back). - Sort by
sort_bytext - Which payment date to sort by.One of:
date_created(Date created),date_last_updated(Date last updated),date_approved(Date approved),money_release_date(Money release date),id. - Sort order
sort_ordertext - Order of the results.One of:
asc,desc. - Range field
range_fieldtext - Which field the date window applies to.One of:
date_created(Date created),date_last_updated(Date last updated),date_approved(Date approved),money_release_date(Money release date). - Start time
start_timedate and time - Start of the date window.
- End time
end_timedate and time - End of the date window.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"paging": {
"limit": 1,
"offset": 1,
"total": 1
},
"results": [
{
"date_created": "example",
"date_last_updated": "example",
"external_reference": "example",
"id": 1,
"status": "example"
}
]
}
}Search subscriptions
Search subscriptions.
Inputs
- Limit
limitnumber - Maximum results per page.From 1 to 100.
- Offset
offsetnumber - Number of results to skip.At least 0.
- Status
statustext - Filter by subscription status.One of:
pending,authorized,paused,cancelled. - External reference
external_referencetext - Your own subscription reference.
Outputs
dataobject- The response from Mercado Pago.
Example output
{
"data": {
"paging": {},
"results": [
{
"id": "example",
"status": "example"
}
]
}
}