- 7 Minutes to read
- Print
- DarkLight
return outfits or similar items for a single source item
- 7 Minutes to read
- Print
- DarkLight
Fetches either similar items (items which are related to the source item by common features) or outfits (items which as a set complement the source item).'
This is the api equivalent of the outfits widget.
The JWT for the user
An identifier for the source item. The interpretation of this item is controlled by the identifier_type
parameter
The methods through which related items should be generated. These are attempted in order.
The partner_outfits
method is only available if Dressipi has been provided with curated outfit data for the item
If false (the default), the methods listed are attempted until one succeeds and only results for that method are returned.
If true, results for all successful methods are returned
A locale parameter describing what stock information to use and what language to return text in (if applicable). This parameter will only function if the corresponding information is in the product feed & processed accordingly. If stock local and UI language are not the same, specify the language parameter in addition to this one.
Allows you to specify a locale used for feed attributes such as product name that should be localized using a different locale to price & stock information. This parameter will only function if the corresponding information is in the product feed & processed accordingly.
Whether to exclude the source item from any returned outfits or not
The number of outfits to attempt to return per occasion. In the case of a single occasion garment, this limit is doubled internally
The maximum number of similar items to return.
The maximum price reduction (in percent) of any returned items
List of stores to filter recommendations by. An item must be available in at least one of the specified stores in order to be returned.
This requires that per-store availability data is shared with dressipi
The desired response format.
The response includes a description of the outfits / similar items but no data on the items themselves: since these may be repeated within the response, garment data is provided separately in the response.
The detailed
format includes the most amount of item metadata (name, description, price etc).
The document
format only includes item identifiers, and if requested dressipi generated information about the item, such as predicted size.
The retailer_ids
format only returns the item identifiers.
How dressipi should interpret the item id. Not all of these may be available, depending on the information in the product feed and how it is processed. Contact dressipi for examples of these types for your specific integration.
In general
- product-code is the style + color identifier from the feed
- sku is style without color or size (can be supplemented with an extra parameter specifying the color + size variant)
If true, pretty print Json output. This increases response size and should usually be off in production environments
Controls whether Dressipi garment ids (raw_garment_id) are included in response
A list of garment attributes to fetch. Only supported for garment_format=document or detailed. Custom fields may be available - contact Dressipi for details
When identifier_type is set to sku, identifies the particular size+color variant
List of product identifiers to be excluded from the results. The interpretation of this item is controlled by the identifier_type
parameter
Include information about the user in the response (if known)
Information about the related garments
Fetches either similar items (items which are related to the source item by common features) or outfits (items which as a set complement the source item).'
This is the api equivalent of the outfits widget.
An event id. This should be used when posting events relating to this dataset.
The garment_id
. The type of identifier used depends on the requests garment_format
The internal dressipi id for the garment. This may be omitted depending on garment_format
An alternative identifier to identify the product, hidden when not provided in feed
If true, the eventid should be posted to /events//reparent
Extra data about the garments in the response. Only present for detailed
and document
response formats. Do not rely on this for the correct ordering of results (use the similar_items or outfits key as appropriate)
The outfits found containing the source item (if any)
Create a saved outfit from the provided parameters. Requires that a user be authenticated.
For example to save an outfit submit either raw_garment_ids:
{
"occasion": "work",
"garments": [
{raw_garment_id: 123456, main: true},
{raw_garment_id: 654321},
...
],
"template_id": "7yJG6NcV"
}
or garment_ids:
{
"occasion": "work",
"garments": [
{garment_id: "123-ABC", main: true},
{garment_id: "ABC-123"},
...
],
"template_id": "7yJG6NcV"
}
An opaque identifier identifying this section of the response. This should be used when posting posting events relating to an item in this outfit.
The garment id for which the outfit was constructed
The internal dressipi id for the main garment. This may be omitted depending on garment_format
A string identifying the template from which the outfit was constructed
The occasion for this outfit
The items making up the outfit
The garment_id
. The type of identifier used depends on the requests garment_format
The internal dressipi id for the garment. This may be omitted depending on garment_format
An alternative identifier to identify the product, hidden when not provided in feed
The saved outfit id
Indicate whether the user saved the outfit or not
The partner_outfits found containing the source item (if any). template_id
will always be partner_outfit
for these outfits
Create a saved outfit from the provided parameters. Requires that a user be authenticated.
For example to save an outfit submit either raw_garment_ids:
{
"occasion": "work",
"garments": [
{raw_garment_id: 123456, main: true},
{raw_garment_id: 654321},
...
],
"template_id": "7yJG6NcV"
}
or garment_ids:
{
"occasion": "work",
"garments": [
{garment_id: "123-ABC", main: true},
{garment_id: "ABC-123"},
...
],
"template_id": "7yJG6NcV"
}
An opaque identifier identifying this section of the response. This should be used when posting posting events relating to an item in this outfit.
The garment id for which the outfit was constructed
The internal dressipi id for the main garment. This may be omitted depending on garment_format
A string identifying the template from which the outfit was constructed
The occasion for this outfit
The items making up the outfit
The garment_id
. The type of identifier used depends on the requests garment_format
The internal dressipi id for the garment. This may be omitted depending on garment_format
An alternative identifier to identify the product, hidden when not provided in feed
The saved outfit id
Indicate whether the user saved the outfit or not
An opaque identifier identifying this section of the response. This should be used when posting events relating to an item in this outfit.
The similiar items
The garment_id
. The type of identifier used depends on the requests garment_format
The internal dressipi id for the garment. This may be omitted depending on garment_format
An alternative identifier to identify the product, hidden when not provided in feed
Whether the user has completed the dressipi signup quiz
The user's first name, if they have supplied it
garment not found
Generic error object
A human readable error message