Stock Quantity API
A customer can send a request to Steadfast to get stock quantity.
5.1 Stock Quantity
The stock quantity endpoint is given below.
Stock Quantity API
POST https://middleware.podapp.com.au/passthrough/customerstockquantity
Headers
Name
Type
Description
X-Steadfast-Api-Key
string
API Key Name that must be passed in request headers
Request Body
Name
Type
Description
request body
json
Please see below.
{
"Message": "Ok",
"ResponseMessage": {
"Success": true,
"TokenChanged": false,
"ErrorMessage": "",
"NewToken": "00000000000000000000000000000000"
},
"TotalQueryRows": 0
}{
"StatusCode": 401,
"Message": "Authentication failed. Invalid Api Key."
}{
"StatusCode": 401,
"Message": "No Api Key is provided. Api Key is missing in request headers."
}{
"StatusCode": 404,
"Message": "Endpoint gerardorder Not Found. Api in Not Active."
}{
"StatusCode": 404,
"Message": "Endpoint gerardorder1 Not Found. No Api is configured at gerardorder1."
}{
"StatusCode": 500,
"Message": "There is error while calling Outbound API."
}By default, if the list of products is not provided, it sends all product stock quantities that are available in the system.
Steadfast will send data of stock of all products as given below.
{
"Success": true,
"ErrorMessage": "",
"StocksQuantity": [
{
"ProductCode": "4X4POS16",
"Quantity": 1
},
{
"ProductCode": "4X4POS16EMPTY",
"Quantity": 2
},
{
"ProductCode": "ALPAP151G",
"Quantity": 1
},
{
"ProductCode": "ZZMAERCHE",
"Quantity": 2
},
{
"ProductCode": "ALSW2G",
"Quantity": 147
},
{
"ProductCode": "ALSWPV1G",
"Quantity": 98
},
]
}5.2 Stock Quantity with Product Codes
A list of product codes can be passed to the stock API.
{
"ProductCodes": [
"ZZMERCHE",
"4X4POS16EMPTY"
]
}Steadfast will send data of stock of all products as given below.
{
"Success": true,
"ErrorMessage": "",
"StocksQuantity": [
{
"ProductCode": "ZZMERCHE",
"Quantity": 1
},
{
"ProductCode": "4X4POS16EMPTY",
"Quantity": 2
}
]
}Last updated
Was this helpful?