Get a material kind
/material-kinds/{material_kind}Returns one material kind. The path names the material kind by its id, or by its code with by=code.
Request Headers
Path Parameters
The material kind's id, or its code when by=code.
Query Parameters
Which key the path holds: id, the default, or code.
"id"Value in
- "id"
- "code"
Response Headers
200, 400, 401, 404, 429, default
The channel that served the request: unstable.
Value in
- "unstable"
200, 400, 401, 404, 429, default
The id the server gave the request. A problem carries the same id as request_id. Quote it when you contact support.
uuid200, 400, 404, 429, default
The shop's rate-limit policy, as draft-ietf-httpapi-ratelimit-headers defines it: its name, the requests it allows (q), and its window in seconds (w). Every shop has the policy "standard";q=120;w=60: 120 requests per 60 seconds, counted over all the shop's tokens. Sent with every response to a request that carries a valid token, and with a 429. The server leaves it out when it cannot read the shop's budget.
200, 400, 404, 429, default
The shop's budget in the current window: the requests left (r), and the seconds until the window resets (t), as in "standard";r=117;t=42. Sent with RateLimit-Policy.
429
The number of seconds to wait until the shop's budget resets.
1 <= valueResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/material-kinds/string" \ -H "Authorization: Bearer ff_shop_…"{ "result": { "title": "string", "code": "string", "compatibility_mode": "universal", "id": "string", "category": { "id": "string" }, "compatibility_groups": [ { "id": "string" } ] }}Create a material kind POST
Creates a material kind and returns it with its id. The code must be unique in the shop: a code that another kind has answers 409 `already-exists`. The body names the category and each compatibility group as `{"id": …}` or `{"code": …}`. A reference that names no entity of the shop answers 400 `invalid-request` pointing at it.
Change a material kind PATCH
Changes the fields that the body carries, keeps the others, and returns the material kind. The path names the material kind by its id, or by its code with `by=code`. A `code` in the body is the kind's new code. The body names the category and each compatibility group as `{"id": …}` or `{"code": …}`. A reference that names no entity of the shop answers 400 `invalid-request` pointing at it.