Przejdź do głównej zawartości
Wypróbuj za darmo przez 14 dni
Polski
Otwórz w Claude Zadaj pytania o tę stronęOtwórz w ChatGPT Zadaj pytania o tę stronę

Strona testowa API

Bazowy URLhttps://wholesale.samita.io/api/v1

GET/wholesale-pricings

Get list wholesale pricings

Parametry

NazwaLokalizacjaTypOpis
queryquerystring
limitqueryinteger
statusquerystring
sortquerystringJedno z: decrease, ascrease

Odpowiedzi

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

POST/wholesale-pricings

Create wholesale pricing

Treść żądania

PoleTypOpis
titlestring
statusbooleanJedno z: true, false
apply_customerobject
apply_customer.typestringJedno z: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringJedno z: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringJedno z: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanJedno z: true, false
exclude_productobject
exclude_product.typestringJedno z: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idwymaganeinteger (int64)
discount_for_variants[].variant_pricingwymaganebooleanJedno z: true, false
discount_for_variants[].variantswymaganeobject[]
discount_for_variants[].variants[].idwymaganeinteger (int64)
discount_for_variants[].variants[].discount_groupswymaganeobject[]
discount_for_variants[].variants[].discount_groups[].namewymaganestring
discount_for_variants[].variants[].discount_groups[].typewymaganestringJedno z: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valuewymaganestring
apply_marketobject
apply_market.typestringJedno z: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringJedno z: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]Jedno z: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Odpowiedzi

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

GET/wholesale-pricings/{id}

Get wholesale pricing with ID

Parametry

NazwaLokalizacjaTypOpis
idwymaganepathinteger

Odpowiedzi

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

PUT/wholesale-pricings/{id}

Update wholesale pricing

Treść żądania

PoleTypOpis
titlestring
statusbooleanJedno z: true, false
apply_customerobject
apply_customer.typestringJedno z: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringJedno z: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringJedno z: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanJedno z: true, false
exclude_productobject
exclude_product.typestringJedno z: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idwymaganeinteger (int64)
discount_for_variants[].variant_pricingwymaganebooleanJedno z: true, false
discount_for_variants[].variantswymaganeobject[]
discount_for_variants[].variants[].idwymaganeinteger (int64)
discount_for_variants[].variants[].discount_groupswymaganeobject[]
discount_for_variants[].variants[].discount_groups[].namewymaganestring
discount_for_variants[].variants[].discount_groups[].typewymaganestringJedno z: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valuewymaganestring
apply_marketobject
apply_market.typestringJedno z: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringJedno z: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]Jedno z: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Odpowiedzi

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

DELETE/wholesale-pricings/{ids}

Delete wholesale pricing by IDs

Parametry

NazwaLokalizacjaTypOpis
idswymaganepathinteger

Odpowiedzi

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

Czy to było pomocne?