{"openapi":"3.1.0","info":{"title":"AbaNinja Warehouse API - Transaction Types","version":"3.0.0","x-domain-id":"warehouse"},"servers":[{"url":"https://api.abaninja.ch","description":"The AbaNinja API server"}],"tags":[{"name":"warehouse-transaction-types","description":"Get warehouse transaction types","x-displayName":"Warehouse Transaction Types"}],"security":[{"ApiToken":[]}],"paths":{"/accounts/{accountUuid}/warehouse/v2/warehouse-transaction-types/available-subtypes":{"get":{"tags":["warehouse-transaction-types"],"summary":"Get available subtypes","description":"Get available transaction subtypes","operationId":"warehouse_list_available_subtypes","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"type","in":"query","schema":{"type":"string","enum":["INCOMING","OUTGOING","STOCKTAKING"]}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"title":"Warehouse Transaction Available Subtype Resource","properties":{"key":{"type":"string","enum":["CORRECTION","DEFAULT","DEFECT","DELIVERY_NOTE","INITIAL_STOCKTAKING","RETURN","STOCK","STOCKTAKING"]},"label":{"type":"string"}},"type":"object"}},"message":{"title":"message","type":"string"},"status":{"example":200},"meta":{"title":"meta","type":["object","null"]}},"required":["data","message","status"]}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"required":["detail","type","message","status"]}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"required":["detail","type","message","status"]}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/warehouse"]}],"x-legacy-operation-id":"39a651ac796d94fdbc35fe207c77f04f","x-required-scopes":["warehouse"]}},"/accounts/{accountUuid}/warehouse/v2/warehouse-transaction-types/available-types":{"get":{"tags":["warehouse-transaction-types"],"summary":"Get available types","description":"Get available transaction types","operationId":"warehouse_list_available_types","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"title":"Warehouse Transaction Available Type Resource","properties":{"key":{"type":"string","enum":["INCOMING","OUTGOING","STOCKTAKING"]},"label":{"type":"string"}},"type":"object"}},"message":{"title":"message","type":"string"},"status":{"example":200},"meta":{"title":"meta","type":["object","null"]}},"required":["data","message","status"]}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"required":["detail","type","message","status"]}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"required":["detail","type","message","status"]}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/warehouse"]}],"x-legacy-operation-id":"4e1079472d38cf57df8da18b768d1076","x-required-scopes":["warehouse"]}}},"components":{"securitySchemes":{"ApiToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication. Create tokens in Settings > API Token."}}}}