# Partially update a SKU by merchant SKU code Partially updates a SKU using the merchant's SKU code. Endpoint: PATCH /skus/by_sku_code Version: 2.0.0 Security: BearerAuth ## Query parameters: - `sku_code` (string, required) ## Request fields (application/json): - `barcode` (string,null) The SKU barcode - `batch_tracking_enabled` (boolean) Enables inventory tracking per batch (defaults to false if omitted) - `cost_in_cents` (integer,null) The cost (not price) of this SKU - `country_code_of_origin` (string,null) 2-letter [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of country of origin - `hs_code` (string,null) [Harmonized System](https://en.wikipedia.org/wiki/Harmonized_System) code - `image_url` (string,null) Image of the product, must be publicly accessible. - `name` (string) A human-readable name or title - `sku_code` (string) An ID that uniquely identifies this SKU - `weight_in_kg` (number) Weight in kilograms ## Response 200 fields (application/json): - `barcode` (string,null) Barcode of the SKU - `batch_tracking_enabled` (boolean, required) Whether batch tracking of this SKU is enabled - `cost_in_cents` (integer,null) Cost in cents (currency of the shop is implied) - `country_code_of_origin` (string,null) 2-letter [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of country of origin - `created_at` (string, required) When this SKU was created - `updated_at` (string, required) When this SKU was last updated - `dangerous_good` (boolean, required) Sku is a dangerous good - `fulfilled_by` (string, required) Who is fulfilling this SKU. Possible values: - hive: Fulfilled by Hive - new: Default value for newly imported SKUs - other: Fulfilled by another party Enum: "hive", "new", "other" - `h_codes` (array, required) Hazardous good H Codes - `hazardous_good` (boolean, required) SKU is a hazardous good - `hs_code` (string,null) The general [Harmonized System (HS) code](https://en.wikipedia.org/wiki/Harmonized_System) for the SKU - `id` (integer, required) Hive unique identifier for this SKU - `image_url` (string,null) Publicly accessible URL of an image for this SKU - `inventory` (object, required) - `inventory.available` (integer, required) Quantity available for sale (stocked minus reserved) - `inventory.reserved` (integer, required) Quantity reserved/committed for orders - `inventory.stocked` (integer, required) Quantity in the warehouse (available plus reserved) - `inventory_batches` (array, required) Current inventory per batch - `inventory_batches.expiry_date` (string,null, required) Expiration date of the batch (ISO8601 date, read-only) - `inventory_batches.id` (integer, required) Hive unique ID for the batch (read-only) - `inventory_batches.name` (string, required) Name of the batch (read-only) - `inventory_batches.stocked_quantities` (array, required) Inventory per warehouse for this batch (see SkuInventoryBatchQuantityPerWarehouse) (read-only) - `inventory_batches.stocked_quantities.stocked` (integer, required) Quantity in the warehouse for this batch in this warehouse - `inventory_batches.stocked_quantities.warehouse_id` (integer, required) Hive's unique warehouse ID - `inventory_batches.tracking_code` (string, required) Tracking code (read-only) - `inventory_per_warehouse` (array, required) Current inventory per warehouse - `name` (string, required) Name of this SKU - `sku_code` (string, required) SKU code - visible in the UI - `status` (string, required) Status of this SKU. Possible values: - active: SKU is active and available for orders - deleted: SKU is deleted and no longer available Enum: "active", "deleted" - `un_numbers` (array, required) Dangerous good UN Numbers - `weight_in_kg` (number, required) Weight of SKU in kilograms ## Response 400 fields (application/json): - `errors` (any, required) Error information. Can be: - Object with field names as keys and error arrays as values (for validation errors) - Array of error objects with message, code, and optional metadata - Array of strings (for simple error messages) - `success` (boolean) Indicates if the request was successful - `title` (string) A brief, human-readable message about the error - `status` (integer) HTTP status code ## Response 401 fields (application/json): - `errors` (any, required) Error information. Can be: - Object with field names as keys and error arrays as values (for validation errors) - Array of error objects with message, code, and optional metadata - Array of strings (for simple error messages) - `success` (boolean) Indicates if the request was successful - `title` (string) A brief, human-readable message about the error - `status` (integer) HTTP status code ## Response 403 fields (application/json): - `errors` (any, required) Error information. Can be: - Object with field names as keys and error arrays as values (for validation errors) - Array of error objects with message, code, and optional metadata - Array of strings (for simple error messages) - `success` (boolean) Indicates if the request was successful - `title` (string) A brief, human-readable message about the error - `status` (integer) HTTP status code ## Response 404 fields (application/json): - `errors` (any, required) Error information. Can be: - Object with field names as keys and error arrays as values (for validation errors) - Array of error objects with message, code, and optional metadata - Array of strings (for simple error messages) - `success` (boolean) Indicates if the request was successful - `title` (string) A brief, human-readable message about the error - `status` (integer) HTTP status code ## Response 422 fields (application/json): - `errors` (any, required) Error information. Can be: - Object with field names as keys and error arrays as values (for validation errors) - Array of error objects with message, code, and optional metadata - Array of strings (for simple error messages) - `success` (boolean) Indicates if the request was successful - `title` (string) A brief, human-readable message about the error - `status` (integer) HTTP status code ## Response 429 fields (application/json): - `errors` (any, required) Error information. Can be: - Object with field names as keys and error arrays as values (for validation errors) - Array of error objects with message, code, and optional metadata - Array of strings (for simple error messages) - `success` (boolean) Indicates if the request was successful - `title` (string) A brief, human-readable message about the error - `status` (integer) HTTP status code