action billbee_search_search { label: "Search for products, customers and orders. \nType can be \"order\", \"product\" and / or \"customer\" \nTerm can contains lucene query syntax" provider: billbee method: POST path: "/api/v1/search" encoding: form input: { type: "object" properties: { SearchMode: { type: "integer" format: "int32" enum: [0, 1, 2, 3, 4] } Term: { type: "string" } Type: { type: "array" items: { type: "string" } } } } output: { type: "object" properties: { Data: { type: "object" properties: { Customers: { type: "array" items: { type: "object" properties: { Addresses: { type: "string" } Id: { type: "integer" format: "int64" } Name: { type: "string" } Number: { type: "string" } } } } Orders: { type: "array" items: { type: "object" properties: { ArticleTexts: { type: "string" } BuyerName: { type: "string" } CustomerName: { type: "string" } ExternalReference: { type: "string" } Id: { type: "integer" format: "int64" } InvoiceNumber: { type: "string" } } } } Products: { type: "array" items: { type: "object" properties: { Id: { type: "integer" format: "int64" } SKU: { type: "string" } ShortText: { type: "string" } Tags: { type: "string" } } } } } } ErrorCode: { type: "integer" format: "int32" enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28] } ErrorDescription: { type: "integer" format: "int32" enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28] } ErrorMessage: { type: "string" } } } }