Delete Unit
This endpoint removes one or more specified unit spaces from a property listing on VRBO, using their unique IDs.
Endpoint
POST

https://connect-sandbox.su-api.com/SUAPI/jservice/vrbo/unit/deleteHeader
app-id: YOUR_APP_ID
Authorization: YOUR_API_KEY
Content-Type: application/jsonapp-id
string
Yes
Your application ID. Required for authentication.
Authorization
string
Yes
Your API key for authorization. Required for authentication.
Content-Type
string
Yes
Must be set to application/json.
Attributes
hotel_id string (Required)
The unique property ID as assigned by the provider upon creation of the property.
listing_id integer (Required)
VRBO listing ID from which units are to be deleted.
spaces array (Required)
List of unit spaces to delete.
id string (Required)
Unique ID of each space to be deleted.
Request
{
"hotel_id": "AWSTEST",
"listing_id": 73384756,
"spaces": [
{
"id": "ce1325b3-36c0-4d6b-8f30-f0738a59ef3e"
}
]
}Response
Success Response
{
"Status": "Success",
"Data": [],
"Message": "Unit delete successfully",
"Trace-ID": ""
}Success Response - Body Elements
Status string
Indicates the result of the API call.
Data object
The response data, the root element.
Message string
The message in the response.
Trace-ID string
Unique ID for tracing the API request.
Error Response
{
"Status": "Fail",
"Errors": [
{
"Code": "400",
"ShortText": "hotel_id: Invalid HotelCode (:hotelid)"
},
{
"Code": "2004",
"ShortText": "Listing Id is required"
},
{
"Code": "1394",
"ShortText": "spaces is invalid or not found!"
}
],
"Message": "",
"Trace-ID": ""
}Error Response - Body Elements
Status string
Indicates the result of the API call.
Errors array
The response error, the root element.
Code string
Specific error code that helps identify the type of error.
ShortText string
A short description of the error.
Message string
The message in the response.
Trace-ID string
Unique ID for tracing the API request.
Last updated
Was this helpful?