Skip to content
Try free for 14 days
English
EnglishFrenchSoonItalianSoonJapaneseSoonSpanishSoonPortuguese (Portugal)SoonGermanSoonCzechSoonDanishSoonFinnishSoonKoreanSoonNorwegian (Bokmål)SoonDutchSoonPolishSoonPortuguese (Brazil)SoonTurkishSoonChinese (Simplified)SoonChinese (Traditional)Soon
Open in Claude Ask questions about this pageOpen in ChatGPT Ask questions about this page

API Test site

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

GET/wholesale-pricings

Get list wholesale pricings

Parameters

NameInTypeDescription
queryquerystring
limitqueryinteger
statusquerystring
sortquerystringOne of: decrease, ascrease

Responses

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

POST/wholesale-pricings

Create wholesale pricing

Request body

FieldTypeDescription
titlestring
statusbooleanOne of: true, false
apply_customerobject
apply_customer.typestringOne of: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringOne of: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringOne of: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanOne of: true, false
exclude_productobject
exclude_product.typestringOne of: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idrequiredinteger (int64)
discount_for_variants[].variant_pricingrequiredbooleanOne of: true, false
discount_for_variants[].variantsrequiredobject[]
discount_for_variants[].variants[].idrequiredinteger (int64)
discount_for_variants[].variants[].discount_groupsrequiredobject[]
discount_for_variants[].variants[].discount_groups[].namerequiredstring
discount_for_variants[].variants[].discount_groups[].typerequiredstringOne of: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valuerequiredstring
apply_marketobject
apply_market.typestringOne of: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringOne of: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]One of: 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

NameInTypeDescription
idrequiredpathinteger

Responses

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

PUT/wholesale-pricings/{id}

Update wholesale pricing

Request body

FieldTypeDescription
titlestring
statusbooleanOne of: true, false
apply_customerobject
apply_customer.typestringOne of: all, logged, non-logged, customer-tags
apply_customer.tagsstring[]
exclude_customerobject
exclude_customer.typestringOne of: none, customer-tags
exclude_customer.tagsstring[]
apply_productobject
apply_product.typestringOne of: all, products, collections, product-tags
apply_product.product_idsinteger (int64)[]
apply_product.product_tagsstring[]
apply_product.collection_idsinteger (int64)[]
apply_product.apply_for_variantsbooleanOne of: true, false
exclude_productobject
exclude_product.typestringOne of: none, products, collections
exclude_product.product_idsinteger (int64)[]
exclude_product.collection_idsinteger (int64)[]
discount_for_variantsobject[]
discount_for_variants[].idrequiredinteger (int64)
discount_for_variants[].variant_pricingrequiredbooleanOne of: true, false
discount_for_variants[].variantsrequiredobject[]
discount_for_variants[].variants[].idrequiredinteger (int64)
discount_for_variants[].variants[].discount_groupsrequiredobject[]
discount_for_variants[].variants[].discount_groups[].namerequiredstring
discount_for_variants[].variants[].discount_groups[].typerequiredstringOne of: percent, amount, fixed-amount
discount_for_variants[].variants[].discount_groups[].valuerequiredstring
apply_marketobject
apply_market.typestringOne of: all, specific-market
apply_market.handlestring[]
discount_groupobject
discount_group.typestringOne of: percent, amount, fixed-amount
discount_group.valuestring
active_dateobject
active_date.typesstring[]One of: 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

NameInTypeDescription
idsrequiredpathinteger

Responses

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

Was this helpful?