Increase stock-item quantity
Adds capacity to a stock item at a service location — the restock operation. Adding capacity never affects existing bookings. Increasing a single-unit item turns it into one item tracked as a quantity, so its units are no longer individually trackable. Returns 404 when the stock item or the service location does not exist.
API key scope: one of inventory.stock_items.write.
POST
Increase stock-item quantity
Authorizations
API key for the Twice API
Path Parameters
Body
application/json
Body
Units to add: a whole number from 1 to 10000. Call again to add more.
Required range:
x <= 10000Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Response
200