Did you find this information useful?
Yes
No
Search preferences/checkout/preferences/searchFind all the information related to generated preferences using specific filters or a specific date range.
GET
Products that use it:
Request's parameters
sponsor_id
Localization: queryUnique numeric ID to identify the sponsor. It is used to identify what platform the checkout flow was initiated in.string
external_reference
Localization: queryReference you can synchronize with your payment system.string
site_id
Localization: queryThe site idstring
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
Localization: queryMarketplace ID.string
Response parameters
elements
Localization: bodyElementsarray
next_offset
Localization: bodyNumeric field used to paginate the response.number
total
Localization: bodytotalnumber
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_query
401bad_request
invalid_tokeninvalid_token.
invalid_caller_idinvalid caller_id