GET Single Stock Transaction
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
GET
https://{{subdomain}}.daftra.com/api2
Stock Transactions
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://.daftra.com/api2/stock_transactions/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example 1
{
"code": 200,
"result": "successful",
"data": {
"StockTransaction": {
"id": 0,
"product_id": 0,
"transaction_type": "1 => IN",
"transaction_category_id": null,
"source_type": "1 => Manual",
"date": "2018-05-10 00:42:00",
"order_id": 0,
"ref_id": 0,
"status": "1 => Draft",
"received_date": "2018-05-10 00:42:00",
"quantity": 0,
"currency_code": "USD",
"price": 0,
"price_without_tax": 0,
"added_by": 0,
"ignored": true,
"ignored_date": "2018-05-10 00:42:00",
"balance_to_date": 0,
"notes": null,
"stock_transfer_id": 0,
"store_id": "The invoice store id",
"description": "string",
"created": "2018-05-10 00:42:00",
"modified": "2018-05-12 13:05:06",
"discount": 0,
"purchase_price": 0,
"purchase_order_ids": 0,
"journal_account_id": 0,
"fetch_from_raw": true
}
},
"pagination": {
"prev": "/api2/clients/?page=1",
"next": "/api2/clients/?page=3",
"page": 2,
"page_count": 5,
"total_results": 98
}
}
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}}