📅İleri Tarihli Fiyat Listesi
Uç-nokta: /future-prices/:id
İstek Metodu: GET
Header Parametreleri
İstek Parametreleri
id
integer
İlaca ait atanmış olan tekil ürün id bilgisi. Bu bilgiye /products metodunda bulunan id alanından alınabilir.
hayır
per-page
integer
Bir sayfada bulunması istenen kayıt sayısı. Üst limit 500.
hayır
Cevap Parametreleri
data
Cevaplar data zarfı içinde aşağıdaki parametreleri içeriyor
product
id
integer
ürün tekil id'si
name
string
ürün ismi (drug + drugform + product şeklinde oluşturulmaktadır).
price
retail
date
KDV dahil perakende satış fiyatı
factory
integer
üretici firmanın, ecza depolarına satış yaptığı fiyat (KDV hariç)
storage
integer
ecza depolarının hastanelere veya eczanelere satış yaptığı fiyat (KDV hariç)
pharmacy
integer
KDV hariç eczane satış fiyatı
currencyCode
integer
fiyatın döviz tipi. Dönen cevap; TRY, USD, EUR olabilir
effectiveDate
date
ilacın fiyat bilgisinin geçerli olduğu tarih. İlaçlar 1'den fazla fiyata sahip olabilirler. Fiyatları güncellendikçe, yeni fiyatlar geçerli olma tarihleriyle birlikte (effectiveDate) kaydedilir.
curl İstek Örneği
curl --location 'https://api.vapi.co/future-prices' \
--header 'Authorization: Bearer <API KEY>' \
curl --location 'https://api.vapi.co/future-prices/31177' \
--header 'Authorization: Bearer <API KEY>' \
postman İstek Örneği
Cevap örneği
Liste Sonucu
{
"data": [
{
"product": {
"id": 147,
"name": "DELODAY Şurup 0.5 mg/ml 150 ml'lik şişe"
},
"price": {
"retail": 21.29,
"factory": 14.17,
"storage": 15.4,
"pharmacy": 19.71,
"currencyCode": "TRY",
"effectiveDate": "2022-12-20"
}
},
{
"product": {
"id": 802,
"name": "MABTHERA İV İnf. İçin Konsantre Çözelti İçeren Flakon 100 mg/10 ml 2x10 ml'lik flakon"
},
"price": {
"retail": 3537.05,
"factory": 2797.61,
"storage": 2861.16,
"pharmacy": 3275.05,
"currencyCode": "TRY",
"effectiveDate": "2022-12-20"
}
},
...
],
"_links": {
"self": {
"href": "https://api.vapi.co/future-prices?page=1&per-page=500"
},
"first": {
"href": "https://api.vapi.co/future-prices?page=1&per-page=500"
},
"last": {
"href": "https://api.vapi.co/future-prices?page=7&per-page=500"
},
"next": {
"href": "https://api.vapi.co/future-prices?page=2&per-page=500"
}
},
"_meta": {
"totalCount": 3372,
"pageCount": 7,
"currentPage": 1,
"perPage": 500
},
"success": true
}
Tekil Sonuç
{
"data": {
"product": {
"id": 31177,
"name": "ARGİVİT FOCUS Takviye Edici Gıda 30 tabletlik ambalaj"
},
"price": {
"retail": 540,
"factory": 408.76,
"storage": 445.54,
"pharmacy": null,
"currencyCode": "TRY",
"effectiveDate": "2024-02-01"
}
},
"success": true
}
Last updated