Postman collection
Customs Write

pixiSetItemCustomsInfo

Updates the customs data (tariff number, country of origin, tariff text, previous procedure) and the weight and dimensions of an item.

Updates customs-related fields and physical dimensions of one item, identified by ItemKey.

  1. If CustomsCountryOfOriginISO2 is passed and not empty, the two-letter ISO code is looked up in the country table. The Pixi country code (CntCode) found there replaces the value of CustomsCountryOfOrigin.
  2. The item is updated. Only parameters that are not NULL overwrite the stored value. A parameter that is left out or passed as NULL keeps the current value.
  3. The update runs only if at least one passed value differs from the stored value, or if a stored value is NULL and a value is passed.
  4. On an update, UpdateEmp is set to <UserName> (API) and UpdateDate is set to the current date and time.

The call returns one status row:

  • 200 / OK: the item was changed.
  • 200 / Accepted - no changes needed: the item exists, but all passed values already match the stored values.
  • 401 / Not found: no item with this ItemKey exists.

Notes

  • Weight, Heigth, Width and Length are declared as plain NUMERIC. Without precision and scale this means numeric(18,0), so decimal places are rounded away before the values are stored. Pass whole numbers in the unit Pixi uses for these fields.
  • The parameter for the height is spelled Heigth, as is the column.
  • A field cannot be reset to NULL with this call, because NULL means "keep the current value". An empty string, however, is stored as an empty string.
  • If CustomsCountryOfOriginISO2 matches no country, the lookup assigns nothing. In that case the value passed in CustomsCountryOfOrigin is used, or the stored value is kept if that parameter is NULL as well. No error is returned.
  • The code returns 401 for a missing item, not 404.
  • The update uses ROWLOCK. The country lookup and the existence check read with NOLOCK.
  • If nothing changes, UpdateEmp and UpdateDate are not touched.

Tables used

Items · Write Countries · Read
SQL object:
dbo.pipiSetItemCustomsInfo
Updated at 2026-10-30