Retrieve Images

Returns images for the Inventory

Overview

The Retrieve Content Images request is designed to provide partners with access to images associated with the Inventory. This request enables the Agent to retrieve images for either the entire inventory or a specific unit.

Endpoints Available

MethodEndpointDescription
GETv2023.07.31/content/imagesReturns content images for Inventory
GETv2023.07.31/content/images/{unitId}Returns content images for a Unit in Inventory

Path Parameters

Path ParameterRequired / OptionalDescription
{unitId}RequiredUnique Identifier for Unit in Inventory

Query String Parameters

ParameterRequired / OptionalDescriptionData Type
pageOptionalThe page to be shownint
pageSizeOptionalLimits the number of returned resultsint
lastUpdateDateOptionalOnly return objects which have been modified after a certain datedate-time
mcUserIdOptionalUnique Identifier for Supplierint
mcUserIdsOptionalUnique Identifiers for Suppliersarray
unitIdOptionalUnique Identifier for Unit in Inventoryint
unitIdsOptionalUnique Identifier for Units in Inventoryarray
channelOptionalLeave empty for general, "airbnb" for airbnb, "vrbo" for vrbo and "bdc" for bdcstring

Response Definition

Response ItemDescriptionData Type
"units"An array containing information about different Units. Each element in the array represents unique Unit details associated with the Units Imagesarray

"units" Object

Response ItemDescriptionData Type
"unit_id"The unique identifier for the Unitint
"images"An array containing details about images associated with the Unitarray

"images" Object

Response ItemDescriptionData Type
"image_id"The unique identifier for the imageint
"sort_order"The value representing the order of the image in a sequence or galleryint
"resource"The URL that points to the location of the image resourcestring
"tag"A tag or label associated with the image, providing additional context or descriptionstring

Sample Request

curl --request GET \
     --url 'https://api.ciiruspartners.com/v2023.07.31/content/images?page=1&pageSize=50'

Sample Response

{
    "units": [
        {
            "unit_id": 219266,
            "images": [
                {
                    "image_id": 1413710,
                    "sort_order": 1,
                    "resource": "https://cdn.ciirus.com/properties/42334/219266/images/download(1).jpg",
                    "tag": "download(1)"
                },
              ...
              ]
              ...
            }
    ],
    "next_page_url": "https://api.ciiruspartners.com/v20230731/content/images?page=2&pageSize=50",
    "total_page_count": 2
}