Ganipara Rest API v1.0
Kargo
Mağazanızda ürünlerin kargo hesaplamaları için kullanılır
Methodlar
Kargo firması listele | Detay |
---|---|
Kargo firması detay | Detay |
Kargo firması varsayılan | Detay |
Kargo firması servisler | Detay |
Depo listele | Detay |
Depo detay | Detay |
Depo varsayılan | Detay |
Kargo bedeli hesapla | Detay |
Kargo desi hesapla | Detay |
Kargo firması listele
https://api.ganipara.com/1.0/cargo/courier/list/ | GET |
Mağazaya ait kargo firmalarını listele "service" değeri için burayı inceleyiniz |
GET /1.0/cargo/courier/list/
{ "status": true, "couriers": [ { "id": "31", "service": "aras", "default": "1", "title": "Aras Kargo" }, { "id": "34", "service": "other", "default": "0", "title": "Ege Kargo" }, { "id": "32", "service": "yurtici", "default": "0", "title": "Yurtiçi Kargo" } ] }
Kargo firması detay
https://api.ganipara.com/1.0/cargo/courier/detail/ | GET |
Mağazaya ait kargo firması detayı "service" değeri için burayı inceleyiniz |
Paremetre | Tür | Zorunlu |
---|---|---|
id |
Metin | Evet |
GET /1.0/cargo/courier/detail/ { "id":"32" }
{ "status": true, "courier": { "id": "32", "service": "yurtici", "default": "0", "title": "Yurtiçi Kargo" } }
Kargo firması varsayılan
https://api.ganipara.com/1.0/cargo/courier/default/ | GET |
Mağazaya ait varsayılan kargo firması detayı "service" değeri için burayı inceleyiniz |
GET /1.0/cargo/courier/default/
{ "status": true, "courier": { "id": "31", "service": "aras", "default": "1", "title": "Aras Kargo" } }
Kargo firması servisler
https://api.ganipara.com/1.0/cargo/courier/services/ | GET |
Mağazaya ait kargo firması tanımlamaları ile kargo firmalarını eşleştirmek |
GET /1.0/cargo/courier/services/
{ "status": true, "courier_services": [ { "id": "aramex", "name": "Aramex" }, { "id": "aras", "name": "Aras" }, { "id": "arkas", "name": "Arkas" }, { "id": "asgard", "name": "Asgard" }, { "id": "balnak", "name": "Balnak" }, { "id": "bogazici", "name": "Boğaziçi" }, { "id": "ceva", "name": "Ceva Lojistik" }, { "id": "dhl", "name": "DHL Kargo" }, { "id": "other", "name": "Diğer" }, { "id": "fedex", "name": "FedEx Kargo" }, { "id": "fillo", "name": "Fillo Kargo" }, { "id": "horoz", "name": "Horoz Lojistik" }, { "id": "kargokar", "name": "Kargokar" }, { "id": "mng", "name": "MNG" }, { "id": "metro", "name": "Metro Kargo" }, { "id": "narpost", "name": "Narpost Kargo" }, { "id": "ptt", "name": "PTT Kargo" }, { "id": "selem", "name": "Selem Kargo" }, { "id": "surat", "name": "Sürat" }, { "id": "tnt", "name": "TNT Kargo" }, { "id": "tezel", "name": "Tezel Lojistik" }, { "id": "ups", "name": "UPS" }, { "id": "yurtici", "name": "Yurtiçi" } ] }
Depo listele
https://api.ganipara.com/1.0/cargo/from/list/ | GET |
Mağazaya ait depoları listele |
GET /1.0/cargo/from/list/
{ "status": true, "from": [ { "id": "20", "label": "Benim Firmam", "default": "1", "title": "Firma LTD.ŞTİ", "address": "Deniz Sokak, Okyanus Mahallesi No:1", "city": "6", "country": "TR", "phone": "(312) 0000000", "zip": "06650" } ] }
Depo detay
https://api.ganipara.com/1.0/cargo/from/detail/ | GET |
Mağazaya ait depo detayı |
Paremetre | Tür | Zorunlu |
---|---|---|
id |
Metin | Evet |
GET /1.0/cargo/from/detail/ { "id":"20" }
{ "status": true, "from": { "id": "20", "label": "Benim Firmam", "default": "1", "title": "Firma LTD.ŞTİ", "address": "Deniz Sokak, Okyanus Mahallesi No:1", "city_id": "6", "city": "Ankara", "country_id": "TR", "country": "Türkiye", "phone": "(312) 0000000", "zip": "06650" } }
Depo varsayılan
https://api.ganipara.com/1.0/cargo/from/default/ | GET |
Mağazaya ait varsayılan depo detayı |
GET /1.0/cargo/from/default/
{ "status": true, "from": { "id": "20", "label": "Benim Firmam", "default": "1", "title": "Firma LTD.ŞTİ", "address": "Deniz Sokak, Okyanus Mahallesi No:1", "city": "6", "country": "TR", "phone": "(312) 0000000", "zip": "06650" } }
Kargo bedeli hesapla
https://api.ganipara.com/1.0/cargo/calculate/ | GET |
Kargo bedeli hesapla |
Paremetre | Tür | Zorunlu |
---|---|---|
unit Desi büyüklüğü |
Sayı | Evet |
GET /1.0/cargo/calculate/ { "unit":"8" }
{ "status":true, "price":"13.95" }
Kargo desi hesapla
https://api.ganipara.com/1.0/cargo/unit/ | GET |
Kargo desi hesapla |
Paremetre | Tür | Zorunlu |
---|---|---|
height Ürün yüksekliği (cm) |
Sayı | Evet |
width Ürün genişliği (cm) |
Sayı | Evet |
depth Ürün derinliği (cm) |
Sayı | Evet |
GET /1.0/cargo/unit/ { "height":"20", "width":"30", "depth":"40" }
{ "status":true, "unit":"8.00" }