Update an existing shipping option

image description

Update an existing shipping option

Update existing shipping option


  • Method: PUT
  • Version: v3
  • Server: https://[app key here]-[site_ID here]-apps.worldsecuresystems.com. Take a look at the Authorize your API calls document for more info on how this URL is formed.
    • Note: When building apps always use relative request URLs. Do not use the “full” URL above because you might have problems running your app on a different site as the site_ID parameter will be different.
  • Path: /webresources/api/v3/sites/current/shippingoptions/[shipping_option_ID]
    • Alternatively, use siteID instead of ‘current’
  • Authorization header: This should contain the authorization token. Here is how to obtain the token.

Note: Only “user-defined” type shipping (“type”: 1) options can be added using this API endpoint.


The response should be “204 no content” if the shipping option was successfully modified.

Here are the parameters you can use when updating a shipping option:

  • "description" – the shipping option’s description (string)
  • "price"(integer)
  • "type" – the type of shipping option (integer)
    • 1 – User defined
  • "taxCodeId"(integer)
  • "countryCode"(string)
  • "postcode"(string)

Sample code

var access_token = BCAPI.Helper.Site.getAccessToken();
var request = $.ajax({
    url: "/webresources/api/v3/sites/current/shippingoptions/155085",
    processData: false,
    data: JSON.stringify({    "description": "My custom shipping option1",    "type": 1,    "price": 100,    "taxCodeId": 0,    "countryCode": "US",    "postcode": "01010",    "limitDeliveryTo": "US;RO;GB"	  }),
    type: "PUT",    
    contentType: "application/json",
    headers: {
              "Authorization": $.cookie('access_token')
request.done(function (msg) {
request.fail(function (jqXHR) {
    console.log("Request failed.");
    console.log("Error code: " + jqXHR.status);
    console.log("Error text: " + jqXHR.statusText);
    console.log("Response text: " + jqXHR.responseText);

Update existing shipping option – For those seeking to create personal or business sites, Bootstrap HTML5 website templates are a blessing. They offer to enhance any web page or application, while making every feature mobile-responsive.

Update existing shipping option – However, any innovation will be reduced to a fun gimmick, if it lacks the infrastructure that could support it. Just a few years ago, mobile-responsiveness was quite rare, as many sites chose to neglect those who prefer hand-held devices. However, the landscape has evolved considerably. Lately, the market has made great efforts to include mobile users, while the devices themselves have seen a rapid increase in screen size and resolution. When we hear the word computer, most of us think of the standard desktop variation. However, in today’s tech-oriented society, almost any device can fall into that category. Even our phones have rapidly morphed into powerful mini-computers, capable of astonishing feats.

Update existing shipping option – As a business owner, this can drastically improve your quality of life. Gone are the days when you had to be tied to a desk chair. You can now administer your site, write new posts, or even auction products while traveling. As long as you own a quality Bootstrap website template and a smartphone or tablet, you won’t miss out on anything.

Leave Comment

Related News

This is a demo store for testing purposes — no orders shall be fulfilled. Dismiss