Record what received stock cost
post/accounting/stock/receipts
Before you call
- Credential
Authorization: Bearer $KEY- Scope
accounting:write- Sdk
accounting.stock.receive- Cli
accounting stock receive
Request bodyapplication/json, required
- variantIdstring (uuid)required
- quantityintegerrequiredAt most 10000000.
- unitCostMinorintegerrequiredAt least 0. At most 99999999999.
- receivedOnstringPattern: ^\d{4}-\d{2}-\d{2}$.
- refstringDefault: . At most 120 characters.
- idempotencyKeystringrequiredAt most 120 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring