跳到內容
免費試用 14 天
繁體中文
在 Claude 中開啟 針對此頁面提問在 ChatGPT 中開啟 針對此頁面提問

API 測試站台

基礎 URLhttps://wholesale.samita.io/api/v1

GET/wholesale-pricings

Get list wholesale pricings

參數

名稱位置類型說明
queryquerystring
limitqueryinteger
statusquerystring
sortquerystring以下其中之一: decrease, ascrease

回應

  • 200A list of wholesale pricings
  • 401Unauthorized
  • 403This action is unauthorized
  • 429Too Many Requests

POST/wholesale-pricings

Create wholesale pricing

請求內文

欄位類型說明
titlestring
statusboolean以下其中之一: true, false
apply_customerobject
apply_customer.typestring以下其中之一: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestring以下其中之一: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestring以下其中之一: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsboolean以下其中之一: true, false
exclude_productobject
exclude_product.typestring以下其中之一: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].id必填integer (int64)
discount_for_variants[].variant_pricing必填boolean以下其中之一: true, false
discount_for_variants[].variants必填object[]
discount_for_variants[].variants[].id必填integer (int64)
discount_for_variants[].variants[].discount_groups必填object[]
discount_for_variants[].variants[].discount_groups[].name必填string
discount_for_variants[].variants[].discount_groups[].type必填string以下其中之一: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].value必填string
apply_marketobject
apply_market.typestring以下其中之一: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestring以下其中之一: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]以下其中之一: start_date, end_date
active_date.start_atstring
active_date.end_atstring

回應

  • 200A wholesale pricing
  • 401Unauthorized
  • 403This action is unauthorized
  • 429Too Many Requests

GET/wholesale-pricings/{id}

Get wholesale pricing with ID

參數

名稱位置類型說明
id必填pathinteger

回應

  • 200A wholesale pricing
  • 401Unauthorized
  • 403This action is unauthorized
  • 404Wholesale pricing not found
  • 429Too Many Requests

PUT/wholesale-pricings/{id}

Update wholesale pricing

請求內文

欄位類型說明
titlestring
statusboolean以下其中之一: true, false
apply_customerobject
apply_customer.typestring以下其中之一: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestring以下其中之一: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestring以下其中之一: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsboolean以下其中之一: true, false
exclude_productobject
exclude_product.typestring以下其中之一: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].id必填integer (int64)
discount_for_variants[].variant_pricing必填boolean以下其中之一: true, false
discount_for_variants[].variants必填object[]
discount_for_variants[].variants[].id必填integer (int64)
discount_for_variants[].variants[].discount_groups必填object[]
discount_for_variants[].variants[].discount_groups[].name必填string
discount_for_variants[].variants[].discount_groups[].type必填string以下其中之一: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].value必填string
apply_marketobject
apply_market.typestring以下其中之一: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestring以下其中之一: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]以下其中之一: start_date, end_date
active_date.start_atstring
active_date.end_atstring

回應

  • 200A wholesale pricing
  • 401Unauthorized
  • 403This action is unauthorized
  • 429Too Many Requests

DELETE/wholesale-pricings/{ids}

Delete wholesale pricing by IDs

參數

名稱位置類型說明
ids必填pathinteger

回應

  • 200Delete wholesale pricings
  • 401Unauthorized
  • 403This action is unauthorized
  • 404Wholesale pricing not found
  • 429Too Many Requests

這對您有幫助嗎?