Aller au contenu
Essai gratuit de 14 jours
Français
Ouvrir dans Claude Poser des questions sur cette pageOuvrir dans ChatGPT Poser des questions sur cette page

Site de test de l'API

URL de basehttps://wholesale.samita.io/api/v1

GET/wholesale-pricings

Get list wholesale pricings

Paramètres

NomEmplacementTypeDescription
queryquerystring
limitqueryinteger
statusquerystring
sortquerystringL'une des valeurs suivantes : decrease, ascrease

Réponses

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

POST/wholesale-pricings

Create wholesale pricing

Corps de la requête

ChampTypeDescription
titlestring
statusbooleanL'une des valeurs suivantes : true, false
apply_customerobject
apply_customer.typestringL'une des valeurs suivantes : all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringL'une des valeurs suivantes : none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringL'une des valeurs suivantes : all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanL'une des valeurs suivantes : true, false
exclude_productobject
exclude_product.typestringL'une des valeurs suivantes : none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idobligatoireinteger (int64)
discount_for_variants[].variant_pricingobligatoirebooleanL'une des valeurs suivantes : true, false
discount_for_variants[].variantsobligatoireobject[]
discount_for_variants[].variants[].idobligatoireinteger (int64)
discount_for_variants[].variants[].discount_groupsobligatoireobject[]
discount_for_variants[].variants[].discount_groups[].nameobligatoirestring
discount_for_variants[].variants[].discount_groups[].typeobligatoirestringL'une des valeurs suivantes : percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valueobligatoirestring
apply_marketobject
apply_market.typestringL'une des valeurs suivantes : all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringL'une des valeurs suivantes : percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]L'une des valeurs suivantes : start_date, end_date
active_date.start_atstring
active_date.end_atstring

Réponses

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

GET/wholesale-pricings/{id}

Get wholesale pricing with ID

Paramètres

NomEmplacementTypeDescription
idobligatoirepathinteger

Réponses

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

PUT/wholesale-pricings/{id}

Update wholesale pricing

Corps de la requête

ChampTypeDescription
titlestring
statusbooleanL'une des valeurs suivantes : true, false
apply_customerobject
apply_customer.typestringL'une des valeurs suivantes : all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringL'une des valeurs suivantes : none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringL'une des valeurs suivantes : all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanL'une des valeurs suivantes : true, false
exclude_productobject
exclude_product.typestringL'une des valeurs suivantes : none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idobligatoireinteger (int64)
discount_for_variants[].variant_pricingobligatoirebooleanL'une des valeurs suivantes : true, false
discount_for_variants[].variantsobligatoireobject[]
discount_for_variants[].variants[].idobligatoireinteger (int64)
discount_for_variants[].variants[].discount_groupsobligatoireobject[]
discount_for_variants[].variants[].discount_groups[].nameobligatoirestring
discount_for_variants[].variants[].discount_groups[].typeobligatoirestringL'une des valeurs suivantes : percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valueobligatoirestring
apply_marketobject
apply_market.typestringL'une des valeurs suivantes : all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringL'une des valeurs suivantes : percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]L'une des valeurs suivantes : start_date, end_date
active_date.start_atstring
active_date.end_atstring

Réponses

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

DELETE/wholesale-pricings/{ids}

Delete wholesale pricing by IDs

Paramètres

NomEmplacementTypeDescription
idsobligatoirepathinteger

Réponses

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

Cette page vous a-t-elle été utile ?