Product

Checks if the product is in Stock or not.

get

Sample request:

Get /stock-check
{
   "productId": 1,
   "dmdCode": 12345678,
}
Authorizations
Query parameters
productIdinteger · int32Optional
dmdCodeinteger · int64Optional
Responses
200

If the product is in Stock or not.

application/json
get
GET /api/v1/Product/stock-check HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "inStock": true
}

Checks the price of the product.

get

Sample request:

Get /stock-price
{
   "productId": 1,
   "dmdCode": 12345678,
   "totalPacks": 2,
}
Authorizations
Query parameters
productIdinteger · int32Optional
dmdCodeinteger · int64Optional
totalPacksinteger · int32Optional
Responses
200

Price of the product.

application/json
get
GET /api/v1/Product/price-check HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "price": 1
}
get
Authorizations
Query parameters
searchTermstringOptional
Responses
200

OK

application/json
get
GET /api/v1/Product/search HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "productId": 1,
    "name": "text",
    "units": "text",
    "packSize": 1,
    "outOfStock": true,
    "price": 1,
    "controlDrug": true
  }
]