Shipping Options

Orders must have a Shipping Option Code. The available codes and prices are available from this endpoint.


HTTP Request

GET https://marketplace.vin65.com/shipping_options

Header Parameters

Parameter Required Description
Authorization TRUE Authorization token
example: Bearer 576gf565f2873g967w8.23478263g945sdfgwe523f.445gf7127cb45twe
version FALSE API Version to access
example: version=1

Example Request Code

curl -X "POST" "https://marketplace.vin65.com/shipping_options" \
        -H "Authorization: Bearer your_auth_token_here" \
        -H "Accept: version=1"

require 'httparty'
headers = { 'Authorization' => "Bearer #{auth_token}" }
response = HTTParty.get('https://marketplace.vin65.com/shipping_options', headers: headers)
JSON.parse(response.body)


Example Response Headers

HTTP/1.1 200 OK
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Version: 1
X-Total: 3
X-Per-Page: 3
X-Page: 1
Content-Type: application/json; charset=utf-8
ETag: W/"3a7bd4289ba7e9b3890e66efe9ce7500"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 60db9529-9df9-49f0-a427-db7a669093cc
X-Runtime: 0.034280
Connection: close
Transfer-Encoding: chunked

Example Response Body

{
  "shipping_options": [
    {
      "code":"ground",
      "name":"Ground",
      "price":"5.0",
      "min_quantity" : "1",
      "minimum_value" : "1.0",
      "shipping_option_type":"quantity_based"
    },
    {
      "code":"two_day",
      "name":"2 Day",
      "price":"10.0",
      "min_quantity" : "1",
      "minimum_value" : "1.0",
      "shipping_option_type":"quantity_based"
    },
    {
      "code":"overnight",
      "name":"Overnight",
      "price":"15.0",
      "min_quantity" : "1",
      "minimum_value" : "1.0",
      "shipping_option_type":"quantity_based"
    },
    {
      "code":"overnight",
      "name":"Overnight",
      "price":"12.0",
      "min_quantity" : "6",
      "minimum_value" : "6.0",
      "shipping_option_type":"quantity_based"
    }
  ]
}

Response Data

Parameter Type Description example
code STRING Code of shipping option ground
name STRING Name of shipping option Ground
price NUMBER Price of shipping option 5.0
min_quantity NUMBER Deprecated. Please use minimum_value 3
minimum_value STRING Minimum value to Qualify for rate 3
shipping_option_type ENUM Type of Shipping Option. Possible values are: quantity_based, product_subtotal_based product_subtotal_based