return curated partner outfits for a single source item

Prev Next
Get
/v2/items/partner_outfits

Fetches partner outfits: curated outfits containing the source garment, also known as model wears. Only available if Mapp Fashion has been provided with curated outfit data for the item.

This is the v2 equivalent of /items/{id}/related?methods=partner_outfits. It uses the same service objects and retry/fallback logic.

The response contains only the partner_outfits key: unlike the v1 related response there are no outfits or similar_items keys, and no user object. template_id is always partner_outfit for these outfits.

If the garment exists but has no valid partner outfits, a 200 with an empty partner_outfits array is returned.

Security
API Key: api_key
Header parameter namex-api-key
api_key & user_token
API Key: api_key
Header parameter namex-api-key

API Key: user_token
Header parameter namex-dressipi-jwt

The JWT for the user. Optional: requests without a user token return non-personalized results. The header name is unchanged for backwards compatibility.

Query parameters
id
stringRequired

The garment identifier the recommendations are requested for. The interpretation of this value is controlled by the identifier_type parameter

identifier_type
string

How Mapp Fashion should interpret id and excluded_ids. Not all of these may be available, depending on the information in the product feed and how it is processed. Contact Mapp Fashion 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

The v1 value ancillary-product-code is intentionally not available in v2: the number of selectable identifier types was reduced to avoid ambiguity during onboarding. The ancillary_product_code attribute is still returned on garments.

There is no fallback logic for partial matches: an identifier must match completely, and the first match is used for the response.

Valid values[ "product-code", "sku", "fashion-id", "ean", "gtin" ]
Default"product-code"
garment_format
string

The desired response format.

If simple, only basic garment identifiers are returned. If detailed, more comprehensive garment metadata (name, description, price etc.) is included.

simple is equivalent to the v1 value retailer_ids. The v1 value document is not available in v2.

With detailed, garment attributes are returned in garment_data as GarmentDetail objects. The v1 fields parameter has no v2 equivalent: the set of attributes is fixed and depends on the partner feed.

Valid values[ "simple", "detailed" ]
Default"simple"
exclude_source_garment
boolean

Whether to exclude the source garment from any returned outfits

Defaulttrue
locale
string

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 locale and UI language are not the same, specify the language parameter in addition to this one.

language
string

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.

pretty
boolean

If true, pretty print JSON output. This increases response size and should usually be off in production environments

Defaultfalse
include_fashion_ids
boolean

Controls whether Mapp Fashion garment ids (raw_garment_id) are included for the returned items. source.raw_garment_id is returned regardless of this parameter.

Note that this defaults to false, whereas the v1 equivalent defaults to true.

Defaultfalse
Responses
200

Information about the partner outfits containing the source garment

Expand All
object

The response of /api/v2/items/partner_outfits.

Unlike the v1 related response, only the key that applies to this endpoint is returned: there are no outfits or similar_items keys, and no user object.

Example{ "event_id": "6a959d9ff49c0661d5fce347", "source": { "garment_id": "TS30165MIDNIGHTNAVYHB", "raw_garment_id": 5762729, "ancillary_product_code": "TS30165" }, "reparentable": false, "garment_data": [], "partner_outfits": [] }
event_id
string

An event id. Use it when posting events relating to this dataset

source
object (BareGarment)
garment_id
string

The garment_id. The type of identifier used depends on the requests garment_format

ExampleABC-123
raw_garment_id
integer (int32)

The internal Mapp Fashion id for the garment. This may be omitted depending on garment_format

Example123456
ancillary_product_code
string

An alternative identifier to identify the product, hidden when not provided in feed

ExampleA1B2C3
reparentable
boolean

If true, the event_id should be posted to /events//reparent

garment_data
Array of object (GarmentDetail)

Attributes of the garments in the response. Empty unless garment_format=detailed

object

An entry in garment_data, returned when garment_format=detailed.

Note that this object is not the same shape as Garment (used by the v1 recommendations endpoints): it carries the feed and media attributes of the garment and identifies it via id and product_code rather than garment_id.

The set of attributes present depends on the endpoint and on what the partner product feed contains, so individual attributes may be absent, empty or null. The v1 fields parameter has no v2 equivalent.

Do not rely on the order of this array. It does not necessarily match the order of the recommendations, which is authoritative for display.

Example{ "id": 5251640, "product_code": "TS30165CHARCOALHB", "product_id": "TS30165", "partner": "examplepartner", "retailer": "ExamplePartner", "brand_name": "Example Brand", "name": "Men's Raglan Sleeve British Tweed Coat", "price": "345.00", "old_price": "", "url": "https://www.example.com/raglan-sleeve-tweed-coat-ts30165charcoalhb/", "garment_category_id": 84, "garment_category_name": "Outerwear", "department": "male", "feed_image_urls": [ "https://media.example.com/products/TS30165CHARCOALHB.jpg" ], "image_url": "https://cdn.example.net/garment-5251640-9331038.jpg", "thumbnail_image_url": "https://cdn.example.net/thumbnail-5251640-9331038.jpg", "why": [], "has_outfits": true, "garment_status": "in stock" }
id
integer (int32)

The internal Mapp Fashion id for the garment

product_code
string

The product code from the partner feed

product_id
string

The style level identifier the product code belongs to

partner
string

The partner identifier

retailer
string

The retailer name

brand_name
string

The brand name

name
string

The product name

price
string

The current price as it appears in the feed. Formatting follows the feed and does not necessarily include a currency

old_price
string

The previous price as it appears in the feed. Empty if the garment is not reduced

rating
number

Product rating. May be null if the partner feed does not provide one

url
string

The URL of the product detail page

garment_category_id
integer (int32)

The category id for the product

garment_category_name
string

The category name for the product

department
string

The garment department

feed_image_urls
Array of string

All image URLs present in the product feed

string
image_url
string

Mapp Fashion hosted image for the garment

thumbnail_image_url
string

Mapp Fashion hosted thumbnail for the garment

best_model_image
string

The feed image judged to be the best model shot. May be empty

best_product_image
string

The feed image judged to be the best product shot. May be null

why
Array of string

Human readable reasons for the recommendation. Only populated if the profile has shape data

string
has_outfits
boolean

Whether outfits can be generated for the garment

garment_status
string

The stock status of the garment

sku
string

The style level identifier from the feed

eans
Array of string

The EANs present in the product feed

string
size_availability
Array of array

The sizes currently available for the garment, as label and value pairs

Array of string

A size entry as a label and value pair, for example ["Size", "XL"]

string
partner_outfits
Array of object (V2Outfit)

The curated partner outfits containing the source garment. An empty array if the garment exists but has no valid partner outfits

object

An outfit built around a source garment.

Note the difference to the v1 Outfit object: the saved and id properties of saved outfits are not returned.

Example{ "content_id": "6aaa52008be00b9548fc23c6", "garment_id": "TS30165MIDNIGHTNAVYHB", "template_id": "0eKleuDC", "occasion": "smart_casual", "items": [ { "garment_id": "TT93016NAVY", "ancillary_product_code": "TT93016" }, { "garment_id": "TP26000NAVY", "ancillary_product_code": "TP26000" }, { "garment_id": "TF00067HEATHER", "ancillary_product_code": "TF00067" } ] }
content_id
string

An opaque identifier for this outfit within the response. Use it when posting events relating to an item in this outfit

garment_id
string

The garment the outfit was built around

template_id
string

Identifies the template the outfit was constructed from. Always partner_outfit for curated partner outfits

occasion
string

The occasion this outfit was built for

items
Array of object (BareGarment)

The items making up the outfit, in the order they should be displayed. The source garment is included only if exclude_source_garment=false

object
garment_id
string

The garment_id. The type of identifier used depends on the requests garment_format

ExampleABC-123
raw_garment_id
integer (int32)

The internal Mapp Fashion id for the garment. This may be omitted depending on garment_format

Example123456
ancillary_product_code
string

An alternative identifier to identify the product, hidden when not provided in feed

ExampleA1B2C3
400

One or more parameter values are invalid

Expand All
object

Generic error object

error
object
message
string

A human readable error message

403

Invalid JWT: a user token was supplied but could not be verified. Requests without a user token are not affected - they return non-personalized results

Expand All
object

Generic error object

error
object
message
string

A human readable error message

422

garment not found

Expand All
object

Generic error object

error
object
message
string

A human readable error message

500

An internal error occurred. Retry the request. If the issue persists, contact Technical Support

Expand All
object

Generic error object

error
object
message
string

A human readable error message