Customs Object

A customs object is used to represent customs information for international shipments.

Properties

This table lists the properties of a customs object and identifies those properties that are required. The nullable column indicates which properties may be null when the object is provided as an argument to one of your methods, and the required column indicates which properties are required when the object is returned from one of your methods.

NameTypeNullable?Description
customsobject

Customs declarations for this package.

customs.nonDeliveryOptionstring

Indicates what should be done if the package cannot be delivered. If undefined, the default behavior of the receiving country's customs department applies, which may incur charges. Valid values include the following:

  • return - Return to sender.
  • abandon - Treat as abandoned.
customs.contentsobject[]

Describes the contents of the package for customs purposes.

Note that Customs contents may not correspond one-to-one with the package contents. Package contents usually include one item per unique merchandise SKU e.g. one red t-shirt and one blue t-shirt), whereas customs contents are often grouped by product type (e.g. two t-shirts). In addition, some package contents don't need to be declared for customs purposes.

customs.contents[].typestring

The customs type category. Valid values include the following:

  • gift - The package contains a gift
  • documents - The package contains documents.
  • merchandise - The package contains merchandise.
  • returned_goods - The package is a returned shipment.
  • commercial_sample - The package contains a commercial sample, such as a flooring sample.
  • humanitarian_donation - The package contains a donation.
  • other - The package contains items that fall outside the other categories.
customs.contents[].skustring

The Stock Keeping Unit. This string will not contain newline characters.

customs   .contents[]   .descriptionstring

A description of the item. Usually required if type is other. This string will not contain newline characters.

customs   .contents[]   .quantityobject

The quantity of items in the package.

customs   .contents[]   .quantity   .valuenumber

The value of the quantity. The minimum value is 1.

customs   .contents[]   .unitValueobject

The monetary value of each unit in the package.

customs   .contents[]   .unitValue   .valuenumber

The amount of this value.

customs   .contents[]   .unitValue   .currencystring

The currency that the value represents.

customs   .contents[]   .countryOfOrigin

country code string

The ISO 3166 country code for the country of origin. This is usually the same as countryOfManufacture, but some countries distinguish between the two for certain products.

customs   .contents[]   .countryOfManufacture

country code string

The ISO 3166 country code for the country where the item was manufactured.

customs   .contents[]   .harmonizedTariffCodestring

The Harmonized Tariff Code for the item. This string must not contain newline characters.

customs   .buyerShippingAmountPaidobject

Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper.

customs   .buyerShippingAmountPaid   .valuenumber

The amount of this value.

customs   .buyerShippingAmountPaid   .currencystring

The currency that the value represents.

customs.dutiesPaidobject

The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill duties to sender) shipments.

customs.dutiesPaid.valuenumber

The amount of this value.

customs   .dutiesPaid   .currencystring

The currency that the value represents.