Customs Information
Get Customs Information
GET https://api.bigcommerce.com/stores/{store_hash}/v3/shipping/products/customs-informationRequest
Get customs information for products.
This list can be filtered to return customs information objects specific to a list of requested product_ids. This is achieved by appending the query string ?product_id:in=4,5,6
to the resource /shipping/products/customs-information
.
GET /shipping/products/customs-information?product_id:in=4,5,6
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id:in in query - arrayA comma-separated list of product IDs. For more information, see Filtering.Type: array[integer]
- page in query - integer
- limit in query - integer
example
Response
Body
dataarray[object]
example
Delete Customs Information
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/shipping/products/customs-informationRequest
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- product_id:in in query - arrayrequiredType: array[integer]
example
Response
Upsert Customs Information
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/shipping/products/customs-informationRequest
Creates and updates product customs information.
This is a batch operation where the creation of multiple customs information objects can be done with one PUT
request.
Limits
- Limit of 50 customs information objects per
PUT
request.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
product_idinteger
requiredThe product ID to which the customs information data applies.Example: 77country_of_originstring
requiredThe country of manufacture, production, or growth represented in ISO 3166-1 alpha-2 format.Example: UScommodity_descriptionstring
requiredDescription that provides information for customs to identify and verify the shapes, physical characteristics, and packaging of each shipment.>= 0 characters<= 100 charactersExample: Baseball capsinternational_shippingboolean
requiredFlag to determine whether this product will be shipped internationally.Allowed: true | false
Example: truehs_codesobject
requiredKey-value pairs that are commonly used in the following form:
countryISO2: '/^[0-9A-Za-z]{6,14}$/'
This key-value pair represents a country and the associated
hs_code
that applies to that country.You can also use the
ALL
key in place of an ISO2 key to specify that thehs_code
applies to all countries. TheALL
key can be combined with other countries in thehs_code
object.Example: {"ALL":"501000","CA":"508313","US":"641000","AU":"817355"}
Example
Response
Body
dataarray[object]