Pular para o conteúdo
Teste grátis por 14 dias
Português
Abrir no Claude Fazer perguntas sobre esta páginaAbrir no ChatGPT Fazer perguntas sobre esta página

Site de teste da API

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

GET/wholesale-pricings

Get list wholesale pricings

Parâmetros

NomeLocalTipoDescrição
queryquerystring
limitqueryinteger
statusquerystring
sortquerystringUm de: decrease, ascrease

Respostas

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

POST/wholesale-pricings

Create wholesale pricing

Corpo da solicitação

CampoTipoDescrição
titlestring
statusbooleanUm de: true, false
apply_customerobject
apply_customer.typestringUm de: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringUm de: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringUm de: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanUm de: true, false
exclude_productobject
exclude_product.typestringUm de: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idobrigatóriointeger (int64)
discount_for_variants[].variant_pricingobrigatóriobooleanUm de: true, false
discount_for_variants[].variantsobrigatórioobject[]
discount_for_variants[].variants[].idobrigatóriointeger (int64)
discount_for_variants[].variants[].discount_groupsobrigatórioobject[]
discount_for_variants[].variants[].discount_groups[].nameobrigatóriostring
discount_for_variants[].variants[].discount_groups[].typeobrigatóriostringUm de: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valueobrigatóriostring
apply_marketobject
apply_market.typestringUm de: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringUm de: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]Um de: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Respostas

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

GET/wholesale-pricings/{id}

Get wholesale pricing with ID

Parâmetros

NomeLocalTipoDescrição
idobrigatóriopathinteger

Respostas

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

PUT/wholesale-pricings/{id}

Update wholesale pricing

Corpo da solicitação

CampoTipoDescrição
titlestring
statusbooleanUm de: true, false
apply_customerobject
apply_customer.typestringUm de: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringUm de: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringUm de: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanUm de: true, false
exclude_productobject
exclude_product.typestringUm de: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idobrigatóriointeger (int64)
discount_for_variants[].variant_pricingobrigatóriobooleanUm de: true, false
discount_for_variants[].variantsobrigatórioobject[]
discount_for_variants[].variants[].idobrigatóriointeger (int64)
discount_for_variants[].variants[].discount_groupsobrigatórioobject[]
discount_for_variants[].variants[].discount_groups[].nameobrigatóriostring
discount_for_variants[].variants[].discount_groups[].typeobrigatóriostringUm de: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valueobrigatóriostring
apply_marketobject
apply_market.typestringUm de: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringUm de: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]Um de: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Respostas

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

DELETE/wholesale-pricings/{ids}

Delete wholesale pricing by IDs

Parâmetros

NomeLocalTipoDescrição
idsobrigatóriopathinteger

Respostas

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

Isso foi útil?