Search preferences - Preferences - Mercado Pago Developers
Search preferences

GET

/checkout/preferences/search
Find all the information related to generated preferences using specific filters or a specific date range.
Request's parameters
sponsor_id
string
Localization: queryUnique numeric ID to identify the sponsor. It is used to identify what platform the checkout flow was initiated in.
external_reference
string
Localization: queryReference you can synchronize with your payment system.
site_id
string
Localization: queryThe site id
MLA: Mercado Libre Argentina
MLB: Mercado Libre Brasil
MLC: Mercado Libre Chile
MLM: Mercado Libre México
MLU: Mercado Libre Uruguay
MCO: Mercado Libre Colombia
MPE: Mercado Libre Perú
marketplace
string
Localization: queryMarketplace ID.
Response parameters
elements
array
Localization: bodyElements
next_offset
number
Localization: bodyNumeric field used to paginate the response.
total
number
Localization: bodytotal
Request
curl
curl -X GET \
      'https://api.mercadopago.com/checkout/preferences/search?sponsor_id=undefined&external_reference=undefined&site_id=undefined&marketplace=undefined' \
      -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Answer
json
{
  "elements": [
    {
      "id": "202809963-a2201f8d-11cb-443f-adf6-de5a42eed67d",
      "client_id": 6295877106812064,
      "collector_id": 202809963,
      "date_created": "2018-02-02T19:18:51.150Z",
      "items": [
        {}
      ],
      "marketplace": "NONE",
      "site_id": "MLA",
      "sponsor_id": 0
    }
  ],
  "next_offset": 1,
  "total": 1
}
Errors
400bad_request
ds_search_queryinvalid query.
401bad_request
invalid_tokeninvalid_token.
invalid_caller_idinvalid caller_id