Get Stock
- Request Instruction
HTTPS Method POST URL http://subdomain.supersuite.my/api/stock/get-detail/<ref_id> Content Type application/json Response Type JSON Parameter Description ref_id : string is required.
token: string is required.
Request Headers {
"Content-Type":"application/json"
}
Request Body {
"token" : "B7ABD5DEEC6588997DE41B0FE0665"
}
- Response JSON Format
Successful Example {
"status" : true,
"data" :
[
{
"ref_id" : "0B31CD0066F81E3C27674B1BB8BC7FB1",
"total_balance_qty" : "",
"stock_group_id" : "1",
"stock_item_type_id" : "2",
"item_code" : "B0001",
"status" : "A",
"description" : "English Book",
"description_2" : "Text Book",
"duty_rate" : "1.00",
"discontinued" : "N",
"lead_time" : "",
"has_promoter" : "N",
"supply_tax_code_ref_id" : "SS31CD0066F81E3C27674B1BB8BC7FB1",
"purchase_tax_code_ref_id" : "PP31CD0066F81E3C27674B1BB8BC7FB1",
"tariff_code_ref_id" : "TT31CD0066F81E3C27674B1BB8BC7FB1",
"stock_control" : "Y",
"costing_method" : "WA",
"config_uom_id" : "1",
"standard_selling_price" : "10.00",
"standard_selling_price_2" : "11.00",
"min_selling_price" : "10.00",
"max_selling_price" : "11.00",
"min_purchase_price" : "5.00",
"max_purchase_price" : "8.00",
"standard_cost" : "7.00",
"real_cost" : "7.00",
"min_qty" : "100",
"balance_qty" : "100",
"re_order_level" : "50",
"re_order_qty" : "100",
"normal_level" : "70",
"max_qty" : "200",
"weight" : "100",
"weight_uom" : "g",
"volume" : "100",
"volume_uom" : "",
"shelf" : "",
"barcode" : "123456789",
"redeem_bonus_point" : "100",
"image" : "",
"remark" : "",
}
]
}
Fail Example {
"status" : false,
"error" : "Token invalid. / Stock does not existing."
}
- Remark Property
Status Only Accept : A, I
A = Active,
I = Inactive
Discontinued / Has Promoter / Stock Control Only Accept : Y, N
Y = Yes,
N = No
Costing Method Only Accept : FC, WA, FI, LI, MR
FC = Fixed Cost,
WA = Weighted Average,
FI = FIFO,
LI = LIFO,
MR = Most Recently