Documentation

Fit Advisor Documentation

Documentation for size recommendation endpoints for topwear and pants.

Base URL
https://core.keepbelanja.com
Authentication

Header `Key`

The fit advisor endpoint requires the `Key` header, an `application/x-www-form-urlencoded` body, and HTTPS.
HeaderKey: your_api_key_here
Bodyapplication/x-www-form-urlencoded
Typesuit, tshirt, shirt, pants, jacket
Styleslim, standar, standard, oversize
Request

Required fields

MethodPOST
Bodytype, height, weight, age, style
Fit Advisor

Valid values

Type
suit, tshirt, shirt, pants, jacket
Style
slim, standar, standard, oversize
Examples

Request and response examples

Topwear example
Example for `shirt`, `jacket`, `suit`, or `tshirt`.
curl --location 'https://core.keepbelanja.com/api/fit-advisor' \
--header 'Key: YOUR_API_KEY' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'type=shirt' \
--data-urlencode 'height=170' \
--data-urlencode 'weight=70' \
--data-urlencode 'age=29' \
--data-urlencode 'style=slim'
Pants example
Example pants number output for the `pants` type.
curl --location 'https://core.keepbelanja.com/api/fit-advisor' \
--header 'Key: YOUR_API_KEY' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'type=pants' \
--data-urlencode 'height=170' \
--data-urlencode 'weight=70' \
--data-urlencode 'age=29' \
--data-urlencode 'style=slim'
Reference

Request body reference

Endpoint Method Body Notes
https://core.keepbelanja.com/api/fit-advisorPOSTtype, height, weight, age, styleRequest field reference for the fit advisor endpoint.