Product
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
400
ProductId is not valid.
application/json
401
Unauthorized
403
Forbidden
404
ProductId does not exist in CloudRx system.
500
Internal Server Error
application/json
get
GET /api/v2/Product/stock-check HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"inStock": true
}
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
400
ProductId or total pack is not valid.
application/json
401
Unauthorized
403
Forbidden
404
Product not found.
application/json
500
CloudRx system error.
application/json
get
GET /api/v2/Product/price-check HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"price": 1
}
Product Search from CloudRx System. Mininum 3 letter search
Api will search for the Products begining with the search term provided in the call.
get
Authorizations
Query parameters
searchTermstringOptional
Responses
200
OK
application/json
400
Bad Request
application/json
401
Unauthorized
403
Forbidden
404
Not Found
application/json
500
Internal Server Error
application/json
get
GET /api/v2/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
}
]