Einheiten auflisten
Einheitenverzeichnis. Nutzen Sie `id` als `unit_id` bei Produkten. Optionales `search` durchsucht Name, Kürzel und german_unit_name.
get
/api/v1/units
Sicherheit
Parameter
| Name | In | Typ | Details | |
|---|---|---|---|---|
search |
query |
string
|
Optional | Suche über Entity-Felder und verschachtelte CRM-E-Mails/Telefone/Adressen |
Antworten
200
Einheitenliste
application/json
{
"allOf": [
{
"title": "API envelope",
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"errors": {
"nullable": true
},
"meta": {
"type": "object",
"nullable": true,
"additionalProperties": true
}
}
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"title": "Unit",
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"abbreviation": {
"type": "string",
"nullable": true
},
"german_unit_name": {
"type": "string",
"nullable": true
}
}
}
}
}
}
]
}
401
Missing or invalid API key
application/json
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": false
},
"message": {
"type": "string",
"example": "Missing API key (X-Api-Key)"
}
}
}