stock.remove
This method is used to remove a Stock
Arguments
This method has the path /payment/v1/stock.remove
and
follows the MicroBase API calling conventions.
Argument | Required | Type | Example | Description |
---|---|---|---|---|
id | no | String | iw3RA1EE | The id of the Stock to remove. |
Response
Returns a default response:
{
"ok": true
}
Errors
Expected errors that this method could return. Some errors return additional data.
Error | Data | Description |
---|---|---|
stock_not_found | The id not found | The Stock was not found |
Example
curl --request POST \
--url 'http://localhost:3000/services/stock/v1/stock.remove?id=ia5RA1W9 \
--header 'authorization: Bearer xxxxx...' \
--header 'accept: application/json' \
--header 'content-type: application/json'