v2

latestOpenAPI 3.0.0Apache 2.02026-07-2638645559.8 KB
Stocks

Create a stocks

Create a new stocks

post/apps/{appId}/productstocks

Path parameters

appIdinteger required

The identifier of the Sinao application you are using. Each application corresponds to a company and an accounting. A user can have several Sinao applications. To retrieve the identifiers of its applications, you must call the endpoint /apps.

Query parameters

product_idinteger required

Parent object

purchase_idinteger

Purchase that generated the stock if exists

quantityinteger

The initial quantity will no longer be modifiable. To change the quantity manually, use the destruct endpoint

bar_codestring
locationstring
entered_atstring date-time
expired_atstring date-time
cost_amountinteger
use_durationinteger

Use duration in seconds

Response

Success

idinteger
quantity_ininteger
quantity_outinteger
bar_codeinteger
locationinteger
entered_atinteger
expired_atinteger
cost_amountinteger
initial_quantityinteger
use_durationinteger