コンテンツにスキップ
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

このページは役に立ちましたか?