Create a withdrawal
Withdrawals
Create a withdrawal
Automatically deducts from matching inventory. Returns 400 if insufficient stock. The server assigns a unique withdrawalNumber (e.g. WDW-0001); do not send it in the request body.
POST
Create a withdrawal
On success, the created withdrawal includes
withdrawalNumber, a unique human-readable id in the form WDW-0001, WDW-0002, … assigned by the server. It is not part of the request body. Existing documents without a number can be updated with npm run backfill.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Minimum string length:
1Minimum string length:
1Required range:
x >= 1Available options:
Raw, Reuse Minimum string length:
1Minimum string length:
1Available options:
pending, approved, rejected Minimum string length:
1Inventory slot ID
Minimum string length:
1