Delete a shipping option

image description

Delete a shipping option

Delete a shipping option

This section details the endpoints you can use to delete a shipping option.


  • Method: DELETE
  • 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_options_ID]
    • Alternatively, use siteID instead of ‘current’
  • Authorization header: This should contain the authorization token. Here is how to obtain the token.


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

Sample code

var access_token = BCAPI.Helper.Site.getAccessToken();
var request = $.ajax({
    url: "/webresources/api/v3/sites/current/shippingoptions/155085",
    type: "DELETE",    
    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);

Leave Comment

Related News

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