post

/variant/update-country-shipping

Updates shipping price for product variation for specified countries. This method is simplified replacement for /warehouse/* methods to add per country shipping price for product variation.

Returns

If the request was successful the API will return an HTTP status code of 200 and a status code of 0.

Typical Use Case

  1. To get current shipping prices for all product’s variants use the Retrieve Country Shipping endpoint.
  2. To set new prices for a particular product variant use this method /variant/update-country-shipping.

Request Body

Schema
object
sku
string

The unique identifier that your system uses to recognize this variation.
Acceptable: “HSC0424PP”, “112123343455432”.
Unacceptable: “2”, “a”.

required
access_token
string

Your access token

required
string

List of per country shipping prices.

Key: two-letter country code from ISO 3166-1. Possible values: AD, AE, AL, AM, AR, AT, AU, AX, AZ, BA, BE, BG, BH, BO, BR, BY, BZ, CA, CH, CL, CN, CO, CR, CU, CY, CZ, DE, DK, EC, EE, EG, ES, FI, FO, FR, GB, GE, GF, GG, GI, GL, GP, GR, GT, GY, HK, HN, HR, HU, IE, IL, IM, IN, IQ, IR, IS, IT, JE, JO, JP, KG, KP, KR, KW, KZ, LB, LI, LR, LT, LU, LV, MA, MC, MD, ME, MK, MQ, MT, MX, MY, NI, NL, NO, OM, PA, PE, PL, PS, PT, PY, QA, RO, RS, RU, SA, SD, SE, SG, SI, SK, SM, SR, SS, SV, SY, TH, TJ, TM, TR, TW, UA, US, UY, UZ, VA, VE, YE, ZA.

Value: the shipping price to specified country.

1 validation
currency
string

Currency code for prices from ISO 4217

2 validations

Responses

Schema
object
code
number

Contains the status code for the request, 0 means success and any other number implies a failure

1 validation + required
message
string

Sometimes will store a human readable status message to aid in debugging. It is generally used only for errors

required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
host