Skip to content

FeedURIList_Load_Query#


Description#

This function loads a list of URIs for a feed.

Request Parameters#

Parameter
Type Description
feed_id
feed_code
Number
String
The id number of the feed
The code of the feed
count Number Maximum lines of data allowed to be returned in the response. This limit is used to prevent excessive amounts of data return
filter String A string for filtering returned data
offset Number Used with the Count parameter for paginating results of large datasets. Default 0 is no offset.
sort String The order for sorting returned data

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful
total_count Number The total number of URIs returned for the feed
start_offset Number Used with the Count parameter for paginating results of large datasets. Default 0 is no offset.
id Number URI id for the feed
uri String The relative path for the URI
store_id Number The id number of the store
screen String The screen description
page_id Number The id number of the page
cat_id Number The id number of the category
product_id Number The id number of the product
feed_id Number The id number of the feed
canonical Boolean Boolean value indicating if the URI is canonical
status Number The status response number for the URI

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "FeedURIList_Load_Query",
    "Feed_ID": 2,
    "Filter": "",
    "Sort": "uri",
    "Offset": 0,
    "Count": 18
}

Example Response#

{
    "success": 1,
    "data": {
        "total_count": 2,
        "start_offset": 0,
        "data": [
            {
                "id": 144,
                "uri": "/feed_most_prods.html",
                "store_id": 1,
                "screen": "",
                "page_id": 0,
                "cat_id": 0,
                "product_id": 0,
                "feed_id": 2,
                "canonical": false,
                "status": 200
            },
            {
                "id": 147,
                "uri": "/feed_some_productses.html",
                "store_id": 1,
                "screen": "",
                "page_id": 0,
                "cat_id": 0,
                "product_id": 0,
                "feed_id": 2,
                "canonical": false,
                "status": 200
            }
        ]
    }
}

Error Responses#

Error Code Error Message Error Description
MER-FDS-JSON-00012 Feed not found Feed not found