Open API v2 / eCommerce / eCommerce Shipping Options

eCommerce Shipping Options

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/shipping-options#

Retrieves a list of shipping options by using a "where" filtering

Parameters
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
Response
Idinteger
Internal system ID of the service. Read-only.
Namestring · nullable
The descriptive name of the shipping option that will be displayed in the shopping cart shipping dropdown.
Pricenumber
A per order value representing the starting/base price of the shipping option (further values as per below 'Settings' may be calculated along with this price).
IsEnabledboolean
Is this method active for customer selection.
CurrencyCountrystring · nullable
The currency-and-country market this shipping option is offered in.
Currencystring · nullable
The currency setting in which the shipping option is to be used.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Typeenum
Numeric identifier of the service category. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
TaxIdinteger
The tax ID that is applied to the shipping cost.
TaxNeverAppliesboolean
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ChosenShippingProviderServicesarray of integers
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ProviderSettingsobject · nullable
Additional serialized settings (usually a JSON or XML string).
ShippingSettingsobject
Rules and restrictions that govern when this option appears in the cart and how its cost is calculated, such as handling charges, weight and size limits, order-value ranges, and allowed customer types and countries.
Settingsobject
This is a set of rules and restrictions that determine when and how a shipping method appears in the cart.
curl "https://your-site.webinone.com/api/v2/admin/shipping-options" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "Id": 1,
      "Name": "Example",
      "Price": 0,
      "IsEnabled": false,
      "CurrencyCountry": "USD",
      "Currency": "USD",
      "Country": "string",
      "Type": "UserDefined",
      "TaxId": 1,
      "TaxNeverApplies": false,
      "ChosenShippingProviderServices": [
        0
      ],
      "ProviderSettings": "string",
      "ShippingSettings": {
        "Services": [
          {
            "Id": 1,
            "Code": "string",
            "DisplayName": "Example",
            "Description": "string",
            "Type": 0
          }
        ],
        "AccountTypes": [
          {
            "DisplayName": "Example",
            "Value": "string"
          }
        ],
        "DeliveryConfirmations": [
          {
            "DisplayName": "Example",
            "Value": "string"
          }
        ],
        "PackageType": [
          {
            "DisplayName": "Example",
            "Value": "string"
          }
        ]
      },
      "Settings": {
        "HandlingCharge": 0,
        "AdditionalPerItemHandlingCharge": 0,
        "MinWeight": 10,
        "MaxWeight": 10,
        "MinWidth": 0,
        "MaxWidth": 0,
        "MinHeight": 0,
        "MaxHeight": 0,
        "MinDepth": 0,
        "MaxDepth": 0,
        "MinOrderPrice": 0,
        "MaxOrderPrice": 0,
        "AllowedCustomersTypes": [
          0
        ],
        "LimitDeliveryFollowingCountries": [
          "string"
        ],
        "ExcludeShippingForCatalogs": [
          0
        ]
      }
    }
  ],
  "TotalItemsCount": 0
}
POST/api/v2/admin/shipping-options#

Creates a new shipping option

Body parameters
Namestringrequired
The descriptive name of the shipping option that will be displayed in the shopping cart shipping dropdown.
Pricenumber
A per order value representing the starting/base price of the shipping option (further values as per below 'Settings' may be calculated along with this price).
IsEnabledboolean
Is this method active for customer selection.
Currencystring · nullable
The currency setting in which the shipping option is to be used.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Typeenum
Provider type. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
TaxIdinteger
The tax ID that is applied to the shipping cost.
TaxNeverAppliesboolean
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system. Available for all types except User Defined.
ChosenShippingProviderServicesarray of integers
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system. Available for all types except User Defined.
ProviderSettingsobject · nullable
Additional serialized settings (usually a JSON or XML string).
Settingsobject
This is a set of rules and restrictions that determine when and how a shipping method appears in the cart.
Response
Idinteger
Internal system ID of the service. Read-only.
Namestring · nullable
The descriptive name of the shipping option that will be displayed in the shopping cart shipping dropdown.
Pricenumber
A per order value representing the starting/base price of the shipping option (further values as per below 'Settings' may be calculated along with this price).
IsEnabledboolean
Is this method active for customer selection.
CurrencyCountrystring · nullable
The currency-and-country market this shipping option is offered in.
Currencystring · nullable
The currency setting in which the shipping option is to be used.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Typeenum
Numeric identifier of the service category. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
TaxIdinteger
The tax ID that is applied to the shipping cost.
TaxNeverAppliesboolean
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ChosenShippingProviderServicesarray of integers
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ProviderSettingsobject · nullable
Additional serialized settings (usually a JSON or XML string).
ShippingSettingsobject
Rules and restrictions that govern when this option appears in the cart and how its cost is calculated, such as handling charges, weight and size limits, order-value ranges, and allowed customer types and countries.
Settingsobject
This is a set of rules and restrictions that determine when and how a shipping method appears in the cart.
curl -X POST "https://your-site.webinone.com/api/v2/admin/shipping-options" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Name":"Example","Price":0,"IsEnabled":false,"Currency":"USD","Country":"string","Type":"UserDefined","TaxId":1,"TaxNeverApplies":false,"ChosenShippingProviderServices":[0],"ProviderSettings":"string","Settings":{"HandlingCharge":0,"AdditionalPerItemHandlingCharge":0,"MinWeight":10,"MaxWeight":10,"MinWidth":0,"MaxWidth":0,"MinHeight":0,"MaxHeight":0,"MinDepth":0,"MaxDepth":0,"MinOrderPrice":0,"MaxOrderPrice":0,"AllowedCustomersTypes":[0],"LimitDeliveryFollowingCountries":["string"],"ExcludeShippingForCatalogs":[0]}}'
Response · 200
{
  "Id": 1,
  "Name": "Example",
  "Price": 0,
  "IsEnabled": false,
  "CurrencyCountry": "USD",
  "Currency": "USD",
  "Country": "string",
  "Type": "UserDefined",
  "TaxId": 1,
  "TaxNeverApplies": false,
  "ChosenShippingProviderServices": [
    0
  ],
  "ProviderSettings": "string",
  "ShippingSettings": {
    "Services": [
      {
        "Id": 1,
        "Code": "string",
        "DisplayName": "Example",
        "Description": "string",
        "Type": 0
      }
    ],
    "AccountTypes": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ],
    "DeliveryConfirmations": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ],
    "PackageType": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ]
  },
  "Settings": {
    "HandlingCharge": 0,
    "AdditionalPerItemHandlingCharge": 0,
    "MinWeight": 10,
    "MaxWeight": 10,
    "MinWidth": 0,
    "MaxWidth": 0,
    "MinHeight": 0,
    "MaxHeight": 0,
    "MinDepth": 0,
    "MaxDepth": 0,
    "MinOrderPrice": 0,
    "MaxOrderPrice": 0,
    "AllowedCustomersTypes": [
      0
    ],
    "LimitDeliveryFollowingCountries": [
      "string"
    ],
    "ExcludeShippingForCatalogs": [
      0
    ]
  }
}
GET/api/v2/admin/shipping-options/{id}#

Retrieves a single shipping option

Parameters
idinteger · pathrequired
Shipping option id.
Response
Idinteger
Internal system ID of the service. Read-only.
Namestring · nullable
The descriptive name of the shipping option that will be displayed in the shopping cart shipping dropdown.
Pricenumber
A per order value representing the starting/base price of the shipping option (further values as per below 'Settings' may be calculated along with this price).
IsEnabledboolean
Is this method active for customer selection.
CurrencyCountrystring · nullable
The currency-and-country market this shipping option is offered in.
Currencystring · nullable
The currency setting in which the shipping option is to be used.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Typeenum
Numeric identifier of the service category. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
TaxIdinteger
The tax ID that is applied to the shipping cost.
TaxNeverAppliesboolean
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ChosenShippingProviderServicesarray of integers
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ProviderSettingsobject · nullable
Additional serialized settings (usually a JSON or XML string).
ShippingSettingsobject
Rules and restrictions that govern when this option appears in the cart and how its cost is calculated, such as handling charges, weight and size limits, order-value ranges, and allowed customer types and countries.
Settingsobject
This is a set of rules and restrictions that determine when and how a shipping method appears in the cart.
curl "https://your-site.webinone.com/api/v2/admin/shipping-options/1" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Id": 1,
  "Name": "Example",
  "Price": 0,
  "IsEnabled": false,
  "CurrencyCountry": "USD",
  "Currency": "USD",
  "Country": "string",
  "Type": "UserDefined",
  "TaxId": 1,
  "TaxNeverApplies": false,
  "ChosenShippingProviderServices": [
    0
  ],
  "ProviderSettings": "string",
  "ShippingSettings": {
    "Services": [
      {
        "Id": 1,
        "Code": "string",
        "DisplayName": "Example",
        "Description": "string",
        "Type": 0
      }
    ],
    "AccountTypes": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ],
    "DeliveryConfirmations": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ],
    "PackageType": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ]
  },
  "Settings": {
    "HandlingCharge": 0,
    "AdditionalPerItemHandlingCharge": 0,
    "MinWeight": 10,
    "MaxWeight": 10,
    "MinWidth": 0,
    "MaxWidth": 0,
    "MinHeight": 0,
    "MaxHeight": 0,
    "MinDepth": 0,
    "MaxDepth": 0,
    "MinOrderPrice": 0,
    "MaxOrderPrice": 0,
    "AllowedCustomersTypes": [
      0
    ],
    "LimitDeliveryFollowingCountries": [
      "string"
    ],
    "ExcludeShippingForCatalogs": [
      0
    ]
  }
}
PUT/api/v2/admin/shipping-options/{id}#

Updates an existing shipping option

Parameters
idinteger · pathrequired
Existent shipping option id.
Body parameters
Namestringrequired
The descriptive name of the shipping option that will be displayed in the shopping cart shipping dropdown.
Pricenumber
A per order value representing the starting/base price of the shipping option (further values as per below 'Settings' may be calculated along with this price).
IsEnabledboolean
Is this method active for customer selection.
Currencystring · nullable
The currency setting in which the shipping option is to be used.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Typeenum
Provider type. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
TaxIdinteger
The tax ID that is applied to the shipping cost.
TaxNeverAppliesboolean
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system. Available for all types except User Defined.
ChosenShippingProviderServicesarray of integers
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system. Available for all types except User Defined.
ProviderSettingsobject · nullable
Additional serialized settings (usually a JSON or XML string).
Settingsobject
This is a set of rules and restrictions that determine when and how a shipping method appears in the cart.
Response
Idinteger
Internal system ID of the service. Read-only.
Namestring · nullable
The descriptive name of the shipping option that will be displayed in the shopping cart shipping dropdown.
Pricenumber
A per order value representing the starting/base price of the shipping option (further values as per below 'Settings' may be calculated along with this price).
IsEnabledboolean
Is this method active for customer selection.
CurrencyCountrystring · nullable
The currency-and-country market this shipping option is offered in.
Currencystring · nullable
The currency setting in which the shipping option is to be used.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Typeenum
Numeric identifier of the service category. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
TaxIdinteger
The tax ID that is applied to the shipping cost.
TaxNeverAppliesboolean
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ChosenShippingProviderServicesarray of integers
When checked, tax calculations will not be applied to this Shipping Option within the eCommerce system.
ProviderSettingsobject · nullable
Additional serialized settings (usually a JSON or XML string).
ShippingSettingsobject
Rules and restrictions that govern when this option appears in the cart and how its cost is calculated, such as handling charges, weight and size limits, order-value ranges, and allowed customer types and countries.
Settingsobject
This is a set of rules and restrictions that determine when and how a shipping method appears in the cart.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/shipping-options/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Name":"Example","Price":0,"IsEnabled":false,"Currency":"USD","Country":"string","Type":"UserDefined","TaxId":1,"TaxNeverApplies":false,"ChosenShippingProviderServices":[0],"ProviderSettings":"string","Settings":{"HandlingCharge":0,"AdditionalPerItemHandlingCharge":0,"MinWeight":10,"MaxWeight":10,"MinWidth":0,"MaxWidth":0,"MinHeight":0,"MaxHeight":0,"MinDepth":0,"MaxDepth":0,"MinOrderPrice":0,"MaxOrderPrice":0,"AllowedCustomersTypes":[0],"LimitDeliveryFollowingCountries":["string"],"ExcludeShippingForCatalogs":[0]}}'
Response · 200
{
  "Id": 1,
  "Name": "Example",
  "Price": 0,
  "IsEnabled": false,
  "CurrencyCountry": "USD",
  "Currency": "USD",
  "Country": "string",
  "Type": "UserDefined",
  "TaxId": 1,
  "TaxNeverApplies": false,
  "ChosenShippingProviderServices": [
    0
  ],
  "ProviderSettings": "string",
  "ShippingSettings": {
    "Services": [
      {
        "Id": 1,
        "Code": "string",
        "DisplayName": "Example",
        "Description": "string",
        "Type": 0
      }
    ],
    "AccountTypes": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ],
    "DeliveryConfirmations": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ],
    "PackageType": [
      {
        "DisplayName": "Example",
        "Value": "string"
      }
    ]
  },
  "Settings": {
    "HandlingCharge": 0,
    "AdditionalPerItemHandlingCharge": 0,
    "MinWeight": 10,
    "MaxWeight": 10,
    "MinWidth": 0,
    "MaxWidth": 0,
    "MinHeight": 0,
    "MaxHeight": 0,
    "MinDepth": 0,
    "MaxDepth": 0,
    "MinOrderPrice": 0,
    "MaxOrderPrice": 0,
    "AllowedCustomersTypes": [
      0
    ],
    "LimitDeliveryFollowingCountries": [
      "string"
    ],
    "ExcludeShippingForCatalogs": [
      0
    ]
  }
}
DELETE/api/v2/admin/shipping-options/{id}#

Deletes an existing shipping option

Parameters
idinteger · pathrequired
Existent shipping option id.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/shipping-options/1" \
  -H "Authorization: Bearer <token>"
GET/api/v2/admin/shipping-options/countries#

Retrieves a list of countries

Response
Idstring · nullable
Internal system ID of the service. Read-only.
Countrystring · nullable
The currency setting in which the shipping option is to be used.
Abbreviationstring · nullable
Standard two-letter code for the country (for example, US or AU).
curl "https://your-site.webinone.com/api/v2/admin/shipping-options/countries" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  {
    "Id": "string",
    "Country": "string",
    "Abbreviation": "string"
  }
]
GET/api/v2/admin/shipping-options/provider-services#

Retrieves a list of external shipping provider services

Parameters
Typestring · queryrequired
Type.
Response
Idinteger
Internal system ID of the service. Read-only.
Codestring · nullable
Technical code (e.g. Dhl_express or np_warehouse) that is sent to the provider's API.
DisplayNamestring · nullable
Display name of the shipping option provider service, shown to users.
Descriptionstring · nullable
Description of conditions.
Typeenum
Numeric identifier of the service category. Possible values: UserDefined, AustraliaPost, FedEx, UPS, USPS, DHL, CanadaPost, NewZealandPost.Possible values: UserDefinedAustraliaPostFedExUPSUSPSDHLCanadaPostNewZealandPost
curl "https://your-site.webinone.com/api/v2/admin/shipping-options/provider-services" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  {
    "Id": 1,
    "Code": "string",
    "DisplayName": "Example",
    "Description": "string",
    "Type": "UserDefined"
  }
]
GET/api/v2/admin/shipping-options/provider-settings#

Retrieves a list of shipping provider settings

Parameters
Typestring · queryrequired
Type.
Response
ProviderSettingsTemplateobject · nullable
Template describing the credential and configuration fields required by the selected integrated shipping provider, used to render the provider's settings form.
AccountTypesarray of objects
This is an array of specific delivery types.
DeliveryConfirmationsarray of objects
Methods of verifying that the customer has received the goods.
PackageTypearray of objects
Allowed shipment formats.
curl "https://your-site.webinone.com/api/v2/admin/shipping-options/provider-settings" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "ProviderSettingsTemplate": "string",
  "AccountTypes": [
    {
      "DisplayName": "Example",
      "Value": "string"
    }
  ],
  "DeliveryConfirmations": [
    {
      "DisplayName": "Example",
      "Value": "string"
    }
  ],
  "PackageType": [
    {
      "DisplayName": "Example",
      "Value": "string"
    }
  ]
}