Mercado Pago

App · 13 actions

Find and manage Mercado Pago payments, refunds and subscriptions.

Actions

ActionWhat it does
Cancel paymentCancel payment.
Create checkout preferenceCreate checkout preference.
Get accountGet account.
Get checkout preferenceGet checkout preference.
Get orderGet order.
Get paymentGet payment.
Get payment refundGet payment refund.
Get subscriptionGet subscription.
List payment methodsList payment methods.
List payment refundsList payment refunds.
Refund paymentRefund payment.
Search paymentsSearch payments.
Search subscriptionsSearch subscriptions.

Cancel payment

Cancel payment.

Inputs

Payment IDpayment_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

ItemsitemslistRequired
Each item has a title, quantity, currency_id and unit_price.
External referenceexternal_referencetext
Your internal order reference.
Expiresexpirestrue/false
Set an expiration window.
Expires atexpires_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 IDpreference_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 IDorder_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 IDpayment_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 IDpayment_idtextRequired
Payment ID from Search payments.
Refund IDrefund_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 IDsubscription_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 IDpayment_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 IDpayment_idtextRequired
Payment ID from Search payments.
Idempotency keyidempotency_keytextRequired
Unique key for this operation. Reuse the same key if you retry it.
Amountamountnumber
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

Limitlimitnumber
Maximum results per page.From 1 to 100.
Offsetoffsetnumber
Number of results to skip.At least 0.
External referenceexternal_referencetext
Your own payment reference.
Statusstatustext
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 bysort_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 ordersort_ordertext
Order of the results.One of: asc, desc.
Range fieldrange_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 timestart_timedate and time
Start of the date window.
End timeend_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

Limitlimitnumber
Maximum results per page.From 1 to 100.
Offsetoffsetnumber
Number of results to skip.At least 0.
Statusstatustext
Filter by subscription status.One of: pending, authorized, paused, cancelled.
External referenceexternal_referencetext
Your own subscription reference.

Outputs

dataobject
The response from Mercado Pago.
Example output
{
  "data": {
    "paging": {},
    "results": [
      {
        "id": "example",
        "status": "example"
      }
    ]
  }
}

On this page