Shipping API

Show custom shipping rates

Listing Delivery Options

Fetch the list of existing delivery options

curl --request GET \
  --url https://ecom.api.zoko.io/v1/delivery/options \
  --header 'apikey: <api-key>'
const request = require('request');

const options = {
  method: 'GET',
  url: 'https://ecom.api.zoko.io/v1/delivery/options',
  headers: {apikey: '<api-key>'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
import requests

url = "https://ecom.api.zoko.io/v1/delivery/options"

headers = {"apikey": "<api-key>"}

response = requests.request("GET", url, headers=headers)

print(response.text)
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://ecom.api.zoko.io/v1/delivery/options")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'

response = http.request(request)
puts response.read_body

Response:

[
  {
    "id": "2427161b-edc0-11ea-b9cf-0242ac120003"
    "title": "Test option"
    "description": "Test option"
    "shipping_amt": 100
    "currency": "INR"
  }
]

Did this page help you?