Ga naar inhoud
14 dagen gratis proberen
Nederlands
Openen in Claude Stel vragen over deze paginaOpenen in ChatGPT Stel vragen over deze pagina

API-testsite

Basis-URLhttps://wholesale.samita.io/api/v1

GET/wholesale-pricings

Get list wholesale pricings

Parameters

NaamLocatieTypeBeschrijving
queryquerystring
limitqueryinteger
statusquerystring
sortquerystringEen van: decrease, ascrease

Responses

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

POST/wholesale-pricings

Create wholesale pricing

Requestbody

VeldTypeBeschrijving
titlestring
statusbooleanEen van: true, false
apply_customerobject
apply_customer.typestringEen van: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringEen van: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringEen van: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanEen van: true, false
exclude_productobject
exclude_product.typestringEen van: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idverplichtinteger (int64)
discount_for_variants[].variant_pricingverplichtbooleanEen van: true, false
discount_for_variants[].variantsverplichtobject[]
discount_for_variants[].variants[].idverplichtinteger (int64)
discount_for_variants[].variants[].discount_groupsverplichtobject[]
discount_for_variants[].variants[].discount_groups[].nameverplichtstring
discount_for_variants[].variants[].discount_groups[].typeverplichtstringEen van: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valueverplichtstring
apply_marketobject
apply_market.typestringEen van: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringEen van: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]Een van: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Responses

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

GET/wholesale-pricings/{id}

Get wholesale pricing with ID

Parameters

NaamLocatieTypeBeschrijving
idverplichtpathinteger

Responses

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

PUT/wholesale-pricings/{id}

Update wholesale pricing

Requestbody

VeldTypeBeschrijving
titlestring
statusbooleanEen van: true, false
apply_customerobject
apply_customer.typestringEen van: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringEen van: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringEen van: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanEen van: true, false
exclude_productobject
exclude_product.typestringEen van: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idverplichtinteger (int64)
discount_for_variants[].variant_pricingverplichtbooleanEen van: true, false
discount_for_variants[].variantsverplichtobject[]
discount_for_variants[].variants[].idverplichtinteger (int64)
discount_for_variants[].variants[].discount_groupsverplichtobject[]
discount_for_variants[].variants[].discount_groups[].nameverplichtstring
discount_for_variants[].variants[].discount_groups[].typeverplichtstringEen van: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valueverplichtstring
apply_marketobject
apply_market.typestringEen van: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringEen van: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]Een van: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Responses

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

DELETE/wholesale-pricings/{ids}

Delete wholesale pricing by IDs

Parameters

NaamLocatieTypeBeschrijving
idsverplichtpathinteger

Responses

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

Was dit nuttig?