Edit Stock Transactions
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
PUT
https://{{subdomain}}.daftra.com/api2
Stock Transactions
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://.daftra.com/api2/stock_transactions/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"StockTransaction": {
"product_id": 0,
"transaction_type": "1 => IN",
"transaction_category_id": null,
"date": "2018-05-10 00:42:00",
"quantity": 0,
"currency_code": "USD",
"price": 0,
"price_without_tax": 0,
"added_by": 0,
"ignored": true,
"notes": null,
"stock_transfer_id": 0,
"store_id": "The invoice store id",
"description": "string",
"discount": 0,
"fetch_from_raw": true
}
}'
Response Response Example
200 - Example 1
{
"code": 200,
"result": "successful"
}
Request
Path Params
id
stringÂ
required
format
stringÂ
required
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}
Body Params application/json