GETPOST/api/partners/v1/inventory
GET · Operation details
Declared responses: 200, default
Full operation contract
{
"operationId": "listinventory",
"tags": [
"Vehicle inventory"
],
"security": [
{
"partnerToken": [
"inventory:read"
]
}
],
"parameters": [
{
"in": "query",
"name": "limit",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
}
},
{
"in": "query",
"name": "after",
"schema": {
"type": "string",
"maxLength": 128
}
}
],
"responses": {
"200": {
"description": "Records ordered by ID",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/inventoryRecord"
}
},
"pagination": {
"type": "object",
"properties": {
"next": {
"type": [
"string",
"null"
]
},
"limit": {
"type": "integer"
}
},
"required": []
}
},
"required": []
}
}
}
},
"default": {
"description": "Structured error without private records or traces.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"code",
"message",
"requestId"
]
}
},
"required": [
"error"
]
}
}
}
}
}
}POST · Operation details
Declared responses: 201, default
Full operation contract
{
"operationId": "createinventory",
"tags": [
"Vehicle inventory"
],
"security": [
{
"partnerToken": [
"inventory:create"
]
}
],
"parameters": [
{
"in": "header",
"name": "Idempotency-Key",
"required": true,
"schema": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
},
"description": "Generate once per intent and reuse only with the same request."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/inventoryCreate"
}
}
}
},
"responses": {
"201": {
"description": "Authorized record",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/inventoryRecord"
}
},
"required": []
}
}
},
"headers": {
"ETag": {
"schema": {
"type": "string"
}
}
}
},
"default": {
"description": "Structured error without private records or traces.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"code",
"message",
"requestId"
]
}
},
"required": [
"error"
]
}
}
}
}
}
}

