action billbee_article_update_stock { label: "Update the stock qty of an article" description: "The article is specified by sku. You have to send the absolute value for the current stock" provider: billbee method: POST path: "/api/v1/products/updatestock" encoding: form input: { type: "object" properties: { AutosubtractReservedAmount: { type: "boolean" description: "Automatically reduce the NewQuantity by the currently not fulfilled amount" } BillbeeId: { type: "integer" format: "int64" description: "Optional the ID of the Billbee product to update" } DeltaQuantity: { type: "number" format: "double" description: "This parameter is currently ignored" } ForceSendStockToShops: { type: "boolean" description: "If true, every sent stockchange is stored and transmitted to the connected shop, even if the value has not changed" } NewQuantity: { type: "number" format: "double" description: "The new absolute stock quantity for the product you want to set" } OldQuantity: { type: "number" format: "double" description: "This parameter is currently ignored" } Reason: { type: "string" description: "Optional a reason text for the stock update" } Sku: { type: "string" description: "The SKU of the product to update" } StockId: { type: "integer" format: "int64" description: "Optional the stock id if the feature multi stock is activated" } } } output: { type: "object" properties: { Data: { type: "object" properties: { CurrentStock: { type: "number" format: "double" description: "The new value for current stock after the update" } Message: { type: "string" description: "A human readable message that explains the result of the operation" } OldStock: { type: "number" format: "double" description: "The old value for current stock before the update" } SKU: { type: "string" description: "The SKU of the article to update the current stock" } UnfulfilledAmount: { type: "number" format: "double" description: "The value of the unfulfilled amount (reserved) of the article" } } } 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" } } } }