SKUs
Last updated
Last updated
GET
https://app.hive.app/merchant_api/v1/skus
Returns SKUs ordered by descending creation time.
Name | Type | Description |
---|---|---|
POST
https://app.hive.app/merchant_api/v1/skus
PATCH
https://app.hive.app/merchant_api/v1/skus/{id}
POST
https://app.hive.app/merchant_api/v1/skus/bulk_upsert
For each item in the provided list, it creates an SKU if it does not exist yet on our side, updates if it already exists.
The endpoint accepts up to 100 items in the skus
key of the request body. At least one should be provided. Each item should have the same structure as in the POST /skus
endpoint. All fields except name
and merchant_sku_id
are optional.
If any field of an existing SKU already has a value set on our side (e.g. cost_in_cents=100
) and you omit that field in the request, it will be set to null
on our side. However, if batch_tracking_enabled
is omitted in the request, its existing value will remain unchanged. To update batch_tracking_enabled
, you must include it explicitly (true
/false
) in the request body.
DELETE
https://app.hive.app/merchant_api/v1/skus/{id}
Marks an active SKU as "deleted". Will be set back to "active" on next create, update or batch upsert of that sku.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
merchant_sku_ids[]
String[]
Allow to filters skus by merchant_sku_id
created_at[lt]
ISO8601 datetime
Return results where the created_at
field is less than this value.
created_at[lte]
ISO8601 datetime
Return results where the created_at
field is less than or equal to this value.
created_at[gt]
ISO8601 datetime
Return results where the created_at
field is greater than this value.
created_at[gte]
ISO8601 datetime
Return results where the created_at
field is greater than or equal to this value.
name*
String
A human-readable name or title
merchant_sku_id*
String
An ID that uniquely identifies this SKU
cost_in_cents
Integer
The cost (not price) of this SKU
country_code_of_origin
String
2-letter ISO 3166-1 code of country of origin
hs_code
String
Harmonized System code
weight_in_kg
Float
Weight in kilograms
image_url
String
Image of the product, must be publicly accessible.
barcode
String
The SKU barcode
batch_tracking_enabled
Boolean
Enables inventory tracking per batch (defaults to false if omitted)
id*
Integer
The (Hive) ID of the SKU to update
merchant_sku_id
String
An ID that uniquely identifies this SKU
name
String
A human-readable name or title
cost_in_cents
Integer
The cost (not price) of this SKU
country_code_of_origin
String
2-letter ISO 3166-1 code of country of origin
hs_code
String
Harmonized System code
weight_in_kg
Float
Weight in kilograms
image_url
String
Image of the product, must be publicly accessible.
barcode
String
The SKU barcode
batch_tracking_enabled
Boolean
Enables inventory tracking per batch
skus*
Object[]
List of SKUs for upsert
id*
Integer
The (Hive) ID of the SKU to delete