Retrieve Unit Images

Returns images for the Inventory

Overview

The Retrieve Unit 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
GETv2024.07.31/unit_imagesReturns content images for units in the inventory.
GETv2024.07.31/unit_images/{unit_id}Returns content images for a specified unit in the inventory.

Path Parameters

Path ParameterRequired / OptionalDescription
{unit_id}RequiredUnique Identifier for a unit in the inventory.

Query String Parameters

ParameterRequired / OptionalDescriptionData Type
pageOptionalThe page to be shown (defaults to 1).int
page_sizeOptionalLimits the number of returned results (defaults to 25).int
last_unit_update_dateOptionalOnly return units that have been modified after the specified date.date-time
last_reservation_update_dateOptionalOnly return units that have received a booking (their own or a calendar sync) after the specified date.date-time
last_agent_module_property_update_dateOptionalOnly return units that have had their agent module property configuration modified after the specified date.date-time
last_agent_module_agent_update_dateOptionalOnly return units that have had their agent module agent configuration modified after the specified date.date-time
unit_idOptionalUnique Identifier for Unit in Inventoryint
unit_idsOptionalUnique Identifier for Units in Inventoryarray
management_company_user_idOptionalUnique Identifier for Supplierint
management_company_user_idsOptionalUnique Identifiers for Suppliersarray
enabledOptionalUse only enabled or disabled units.boolean
deletedOptionalOnly show properties that are deleted or not deleted.boolean
display_on_websiteOptionalOnly show properties that are enabled for the management company's website.boolean
allocation_on_arrivalOptionalReturn the allocation on arrival object.boolean
allocation_on_arrival_unitOptionalReturn units that are the representative unit in their group.boolean
channelOptionalLeave empty for general, "airbnb" for airbnb, "vrbo" for vrbo and "bdc" for bdcstring

Response Definition

Response ItemDescriptionData Type
"unit_images"An array containing information about different units. Each element in the array represents unique unit details associated with the unit's Imagesarray

"unit_images" Object

Response ItemDescriptionData Type
"unit_id"The unique identifier for the Unitint
"management_company_user_id"The ID of the management company assigned to the unit.int
"images"An array containing details about images associated with the Unitarray
"error" (Optional)Error object indicating an issue with the unit (If applicable).object

"images" Object

Response ItemDescriptionData Type
"id"The unique identifier for the image.int
"sort_order"The value representing the order of the image in a sequence or gallery.int
"resource"The URL that points to the location of the image resource.string
"tag"A tag or label associated with the image, providing additional context or description (defaults to original filename if not updated by the management company).string

"error" Object

Response ItemDescriptionData Type
"message"A descriptive message for the error (e.g., deletion).string

Sample Request

curl --location 'https://api.ciiruspartners.com/v2024.07.31/unit_images?page=1&page_size=25' \
--header 'Authorization: Basic {APIUsername:APIPassword}'

Sample Response

{
    "unit_images": [
        {
            "unit_id": 219264,
            "management_company_user_id": 42330,
            "images": [
                {
                    "id": 1413701,
                    "sort_order": 2,
                    "resource": "https://cdn.ciirus.com/properties/42334/219264/images/download(2).jpg",
                    "tag": "download(2)"
                },
                {
                    "id": 1413702,
                    "sort_order": 3,
                    "resource": "https://cdn.ciirus.com/properties/42334/219264/images/download.jpg",
                    "tag": "download"
                },
                {
                    "id": 1413703,
                    "sort_order": 4,
                    "resource": "https://cdn.ciirus.com/properties/42334/219264/images/images(1).jpg",
                    "tag": "images(1)"
                },
                ...
                ...
                      {
            "unit_id": 222003,
            "management_company_user_id": 42330,
            "images": [
                {
                    "id": 1413735,
                    "sort_order": 1,
                    "resource": "https://cdn.ciirus.com/properties/37284/217105/images/download.jpg",
                    "tag": "download"
                },
                {
                    "id": 1413736,
                    "sort_order": 2,
                    "resource": "https://cdn.ciirus.com/properties/37284/217105/images/images(1).jpg",
                    "tag": "images(1)"
                },
                {
                    "id": 1413738,
                    "sort_order": 3,
                    "resource": "https://cdn.ciirus.com/properties/37284/217105/images/images.jpg",
                    "tag": "images"
                }
            ],
            "error": {
                "message": "Property has been deleted."
            }
        },
            ]
        },
    ],
     "paging": {
        "next_page_url": "https://api.ciiruspartners.com/v2024.07.31/unit_images?page=2&page_size=25",
        "total_page_count": 13,
        "page": 1,
        "page_size": 25
    }
}