Skip to content

Haravan — Sản phẩm ​

Danh sách sản phẩm (List products) — haravan.list_products ​

List or find products by SKU, barcode, vendor, type or collection.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
skuSKUstringkhôngExact SKU.
barcodeMã vạchstringkhôngExact barcode.
vendorNhà cung cấpstringkhôngVendor or brand.
handleĐường dẫnstringkhôngURL handle.
product_typeLoại sản phẩmstringkhôngProduct type.
collection_idNhómintegerkhôngOnly products in this collection. Min 1.
since_idSau mã sản phẩmintegerkhôngOnly products after this id. Min 1.
fieldsTrường trả vềstringkhôngComma-separated fields to return.
pageTrangintegerkhôngPage number, from 1. Min 1.
limitSố kết quả mỗi trangintegerkhôngItems per page (1-50, default 50). Min 1. Max 50.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
productsDanh sách sản phẩmarray of objectProducts.
products[].idintegerProduct id.
products[].titlestringProduct name.
products[].handlestringURL handle, generated from the title.
products[].body_htmlstring | nullDescription, HTML.
products[].vendorstring | nullBrand or vendor.
products[].product_typestring | nullProduct type.
products[].tagsstring | nullComma-separated tags.
products[].published_atstring | nullWhen the product was published (ISO 8601); null when unpublished.
products[].published_scopestring | nullWhere it is published: web (Online Store), pos (Point of Sale) or global (both).
products[].template_suffixstring | nullSuffix of the Liquid template of the page.
products[].only_hide_from_listbooleanHidden from search and listing pages.
products[].not_allow_promotionbooleanPromotions and coupons do not apply.
products[].optionsarray of objectProduct options, e.g. Size and Color (up to 3).
products[].options[].idintegerOption id.
products[].options[].product_idintegerProduct the option belongs to.
products[].options[].namestringOption name, e.g. Size or Color.
products[].options[].positionintegerPosition among the product's options.
products[].variantsarray of objectVariants of the product.
products[].variants[].idintegerVariant id.
products[].variants[].product_idintegerProduct the variant belongs to.
products[].variants[].titlestringVariant name, e.g. 'Đen / S'.
products[].variants[].skustring | nullStock keeping unit.
products[].variants[].barcodestring | nullBarcode, UPC or ISBN.
products[].variants[].pricenumberPrice, VND.
products[].variants[].compare_at_pricenumber | nullPrice before discount, VND.
products[].variants[].gramsnumberWeight in grams.
products[].variants[].option1string | nullValue of option 1, e.g. color.
products[].variants[].option2string | nullValue of option 2, e.g. size; may be empty.
products[].variants[].option3string | nullValue of option 3; may be empty.
products[].variants[].positionintegerPosition among the product's variants.
products[].variants[].image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
products[].variants[].inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
products[].variants[].inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
products[].variants[].inventory_quantityintegerItems in stock.
products[].variants[].fulfillment_servicestring | nullFulfillment service; null.
products[].variants[].requires_shippingbooleanWhether the customer needs a shipping address.
products[].variants[].taxablebooleanWhether tax is charged.
products[].variants[].created_atstringWhen it was created (ISO 8601).
products[].variants[].updated_atstringWhen it was last updated (ISO 8601).
products[].imagesarray of objectImages of the product.
products[].images[].idintegerImage id.
products[].images[].product_idintegerProduct the image belongs to.
products[].images[].positionintegerOrder among the product's images; 1 is the main image.
products[].images[].srcstringURL of the image.
products[].images[].filenamestringFile name of the image; not sent by every endpoint.
products[].images[].variant_idsarray of integer | nullIds of the variants that show this image; null in the single-image reference sample.
products[].images[].created_atstringWhen it was created (ISO 8601).
products[].images[].updated_atstringWhen it was last updated (ISO 8601).
products[].created_atstringWhen it was created (ISO 8601).
products[].updated_atstringWhen it was last updated (ISO 8601).

Xem sản phẩm (Get product) — haravan.get_product ​

Get one product with its variants, prices, SKUs and images.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
productSản phẩmobjectThe product.
product.idintegerProduct id.
product.titlestringProduct name.
product.handlestringURL handle, generated from the title.
product.body_htmlstring | nullDescription, HTML.
product.vendorstring | nullBrand or vendor.
product.product_typestring | nullProduct type.
product.tagsstring | nullComma-separated tags.
product.published_atstring | nullWhen the product was published (ISO 8601); null when unpublished.
product.published_scopestring | nullWhere it is published: web (Online Store), pos (Point of Sale) or global (both).
product.template_suffixstring | nullSuffix of the Liquid template of the page.
product.only_hide_from_listbooleanHidden from search and listing pages.
product.not_allow_promotionbooleanPromotions and coupons do not apply.
product.optionsarray of objectProduct options, e.g. Size and Color (up to 3).
product.options[].idintegerOption id.
product.options[].product_idintegerProduct the option belongs to.
product.options[].namestringOption name, e.g. Size or Color.
product.options[].positionintegerPosition among the product's options.
product.variantsarray of objectVariants of the product.
product.variants[].idintegerVariant id.
product.variants[].product_idintegerProduct the variant belongs to.
product.variants[].titlestringVariant name, e.g. 'Đen / S'.
product.variants[].skustring | nullStock keeping unit.
product.variants[].barcodestring | nullBarcode, UPC or ISBN.
product.variants[].pricenumberPrice, VND.
product.variants[].compare_at_pricenumber | nullPrice before discount, VND.
product.variants[].gramsnumberWeight in grams.
product.variants[].option1string | nullValue of option 1, e.g. color.
product.variants[].option2string | nullValue of option 2, e.g. size; may be empty.
product.variants[].option3string | nullValue of option 3; may be empty.
product.variants[].positionintegerPosition among the product's variants.
product.variants[].image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
product.variants[].inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
product.variants[].inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
product.variants[].inventory_quantityintegerItems in stock.
product.variants[].fulfillment_servicestring | nullFulfillment service; null.
product.variants[].requires_shippingbooleanWhether the customer needs a shipping address.
product.variants[].taxablebooleanWhether tax is charged.
product.variants[].created_atstringWhen it was created (ISO 8601).
product.variants[].updated_atstringWhen it was last updated (ISO 8601).
product.imagesarray of objectImages of the product.
product.images[].idintegerImage id.
product.images[].product_idintegerProduct the image belongs to.
product.images[].positionintegerOrder among the product's images; 1 is the main image.
product.images[].srcstringURL of the image.
product.images[].filenamestringFile name of the image; not sent by every endpoint.
product.images[].variant_idsarray of integer | nullIds of the variants that show this image; null in the single-image reference sample.
product.images[].created_atstringWhen it was created (ISO 8601).
product.images[].updated_atstringWhen it was last updated (ISO 8601).
product.created_atstringWhen it was created (ISO 8601).
product.updated_atstringWhen it was last updated (ISO 8601).

Tạo sản phẩm (Create product) — haravan.create_product ​

Create a product with its variants and images.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhôngcom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
productSản phẩmobjectcóThe product. Other Haravan product fields are also accepted.
product.titlestringcóProduct name.
product.body_htmlstringkhôngDescription, HTML.
product.vendorstringkhôngBrand or vendor.
product.product_typestringkhôngProduct type.
product.tagsstringkhôngComma-separated tags.
product.publishedbooleankhôngVisible on the store.
product.variantsarray of objectkhôngVariants: sku, price, option1..3.
product.variants[].titlestringkhôngVariant name, e.g. 'Đỏ / M'.
product.variants[].skustringkhôngStock keeping unit.
product.variants[].barcodestringkhôngBarcode.
product.variants[].pricenumberkhôngPrice, VND.
product.variants[].compare_at_pricenumberkhôngPrice before discount, VND.
product.variants[].option1stringkhôngValue of option 1, e.g. color.
product.variants[].option2stringkhôngValue of option 2, e.g. size.
product.variants[].option3stringkhôngValue of option 3.
product.variants[].weightnumberkhôngWeight in grams.
product.imagesarray of objectkhôngImages: {src} with an https URL.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
productSản phẩmobjectThe product.
product.idintegerProduct id.
product.titlestringProduct name.
product.handlestringURL handle, generated from the title.
product.body_htmlstring | nullDescription, HTML.
product.vendorstring | nullBrand or vendor.
product.product_typestring | nullProduct type.
product.tagsstring | nullComma-separated tags.
product.published_atstring | nullWhen the product was published (ISO 8601); null when unpublished.
product.published_scopestring | nullWhere it is published: web (Online Store), pos (Point of Sale) or global (both).
product.template_suffixstring | nullSuffix of the Liquid template of the page.
product.only_hide_from_listbooleanHidden from search and listing pages.
product.not_allow_promotionbooleanPromotions and coupons do not apply.
product.optionsarray of objectProduct options, e.g. Size and Color (up to 3).
product.options[].idintegerOption id.
product.options[].product_idintegerProduct the option belongs to.
product.options[].namestringOption name, e.g. Size or Color.
product.options[].positionintegerPosition among the product's options.
product.variantsarray of objectVariants of the product.
product.variants[].idintegerVariant id.
product.variants[].product_idintegerProduct the variant belongs to.
product.variants[].titlestringVariant name, e.g. 'Đen / S'.
product.variants[].skustring | nullStock keeping unit.
product.variants[].barcodestring | nullBarcode, UPC or ISBN.
product.variants[].pricenumberPrice, VND.
product.variants[].compare_at_pricenumber | nullPrice before discount, VND.
product.variants[].gramsnumberWeight in grams.
product.variants[].option1string | nullValue of option 1, e.g. color.
product.variants[].option2string | nullValue of option 2, e.g. size; may be empty.
product.variants[].option3string | nullValue of option 3; may be empty.
product.variants[].positionintegerPosition among the product's variants.
product.variants[].image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
product.variants[].inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
product.variants[].inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
product.variants[].inventory_quantityintegerItems in stock.
product.variants[].fulfillment_servicestring | nullFulfillment service; null.
product.variants[].requires_shippingbooleanWhether the customer needs a shipping address.
product.variants[].taxablebooleanWhether tax is charged.
product.variants[].created_atstringWhen it was created (ISO 8601).
product.variants[].updated_atstringWhen it was last updated (ISO 8601).
product.imagesarray of objectImages of the product.
product.images[].idintegerImage id.
product.images[].product_idintegerProduct the image belongs to.
product.images[].positionintegerOrder among the product's images; 1 is the main image.
product.images[].srcstringURL of the image.
product.images[].filenamestringFile name of the image; not sent by every endpoint.
product.images[].variant_idsarray of integer | nullIds of the variants that show this image; null in the single-image reference sample.
product.images[].created_atstringWhen it was created (ISO 8601).
product.images[].updated_atstringWhen it was last updated (ISO 8601).
product.created_atstringWhen it was created (ISO 8601).
product.updated_atstringWhen it was last updated (ISO 8601).

Cập nhật sản phẩm (Update product) — haravan.update_product ​

Update a product's name, description, vendor, type, tags or visibility.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
productThông tin cập nhậtobjectcóFields to change.
product.titlestringkhôngProduct name.
product.body_htmlstringkhôngDescription, HTML.
product.vendorstringkhôngBrand or vendor.
product.product_typestringkhôngProduct type.
product.tagsstringkhôngComma-separated tags.
product.publishedbooleankhôngVisible on the store.
product.variantsarray of objectkhôngVariants: sku, price, option1..3.
product.variants[].titlestringkhôngVariant name, e.g. 'Đỏ / M'.
product.variants[].skustringkhôngStock keeping unit.
product.variants[].barcodestringkhôngBarcode.
product.variants[].pricenumberkhôngPrice, VND.
product.variants[].compare_at_pricenumberkhôngPrice before discount, VND.
product.variants[].option1stringkhôngValue of option 1, e.g. color.
product.variants[].option2stringkhôngValue of option 2, e.g. size.
product.variants[].option3stringkhôngValue of option 3.
product.variants[].weightnumberkhôngWeight in grams.
product.imagesarray of objectkhôngImages: {src} with an https URL.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
productSản phẩmobjectThe product.
product.idintegerProduct id.
product.titlestringProduct name.
product.handlestringURL handle, generated from the title.
product.body_htmlstring | nullDescription, HTML.
product.vendorstring | nullBrand or vendor.
product.product_typestring | nullProduct type.
product.tagsstring | nullComma-separated tags.
product.published_atstring | nullWhen the product was published (ISO 8601); null when unpublished.
product.published_scopestring | nullWhere it is published: web (Online Store), pos (Point of Sale) or global (both).
product.template_suffixstring | nullSuffix of the Liquid template of the page.
product.only_hide_from_listbooleanHidden from search and listing pages.
product.not_allow_promotionbooleanPromotions and coupons do not apply.
product.optionsarray of objectProduct options, e.g. Size and Color (up to 3).
product.options[].idintegerOption id.
product.options[].product_idintegerProduct the option belongs to.
product.options[].namestringOption name, e.g. Size or Color.
product.options[].positionintegerPosition among the product's options.
product.variantsarray of objectVariants of the product.
product.variants[].idintegerVariant id.
product.variants[].product_idintegerProduct the variant belongs to.
product.variants[].titlestringVariant name, e.g. 'Đen / S'.
product.variants[].skustring | nullStock keeping unit.
product.variants[].barcodestring | nullBarcode, UPC or ISBN.
product.variants[].pricenumberPrice, VND.
product.variants[].compare_at_pricenumber | nullPrice before discount, VND.
product.variants[].gramsnumberWeight in grams.
product.variants[].option1string | nullValue of option 1, e.g. color.
product.variants[].option2string | nullValue of option 2, e.g. size; may be empty.
product.variants[].option3string | nullValue of option 3; may be empty.
product.variants[].positionintegerPosition among the product's variants.
product.variants[].image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
product.variants[].inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
product.variants[].inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
product.variants[].inventory_quantityintegerItems in stock.
product.variants[].fulfillment_servicestring | nullFulfillment service; null.
product.variants[].requires_shippingbooleanWhether the customer needs a shipping address.
product.variants[].taxablebooleanWhether tax is charged.
product.variants[].created_atstringWhen it was created (ISO 8601).
product.variants[].updated_atstringWhen it was last updated (ISO 8601).
product.imagesarray of objectImages of the product.
product.images[].idintegerImage id.
product.images[].product_idintegerProduct the image belongs to.
product.images[].positionintegerOrder among the product's images; 1 is the main image.
product.images[].srcstringURL of the image.
product.images[].filenamestringFile name of the image; not sent by every endpoint.
product.images[].variant_idsarray of integer | nullIds of the variants that show this image; null in the single-image reference sample.
product.images[].created_atstringWhen it was created (ISO 8601).
product.images[].updated_atstringWhen it was last updated (ISO 8601).
product.created_atstringWhen it was created (ISO 8601).
product.updated_atstringWhen it was last updated (ISO 8601).

Xoá sản phẩm (Delete product) — haravan.delete_product ​

Delete a product and all its variants.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.

Field thêm: bỏ qua.

Output

Trả về object rỗng.

Thêm thẻ sản phẩm (Add product tags) — haravan.add_product_tags ​

Add tags to a product; existing tags are kept.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhôngcom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
tagsThẻstringcóComma-separated tags, e.g. 'sale,new'.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
tagsThẻstring | nullProduct tags after the change.

Xoá thẻ sản phẩm (Remove product tags) — haravan.remove_product_tags ​

Remove tags from a product.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
tagsThẻstringcóComma-separated tags, e.g. 'sale,new'.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
tagsThẻstring | nullProduct tags after the change.

Danh sách biến thể (List variants) — haravan.list_variants ​

List the variants (sizes, colors) of a product with price and SKU.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
pageTrangintegerkhôngPage number, from 1. Min 1.
limitSố kết quả mỗi trangintegerkhôngItems per page (1-50, default 50). Min 1. Max 50.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
variantsDanh sách biến thểarray of objectVariants of the product.
variants[].idintegerVariant id.
variants[].product_idintegerProduct the variant belongs to.
variants[].titlestringVariant name, e.g. 'Đen / S'.
variants[].skustring | nullStock keeping unit.
variants[].barcodestring | nullBarcode, UPC or ISBN.
variants[].pricenumberPrice, VND.
variants[].compare_at_pricenumber | nullPrice before discount, VND.
variants[].gramsnumberWeight in grams.
variants[].option1string | nullValue of option 1, e.g. color.
variants[].option2string | nullValue of option 2, e.g. size; may be empty.
variants[].option3string | nullValue of option 3; may be empty.
variants[].positionintegerPosition among the product's variants.
variants[].image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
variants[].inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
variants[].inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
variants[].inventory_quantityintegerItems in stock.
variants[].fulfillment_servicestring | nullFulfillment service; null.
variants[].requires_shippingbooleanWhether the customer needs a shipping address.
variants[].taxablebooleanWhether tax is charged.
variants[].created_atstringWhen it was created (ISO 8601).
variants[].updated_atstringWhen it was last updated (ISO 8601).

Xem biến thể (Get variant) — haravan.get_variant ​

Get one variant with price, SKU, barcode and stock quantity.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
variant_idMã biến thểintegercóVariant id. Min 1.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
variantBiến thểobjectThe variant.
variant.idintegerVariant id.
variant.product_idintegerProduct the variant belongs to.
variant.titlestringVariant name, e.g. 'Đen / S'.
variant.skustring | nullStock keeping unit.
variant.barcodestring | nullBarcode, UPC or ISBN.
variant.pricenumberPrice, VND.
variant.compare_at_pricenumber | nullPrice before discount, VND.
variant.gramsnumberWeight in grams.
variant.option1string | nullValue of option 1, e.g. color.
variant.option2string | nullValue of option 2, e.g. size; may be empty.
variant.option3string | nullValue of option 3; may be empty.
variant.positionintegerPosition among the product's variants.
variant.image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
variant.inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
variant.inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
variant.inventory_quantityintegerItems in stock.
variant.fulfillment_servicestring | nullFulfillment service; null.
variant.requires_shippingbooleanWhether the customer needs a shipping address.
variant.taxablebooleanWhether tax is charged.
variant.created_atstringWhen it was created (ISO 8601).
variant.updated_atstringWhen it was last updated (ISO 8601).

Tạo biến thể (Create variant) — haravan.create_variant ​

Add a variant (e.g. a new size or color) to a product.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhôngcom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
variantBiến thểobjectcóThe variant.
variant.titlestringkhôngVariant name, e.g. 'Đỏ / M'.
variant.skustringkhôngStock keeping unit.
variant.barcodestringkhôngBarcode.
variant.pricenumberkhôngPrice, VND.
variant.compare_at_pricenumberkhôngPrice before discount, VND.
variant.option1stringkhôngValue of option 1, e.g. color.
variant.option2stringkhôngValue of option 2, e.g. size.
variant.option3stringkhôngValue of option 3.
variant.weightnumberkhôngWeight in grams.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
variantBiến thểobjectThe variant.
variant.idintegerVariant id.
variant.product_idintegerProduct the variant belongs to.
variant.titlestringVariant name, e.g. 'Đen / S'.
variant.skustring | nullStock keeping unit.
variant.barcodestring | nullBarcode, UPC or ISBN.
variant.pricenumberPrice, VND.
variant.compare_at_pricenumber | nullPrice before discount, VND.
variant.gramsnumberWeight in grams.
variant.option1string | nullValue of option 1, e.g. color.
variant.option2string | nullValue of option 2, e.g. size; may be empty.
variant.option3string | nullValue of option 3; may be empty.
variant.positionintegerPosition among the product's variants.
variant.image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
variant.inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
variant.inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
variant.inventory_quantityintegerItems in stock.
variant.fulfillment_servicestring | nullFulfillment service; null.
variant.requires_shippingbooleanWhether the customer needs a shipping address.
variant.taxablebooleanWhether tax is charged.
variant.created_atstringWhen it was created (ISO 8601).
variant.updated_atstringWhen it was last updated (ISO 8601).

Cập nhật biến thể (Update variant) — haravan.update_variant ​

Change a variant's price, SKU, barcode, options or weight.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
variant_idMã biến thểintegercóVariant id. Min 1.
variantThông tin cập nhậtobjectcóFields to change.
variant.titlestringkhôngVariant name, e.g. 'Đỏ / M'.
variant.skustringkhôngStock keeping unit.
variant.barcodestringkhôngBarcode.
variant.pricenumberkhôngPrice, VND.
variant.compare_at_pricenumberkhôngPrice before discount, VND.
variant.option1stringkhôngValue of option 1, e.g. color.
variant.option2stringkhôngValue of option 2, e.g. size.
variant.option3stringkhôngValue of option 3.
variant.weightnumberkhôngWeight in grams.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
variantBiến thểobjectThe variant.
variant.idintegerVariant id.
variant.product_idintegerProduct the variant belongs to.
variant.titlestringVariant name, e.g. 'Đen / S'.
variant.skustring | nullStock keeping unit.
variant.barcodestring | nullBarcode, UPC or ISBN.
variant.pricenumberPrice, VND.
variant.compare_at_pricenumber | nullPrice before discount, VND.
variant.gramsnumberWeight in grams.
variant.option1string | nullValue of option 1, e.g. color.
variant.option2string | nullValue of option 2, e.g. size; may be empty.
variant.option3string | nullValue of option 3; may be empty.
variant.positionintegerPosition among the product's variants.
variant.image_idinteger | nullId of one of the product's images. The reference says string; its sample replies show an integer or null, which this follows.
variant.inventory_managementstring | null'haravan' when Haravan tracks stock for this variant, else null.
variant.inventory_policystring'deny' blocks orders when out of stock; 'continue' allows them.
variant.inventory_quantityintegerItems in stock.
variant.fulfillment_servicestring | nullFulfillment service; null.
variant.requires_shippingbooleanWhether the customer needs a shipping address.
variant.taxablebooleanWhether tax is charged.
variant.created_atstringWhen it was created (ISO 8601).
variant.updated_atstringWhen it was last updated (ISO 8601).

Xoá biến thể (Delete variant) — haravan.delete_variant ​

Delete one variant of a product.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
variant_idMã biến thểintegercóVariant id. Min 1.

Field thêm: bỏ qua.

Output

Trả về object rỗng.

Danh sách ảnh sản phẩm (List product images) — haravan.list_product_images ​

List the images of a product.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
imagesDanh sách ảnharray of objectImages of the product.
images[].idintegerImage id.
images[].product_idintegerProduct the image belongs to.
images[].positionintegerOrder among the product's images; 1 is the main image.
images[].srcstringURL of the image.
images[].filenamestringFile name of the image; not sent by every endpoint.
images[].variant_idsarray of integer | nullIds of the variants that show this image; null in the single-image reference sample.
images[].created_atstringWhen it was created (ISO 8601).
images[].updated_atstringWhen it was last updated (ISO 8601).

Thêm ảnh sản phẩm (Add product image) — haravan.add_product_image ​

Add an image to a product from a public https URL.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhôngcom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
imageẢnhobjectcóThe image.
image.srcstringcóPublic https URL of the image. Pattern: ^https://.
image.positionintegerkhôngOrder among the images, from 1.
image.variant_idsarray of integerkhôngVariants that show this image.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
imageẢnhobjectThe image that was added.
image.idintegerImage id.
image.product_idintegerProduct the image belongs to.
image.positionintegerOrder among the product's images; 1 is the main image.
image.srcstringURL of the image.
image.filenamestringFile name of the image; not sent by every endpoint.
image.variant_idsarray of integer | nullIds of the variants that show this image; null in the single-image reference sample.
image.created_atstringWhen it was created (ISO 8601).
image.updated_atstringWhen it was last updated (ISO 8601).

Xoá ảnh sản phẩm (Delete product image) — haravan.delete_product_image ​

Delete one image of a product.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idMã sản phẩmintegercóHaravan product id. Min 1.
image_idMã ảnhintegercóProduct image id. Min 1.

Field thêm: bỏ qua.

Output

Trả về object rỗng.

Danh sách nhóm sản phẩm (List collections) — haravan.list_custom_collections ​

List manual product collections, optionally those holding one product.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idSản phẩmintegerkhôngOnly collections holding this product. Min 1.
titleTên nhómstringkhôngExact collection name.
pageTrangintegerkhôngPage number, from 1. Min 1.
limitSố kết quả mỗi trangintegerkhôngItems per page (1-50, default 50). Min 1. Max 50.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
custom_collectionsDanh sách nhómarray of objectManual collections.
custom_collections[].idintegerCollection id.
custom_collections[].titlestringCollection name.
custom_collections[].handlestringURL handle.
custom_collections[].body_htmlstring | nullDescription, HTML.
custom_collections[].imageobject | nullImage of the collection; null when it has none. The reference types it as a string; its sample reply shows an object with src and created_at, which this follows.
custom_collections[].image.srcstring | nullURL of the image.
custom_collections[].image.created_atstring | nullWhen the image was added (ISO 8601).
custom_collections[].published_atstring | nullWhen it was published (ISO 8601); null when unpublished.
custom_collections[].published_scopestring | nullSales channels where it is visible, e.g. web or global.
custom_collections[].sort_orderstringHow products are ordered: alpha-asc, alpha-desc, best-selling, created, created-desc, manual, price-asc or price-desc. Sample replies also show underscore spellings such as alpha_asc.
custom_collections[].template_suffixstring | nullSuffix of the Liquid template of the page.
custom_collections[].products_countintegerNumber of products; only some replies include it.
custom_collections[].updated_atstringWhen it was last updated (ISO 8601).
custom_collections[].publishedbooleanWhether the collection is visible.

Tạo nhóm sản phẩm (Create collection) — haravan.create_custom_collection ​

Create a manual product collection.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhôngcom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
custom_collectionNhóm sản phẩmobjectcóThe collection.
custom_collection.titlestringcóCollection name.
custom_collection.body_htmlstringkhôngDescription, HTML.
custom_collection.publishedbooleankhôngVisible on the store.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
custom_collectionNhóm sản phẩmobjectThe collection.
custom_collection.idintegerCollection id.
custom_collection.titlestringCollection name.
custom_collection.handlestringURL handle.
custom_collection.body_htmlstring | nullDescription, HTML.
custom_collection.imageobject | nullImage of the collection; null when it has none. The reference types it as a string; its sample reply shows an object with src and created_at, which this follows.
custom_collection.image.srcstring | nullURL of the image.
custom_collection.image.created_atstring | nullWhen the image was added (ISO 8601).
custom_collection.published_atstring | nullWhen it was published (ISO 8601); null when unpublished.
custom_collection.published_scopestring | nullSales channels where it is visible, e.g. web or global.
custom_collection.sort_orderstringHow products are ordered: alpha-asc, alpha-desc, best-selling, created, created-desc, manual, price-asc or price-desc. Sample replies also show underscore spellings such as alpha_asc.
custom_collection.template_suffixstring | nullSuffix of the Liquid template of the page.
custom_collection.products_countintegerNumber of products; only some replies include it.
custom_collection.updated_atstringWhen it was last updated (ISO 8601).
custom_collection.publishedbooleanWhether the collection is visible.

Cập nhật nhóm sản phẩm (Update collection) — haravan.update_custom_collection ​

Rename or change the description or visibility of a collection.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
collection_idMã nhóm sản phẩmintegercóCustom collection id. Min 1.
custom_collectionThông tin cập nhậtobjectcóFields to change.
custom_collection.titlestringkhôngCollection name.
custom_collection.body_htmlstringkhôngDescription, HTML.
custom_collection.publishedbooleankhôngVisible on the store.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
custom_collectionNhóm sản phẩmobjectThe collection.
custom_collection.idintegerCollection id.
custom_collection.titlestringCollection name.
custom_collection.handlestringURL handle.
custom_collection.body_htmlstring | nullDescription, HTML.
custom_collection.imageobject | nullImage of the collection; null when it has none. The reference types it as a string; its sample reply shows an object with src and created_at, which this follows.
custom_collection.image.srcstring | nullURL of the image.
custom_collection.image.created_atstring | nullWhen the image was added (ISO 8601).
custom_collection.published_atstring | nullWhen it was published (ISO 8601); null when unpublished.
custom_collection.published_scopestring | nullSales channels where it is visible, e.g. web or global.
custom_collection.sort_orderstringHow products are ordered: alpha-asc, alpha-desc, best-selling, created, created-desc, manual, price-asc or price-desc. Sample replies also show underscore spellings such as alpha_asc.
custom_collection.template_suffixstring | nullSuffix of the Liquid template of the page.
custom_collection.products_countintegerNumber of products; only some replies include it.
custom_collection.updated_atstringWhen it was last updated (ISO 8601).
custom_collection.publishedbooleanWhether the collection is visible.

Xoá nhóm sản phẩm (Delete collection) — haravan.delete_custom_collection ​

Delete a manual collection; its products are kept.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
collection_idMã nhóm sản phẩmintegercóCustom collection id. Min 1.

Field thêm: bỏ qua.

Output

Trả về object rỗng.

Danh sách nhóm sản phẩm tự động (List smart collections) — haravan.list_smart_collections ​

List rule-based collections, optionally those holding one product.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcócom.read_products

Input

FieldNhãnKiểuBắt buộcMô tả
product_idSản phẩmintegerkhôngOnly collections holding this product. Min 1.
titleTên nhómstringkhôngExact collection name.
pageTrangintegerkhôngPage number, from 1. Min 1.
limitSố kết quả mỗi trangintegerkhôngItems per page (1-50, default 50). Min 1. Max 50.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
smart_collectionsDanh sách nhómarray of objectRule-based collections.
smart_collections[].idintegerCollection id.
smart_collections[].titlestringCollection name.
smart_collections[].handlestringURL handle.
smart_collections[].body_htmlstring | nullDescription, HTML.
smart_collections[].imageobject | nullImage of the collection; null when it has none. The reference types it as a string; its sample reply shows an object with src and created_at, which this follows.
smart_collections[].image.srcstring | nullURL of the image.
smart_collections[].image.created_atstring | nullWhen the image was added (ISO 8601).
smart_collections[].published_atstring | nullWhen it was published (ISO 8601); null when unpublished.
smart_collections[].published_scopestring | nullSales channels where it is visible, e.g. web or global.
smart_collections[].sort_orderstringHow products are ordered: alpha-asc, alpha-desc, best-selling, created, created-desc, manual, price-asc or price-desc. Sample replies also show underscore spellings such as alpha_asc.
smart_collections[].template_suffixstring | nullSuffix of the Liquid template of the page.
smart_collections[].products_countintegerNumber of products; only some replies include it.
smart_collections[].updated_atstringWhen it was last updated (ISO 8601).
smart_collections[].disjunctivebooleanFalse: a product must match all rules. True: matching one rule is enough.
smart_collections[].rulesarray of objectRules that decide which products belong. The reference describes this as a string; its sample replies show a list, which this follows.
smart_collections[].rules[].columnstringWhat is compared: title, type, vendor, tag, variant_price, variant_compare_at_price, variant_weight, variant_inventory or variant_title.
smart_collections[].rules[].relationstringHow: equals, greater_than, less_than, starts_with, ends_with or contains.
smart_collections[].rules[].conditionstringThe value to compare with.

Thêm sản phẩm vào nhóm (Add product to collection) — haravan.add_product_to_collection ​

Put a product into a manual collection.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhôngcom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
collectLiên kếtobjectcóProduct and collection.
collect.product_idintegercóProduct id.
collect.collection_idintegercóCustom collection id.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
collectLiên kếtobjectThe link; its id removes it later.
collect.idintegerCollect (link) id.
collect.collection_idintegerCustom collection id.
collect.product_idintegerProduct id.
collect.positionintegerPosition of the product in a manually sorted collection. The reference says string and counts from 1; its sample replies show an integer, and the collects list sample shows 0 for the first product, which this follows.
collect.sort_valuestringPosition padded with zeros so it sorts as text.
collect.featuredbooleanWhether the product is featured in the collection.
collect.created_atstring | nullWhen it was created (ISO 8601); may be null.
collect.updated_atstring | nullWhen it was last updated (ISO 8601); may be null.

Bỏ sản phẩm khỏi nhóm (Remove product from collection) — haravan.remove_product_from_collection ​

Remove a product from a manual collection by the link (collect) id.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcócócom.write_products

Input

FieldNhãnKiểuBắt buộcMô tả
collect_idMã liên kếtintegercóCollect (link) id. Min 1.

Field thêm: bỏ qua.

Output

Trả về object rỗng.