EyeFitU REST API (v1)
Download OpenAPI specification:Download
EyeFitU REST API responds with a size recommendation for a garment and a given body measurements.
/config
/config endpoint provides information on how to interact with a user while recommending size for a specific product.
Authorizations:
query Parameters
| store required | string (StoreIdentifier) Example: store=sandbox.eyefitu.com Store domain identifying the client. |
| brandName | string |
| productId | string |
| productName | string Product category which could be used to select the right size chart. |
| productTitle | string Product title used to select size chart when |
| gender | string (Gender) Enum: "female" "male" |
| sizeLabels | string Example: sizeLabels=["S", "M", "L", "XL"] |
Responses
Response samples
- 200
- 400
{- "status": "ok",
- "measurements": [
- "HIP_CIRCUMFERENCE",
- "WAIST_CIRCUMFERENCE"
]
}/size-recommendation
/size-recommendation endpoint should be used to receive size
recommendation for given body measurements and product.
Body measurements could be given in basic or detailed sets.
Basic body measurements include height, weigth and age.
Detailed body measurements could be received from /measurements
endpoint or provided from third-party system.
Adjusted detailedMeasurements could be used instead of predicted ones.
All keys of detailedMeasurements are required. Unadjusted measurements
should be left unchaged from /measurements endpoint.
Authorizations:
Request Body schema: application/json
| gender required | string (Gender) Enum: "female" "male" |
| height required | number (Height) Height in centimeters. |
| weight required | number (Weight) Weight in kilograms. |
| age required | integer (Age) Enum: 16 17 18 26 36 46 56 66 75 Age range of a person. Only |
object (DetailedMeasurements) | |
| userId required | string Temporary UUID assigned to a user receiving size recommendation. This UUID should not be related to any PII. If would be used to count Monthly Active Users for metering purposes only. |
| store required | string Store domain used to configure size charts. |
object (Preferences) Preferences which could be used to alter predition model (depends on activated features). | |
required | object Product metadata used to select the right size chart. Required set of metadata properties is dependent on structure of store size charts. |
| sizeLabels required | Array of strings non-empty
This information is useful when ranges in size chart are labeled in
multiple sizing systems. For example, depending on the content of
|
Responses
Request samples
- Payload
{- "gender": "female",
- "height": 164,
- "weight": 54,
- "age": 16,
- "detailedMeasurements": {
- "HIP_CIRCUMFERENCE": 89.4,
- "BUST_CIRCUMFERENCE": 84.2,
- "NECK_CIRCUMFERENCE": 30.4,
- "THIGH_CIRCUMFERENCE": 51.5,
- "UNDER_BUST_CIRCUMFERENCE": 70.3,
- "WAIST_CIRCUMFERENCE": 68,
- "WRIST_CIRCUMFERENCE": 14.3,
- "FOOT_LENGTH": 23.2,
- "FOOT_BREADTH": 9.2,
- "ARM_LENGTH": 57.1,
- "ARM_C7_LENGTH": 74.7,
- "HEAD_CIRCUMFERENCE": 54.5,
- "INSEAM_LENGTH": 75.6,
- "UPPER_ARM_CIRCUMFERENCE": 25.9,
- "CALF_CIRCUMFERENCE": 33.4,
- "MINIMUM_LEG_CIRCUMFERENCE": 20.4
}, - "userId": "33a9a818-6321-44fa-a678-444e0384c4c7",
- "store": "sandbox.eyefitu.com",
- "preferences": {
- "alternatives": {
- "BUST_CIRCUMFERENCE": "option-1"
}
}, - "productMetadata": {
- "productName": "Tops",
- "brandName": "Calvin Klein",
- "gender": "female"
}, - "sizeLabels": [
- "S",
- "M",
- "L",
- "XL"
]
}Response samples
- 200
- 400
{- "recommendedSize": "S",
- "bodyPlace": "TOPS",
- "extended": [
- {
- "label": "XS"
}, - {
- "label": "S"
}, - {
- "label": "M"
}
], - "visualization": {
- "sizes": [
- {
- "measurements": [
- {
- "measurement": "BUST_CIRCUMFERENCE",
- "match": "TIGHTER"
}, - {
- "measurement": "WAIST_CIRCUMFERENCE",
- "match": "CLOSE_FIT"
}
]
}, - {
- "measurements": [
- {
- "measurement": "BUST_CIRCUMFERENCE",
- "match": "TIGHTER"
}, - {
- "measurement": "WAIST_CIRCUMFERENCE",
- "match": "FIT"
}
]
}, - {
- "measurements": [
- {
- "measurement": "BUST_CIRCUMFERENCE",
- "match": "LOOSER"
}, - {
- "measurement": "WAIST_CIRCUMFERENCE",
- "match": "LOOSER"
}
]
}
]
}
}/measurements
Predict detailed measurements for a given profile.
Authorizations:
Request Body schema: application/json
| store | string (StoreIdentifier) Store domain identifying the client. |
object (Preferences) Preferences which could be used to alter predition model (depends on activated features). | |
object |
Responses
Request samples
- Payload
{- "store": "sandbox.eyefitu.com",
- "preferences": {
- "alternatives": {
- "BUST_CIRCUMFERENCE": "option-1"
}
}, - "predictedMeasures": {
- "gender": "female",
- "height": 164,
- "weight": 54,
- "age": 16
}
}Response samples
- 200
{- "predictedMeasures": {
- "HIP_CIRCUMFERENCE": 89.4,
- "BUST_CIRCUMFERENCE": 84.2,
- "NECK_CIRCUMFERENCE": 30.4,
- "THIGH_CIRCUMFERENCE": 51.5,
- "UNDER_BUST_CIRCUMFERENCE": 70.3,
- "WAIST_CIRCUMFERENCE": 68,
- "WRIST_CIRCUMFERENCE": 14.3,
- "FOOT_LENGTH": null,
- "FOOT_BREADTH": null,
- "ARM_LENGTH": 57.1,
- "ARM_C7_LENGTH": 74.7,
- "HEAD_CIRCUMFERENCE": null,
- "INSEAM_LENGTH": 75.6,
- "UPPER_ARM_CIRCUMFERENCE": 25.9,
- "CALF_CIRCUMFERENCE": 33.4,
- "MINIMUM_LEG_CIRCUMFERENCE": 20.4
}
}