You must provide a brand or brand_id and a model or model_id to retrieve possible traits. Ideally, your application should fetch /traits-with-variance once the user has selected a brand, model and/or submodel. If you are using admin credentials to access the API you may omit these parameters but you should consider caching the results within your application.
By default, this API returns a set of possibilities for every trait. If you only need information about one trait, or a handful of traits, use the only parameter to improve performance (ex: ?only=fingerboard_inlay,truss_rod)
| Code | Description |
|---|---|
| 400 | The request was unacceptable, often due to missing a required parameter. |
curl -X GET -H "Authorization: XXXXX" "https://api.axefax.com/instruments/traits-with-variance?brand=fender&model=Stratocaster&serial_number=4900"
{
"number_of_strings": [
{
"id": 1954,
"value": "6",
"description": "None provided."
}
],
"body_shape": [
{
"id": 36,
"value": "Stratocaster",
"description": "None provided."
}
],
"top": [
{
"id": 2303,
"value": "13 Body 27 Top",
"description": "None provided."
},
{
"id": 2305,
"value": "8 Body 27 Top",
"description": "None provided."
}
],
"back_and_sides": [],
"body_width": [],
"body_length": [],
"body_thickness": [],
"soundhole": [
{
"id": 264,
"value": "None",
"description": "None provided."
}
],
...
}
| Param name | Description |
|---|---|
|
shallow optional |
Pass true to include trait values, or false to include the IDs of values (faster). Default: false. Validations:
|
|
only optional |
Pass a comma-separated list of trait keys to look up variance for only those traits. Limiting your search can make the API much faster. For ex: &only=fingerboard_inlay,truss_rod Validations:
|
|
brand optional |
Filter based on a brand name Validations:
|
|
brand_id optional |
Filter based on a brand id Validations:
|
|
model optional |
Filter based on a model name Validations:
|
|
model_id optional |
Filter based on a model id Validations:
|
|
submodel optional |
Filter based on a submodel name Validations:
|
|
submodel_id optional |
Filter based on a submodel id Validations:
|
|
year optional |
Filter based on a year Validations:
|
|
serial_number optional |
Filter based on a year provided by a serial number Validations:
|
|
approved optional |
Validations:
|
|
pending optional |
Validations:
|