Importing a collection via a Twise XML Feed
!! Feature under development
You can import a collection via a Twise XML feed. To add such a feed to your twise, go to Edit Twise -> Content -> Collections -> Settings -> Import feed
and add the URL that points to the feed. The feed contents are going to be synced every 24 hours.
The XML feed should be of the formats shown in the examples below. In each feed, the <document>
tag differs depending on the collection type. All fields unless specified otherwise are strings.
Product XML feed
Product
document requirements:
id
no
Product ID
title
yes
Product Title
url
yes
URL to product page
description
no
Product Description
category
no
ProductCategory
type
price_range
no
PriceRange
type
product_type
no
General product type
updated_at
no
ISO-formatted date
vendor
no
Vendor name
variants
yes
List of ProductVariant
tags
no
List of product tags.
media
no
List of image URLs.
ProductCategory
type:
full_name
yes
name
yes
PriceRange
type:
min_variant_price.amount
yes
Decimal amount for the minimum price
min_variant_price.currency_code
yes
ISO 3-letter currency code
max_variant_price.amount
yes
Decimal amount for the maximum price
max_variant_price.currency_code
yes
ISO 3-letter currency code
ProductVariant
type:
id
yes
Product Variant ID
available_for_sale
yes
Boolean if product variant is available for sale
title
yes
Product Variant title
price
no
Decimal amount for variant price
currency
no
ISO 3-letter currency code
image_url
no
Image URL
updated_at
no
ISO-formatted date
Example Products XML feed
Events XML Feed
Event
document requirements:
id
no
Event ID
title
yes
Event Title
description
yes
Event Description
url
no
URL to event page
venue
no
Event venue
phone_number
no
Contact phone number
contact_email
no
Contact email
address
no
Event address
city
no
Event city name
category
no
Event category
date_start
no
Event start time (ISO date string). Can specify date_start
without date_end
if it is not a date range.
date_end
no
Event end time (ISO date string)
price
no
Decimal amount for event ticket price
currency
no
ISO 3-letter currency code
media
no
List of image URLs
Example Events XML feed
Villas XML feed
Villa
document requirements:
id
no
Villa ID
title
yes
Villa Title
url
yes
URL to villa page
description
yes
Villa Description
address
no
Address
city
no
City
region
no
Region
country
no
Country
latitude
no
Latitude ('float' type)
longitude
no
Longitude ('float' type)
neighborhood
no
Neighborhood
view_type
no
Villa view type (e.g. 'oceanfront', 'beachview', etc.)
guests
no
Number of guests
rooms
no
Number of bedrooms
bathrooms
no
Number of bathrooms
price
no
Decimal amount for villa nightly rate
currency
no
ISO 3-letter currency code
features
no
List of villa features
media
no
List of image URLs
Example Villas XML feed
Last updated