Skip to content

Overrides API

Updated: Oct 1, 2024

The overrides API is built as a new endpoint over the product API. It returns all overrides that are associated with the item ID provided.

price, sale_price, unit_price, base_price, status (visibility), and availability must only be provided in a country feed. These fields cannot be provided in a language feed. This helps ensure customers see the correct localized product data.

Endpoint

Make a GET call to the following endpoint:

GET /<API_VERSION>/{item_id}/override_details

Filtering Parameters

Field nameDescriptionExample
keysFilter for specific countries or languages* AE, US, DE * en_XX, es_XX * US, en_XX, DE, es_XX
typeFilter for specific type of override* language * country * language_and_country

Example Request

GET /v20.0/{item_id}/override_details?keys=US,en_XX,DE,es_XX

Response

Field nameDescriptionExample
typeUnique enum identifier, representing different types of overrides, e.g. country or language. Easily extendible in the future to support.country
keyKey for which we determine the data for a specific type e.g. certain language value or a certain country.AE
valuesValues that are set for each field on the overridden product item.[{ "name": "price", "value": "55200 AED", }, { "name": "fees", "value": "400 AED", }]

Sample Response

"override_details": [{
    "type": "country",
    "key": "AE",
    "values": {
        "price": "55200 AED",
        "fees": "400 AED",
        "availability": "in stock",
        "color": "black",
    },
},
{
    "type": "country",
    "key": "HR",
    "values": {
        "price": "120 EUR",
        "availability": "in stock",
        "fees": "20 EUR",
        "color": "red",
        "image_url": [
            "https://static.company.com/images/1...",
            "https://static.company.com/images/2...",
            "https://static.company.com/images/3...",
        ],
    },
},
{
    "type": "language",
    "key": "es_XX",
    "values": {
        "availability": "out of stock",
        "name": "silla",
        "description": "esta es una silla genial",
    },

}]

See Also

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About