Skip to Content

PharmacyApi

All URIs are relative to https://business.apis.kesk.app/v1 

MethodHTTP requestDescription
addToPharmacyCartPOST /pharmacy/stores/{vendor_id}/{location_id}/cart/itemsAdd a product to the pharmacy cart.
clearPharmacyCartDELETE /pharmacy/stores/{vendor_id}/{location_id}/cartClear all items from the pharmacy cart.
getPharmacyGET /pharmacy/stores/{id}Get pharmacy (location) details
getPharmacyCartGET /pharmacy/stores/{vendor_id}/{location_id}/cartGet cart for a specific pharmacy location.
getPharmacyProductGET /pharmacy/products/{id}Get pharmacy product details
getPharmacyProductQuantityInCartGET /pharmacy/stores/{vendor_id}/{location_id}/cart/product/{product_id}/quantityGet quantity information for a product in the cart.
listPharmaciesGET /pharmacy/storesList pharmacies (locations)
listPharmacyCategoriesGET /pharmacy/categoriesList pharmacy categories
listPharmacyProductsGET /pharmacy/productsList pharmacy products
listPharmacySubcategoriesGET /pharmacy/categories/{category_id}/subcategoriesList pharmacy subcategories
removeFromPharmacyCartDELETE /pharmacy/stores/{vendor_id}/{location_id}/cart/itemsRemove an item from the pharmacy cart.
updatePharmacyCartItemPUT /pharmacy/stores/{vendor_id}/{location_id}/cart/itemsUpdate an item in the pharmacy cart.
validatePharmacyCartAdditionPOST /pharmacy/stores/{vendor_id}/{location_id}/cart/validateValidate if a product can be added to the cart.

addToPharmacyCart

CartResponse addToPharmacyCart(vendor_id, location_id, AddToCartRequest)

Add a product to the pharmacy cart.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]
AddToCartRequestAddToCartRequest

Return type

CartResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

clearPharmacyCart

String clearPharmacyCart(vendor_id, location_id)

Clear all items from the pharmacy cart.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]

Return type

String

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getPharmacy

PharmacyStoreDetails getPharmacy(id, authorization)

Get pharmacy (location) details

Retrieves detailed information about a specific pharmacy location. The ID is the location ID, not the vendor ID.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the pharmacy (location ID)[default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

PharmacyStoreDetails

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getPharmacyCart

CartResponse getPharmacyCart(vendor_id, location_id)

Get cart for a specific pharmacy location.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]

Return type

CartResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getPharmacyProduct

ProductResponse getPharmacyProduct(id, authorization)

Get pharmacy product details

Retrieves detailed information about a specific pharmacy product, including pricing, availability, and customization options.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the product[default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

ProductResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getPharmacyProductQuantityInCart

ProductQuantityResponse getPharmacyProductQuantityInCart(vendor_id, location_id, product_id)

Get quantity information for a product in the cart.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]
product_idLong[default to null]

Return type

ProductQuantityResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listPharmacies

PaginatedResponse_PharmacyStoreListItem listPharmacies(latitude, longitude, radius_km, page, per_page, authorization)

List pharmacies (locations)

Retrieves pharmacy locations with optional geo-filtering. Each pharmacy is a vendor_location - a vendor can have multiple pharmacies. Results are filtered by proximity within 50km if coordinates are provided.

Parameters

NameTypeDescriptionNotes
latitudeDoubleLatitude for geo-filtering pharmacies within radius[optional] [default to null]
longitudeDoubleLongitude for geo-filtering pharmacies within radius[optional] [default to null]
radius_kmDoubleSearch radius in kilometers (default: 50)[optional] [default to null]
pageLongPage number for pagination (default: 1)[optional] [default to null]
per_pageLongItems per page for pagination (default: 20)[optional] [default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

PaginatedResponse_PharmacyStoreListItem

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listPharmacyCategories

List listPharmacyCategories()

List pharmacy categories

Retrieves all top-level product categories for pharmacies.

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listPharmacyProducts

ProductListResponse listPharmacyProducts(store_id, vendor_id, category_id, sub_category_id, is_open, latitude, longitude, keyword, type, page, per_page, authorization)

List pharmacy products

Retrieves products from pharmacies with optional filtering by store (location), category, location, and keyword search.

Parameters

NameTypeDescriptionNotes
store_idLongFilter by specific store ID (location ID)[optional] [default to null]
vendor_idLongFilter by specific vendor ID (company - includes all locations)[optional] [default to null]
category_idLongFilter by category ID[optional] [default to null]
sub_category_idLongFilter by sub-category ID[optional] [default to null]
is_openBooleanFilter to show only products from currently open stores[optional] [default to null]
latitudeDoubleUser’s latitude for location-based filtering[optional] [default to null]
longitudeDoubleUser’s longitude for location-based filtering[optional] [default to null]
keywordStringSearch keyword to filter products[optional] [default to null]
typeProductListTypeFilter/sort type: best (most sales), for_you, flash, new, featured[optional] [default to null] [enum: vendor, normal, best, for_you, flash, new, featured]
pageLongPage number for pagination (default: 1)[optional] [default to null]
per_pageLongItems per page for pagination (default: 10)[optional] [default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

ProductListResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listPharmacySubcategories

List listPharmacySubcategories(category_id)

List pharmacy subcategories

Retrieves all subcategories for a specific pharmacy category.

Parameters

NameTypeDescriptionNotes
category_idLongParent category ID[default to null]

Return type

List

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

removeFromPharmacyCart

CartResponse removeFromPharmacyCart(vendor_id, location_id, RemoveFromCartRequest)

Remove an item from the pharmacy cart.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]
RemoveFromCartRequestRemoveFromCartRequest

Return type

CartResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

updatePharmacyCartItem

CartResponse updatePharmacyCartItem(vendor_id, location_id, UpdateCartItemRequest)

Update an item in the pharmacy cart.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]
UpdateCartItemRequestUpdateCartItemRequest

Return type

CartResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

validatePharmacyCartAddition

CartValidationResponse validatePharmacyCartAddition(vendor_id, location_id, CartValidationRequest)

Validate if a product can be added to the cart.

Parameters

NameTypeDescriptionNotes
vendor_idLong[default to null]
location_idLong[default to null]
CartValidationRequestCartValidationRequest

Return type

CartValidationResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8