Mock - Publicaciones elegibles para Catálogo

Importante:
Recuerda que para la variable access_token puedes utilizar cualquier access token válido de un usuario.

Llamada:

curl -XGET https://api.mercadolibre.com/buybox_mocks/items/$ITEM_ID/catalog_listing_eligibility?access_token=$ACCESS_TOKEN

Ejemplo con 2 variaciones MLA:

curl -XGET https://api.mercadolibre.com/buybox_mocks/items/MLA89322332/catalog_listing_eligibility?access_token=$ACCESS_TOKEN

Respuesta:

{
    "id": "MLA89322332",
    "site_id": "MLA",
    "domain_id": "MLA-CELLPHONES",
    "status": null,
    "buy_box_eligible": null,
    "variations": [
        {
            "id": 1312323,
            "status": "READY_FOR_OPTIN",
            "buy_box_eligible": true
        },
        {
            "id": 1312444,
            "status": "READY_FOR_OPTIN",
            "buy_box_eligible": true
        }
    ]
}

Ejemplo sin variación MLB:

curl -XGET https://api.mercadolibre.com/buybox_mocks/items/MLB1279148529/catalog_listing_eligibility?access_token=$ACCESS_TOKEN

Respuesta:

{
    "id": "MLB1279148529",
    "site_id": "MLB",
    "domain_id": "MLB-MICROWAVES",
    "status": "READY_FOR_OPTIN",
    "buy_box_eligible": true,
    "variations": []
}

Ejemplo con 1 variación MLM:

curl -XGET https://api.mercadolibre.com/buybox_mocks/items/MLM9322541/catalog_listing_eligibility?access_token=$ACCESS_TOKEN

Respuesta:

{
    "id": "MLM9322541",
    "site_id": "MLM",
    "domain_id": "MLM-CELLPHONES",
    "status": null,
    "buy_box_eligible": null,
    "variations": [
        {
            "id": 8764562,
            "status": "READY_FOR_OPTIN",
            "buy_box_eligible": true
        }
    ]
}

Forma parte de nuestra comunidad