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/volume-pricings

Get list volume pricings

Parameters

NameInTypeDescription
queryquerystring
limitqueryinteger
statusquerystring
sortquerystringOne of: decrease, ascrease

Responses

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

POST/volume-pricings

Create volume pricing

Request body

FieldTypeDescription
titlestring
statusbooleanOne of: true, false
typestring
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.tagsany[]
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[].duplicatedbooleanOne of: true, false
discount_for_variants[].variant_pricingrequiredbooleanOne of: true, false
discount_for_variants[].from_qtystring
discount_for_variants[].from_amountstring
discount_for_variants[].to_qtystring
discount_for_variants[].to_amountstring
discount_for_variants[].discount_groupsobject[]
discount_for_variants[].discount_groups[].namerequiredstring
discount_for_variants[].discount_groups[].typerequiredstringOne of: percent, amount, fixed-amount
discount_for_variants[].discount_groups[].valuerequiredstring
discount_for_variants[].variantsrequiredobject[]
discount_for_variants[].variants[].idrequiredinteger (int64)
discount_for_variants[].variants[].duplicatedbooleanOne of: true, false
discount_for_variants[].variants[].from_qtystringVolume pricing type is quantity
discount_for_variants[].variants[].from_amountstringVolume pricing type is amount
discount_for_variants[].variants[].to_qtystringVolume pricing type is quantity
discount_for_variants[].variants[].to_amountstringVolume pricing type is amount
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_methodstring
discount_groupsobject[]
discount_groups[].from_qtystringVolume pricing type is quantity
discount_groups[].from_amountstringVolume pricing type is amount
discount_groups[].to_qtystringVolume pricing type is quantity
discount_groups[].to_amountstringVolume pricing type is amount
discount_groups[].typestringOne of: percent, amount, fixed-amount
discount_groups[].valuestring
active_dateobject
active_date.typesstring[]One of: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Responses

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

GET/volume-pricings/{id}

Get volume pricing with ID

Parameters

NameInTypeDescription
idrequiredpathinteger

Responses

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

PUT/volume-pricings/{id}

Update volume pricing

Request body

FieldTypeDescription
titlestring
statusbooleanOne of: true, false
typestring
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.tagsany[]
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[].duplicatedbooleanOne of: true, false
discount_for_variants[].variant_pricingrequiredbooleanOne of: true, false
discount_for_variants[].from_qtystring
discount_for_variants[].from_amountstring
discount_for_variants[].to_qtystring
discount_for_variants[].to_amountstring
discount_for_variants[].discount_groupsobject[]
discount_for_variants[].discount_groups[].namerequiredstring
discount_for_variants[].discount_groups[].typerequiredstringOne of: percent, amount, fixed-amount
discount_for_variants[].discount_groups[].valuerequiredstring
discount_for_variants[].variantsrequiredobject[]
discount_for_variants[].variants[].idrequiredinteger (int64)
discount_for_variants[].variants[].duplicatedbooleanOne of: true, false
discount_for_variants[].variants[].from_qtystringVolume pricing type is quantity
discount_for_variants[].variants[].from_amountstringVolume pricing type is amount
discount_for_variants[].variants[].to_qtystringVolume pricing type is quantity
discount_for_variants[].variants[].to_amountstringVolume pricing type is amount
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_methodstring
discount_groupsobject[]
discount_groups[].from_qtystringVolume pricing type is quantity
discount_groups[].from_amountstringVolume pricing type is amount
discount_groups[].to_qtystringVolume pricing type is quantity
discount_groups[].to_amountstringVolume pricing type is amount
discount_groups[].typestringOne of: percent, amount, fixed-amount
discount_groups[].valuestring
active_dateobject
active_date.typesstring[]One of: start_date, end_date
active_date.start_atstring
active_date.end_atstring

Responses

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

DELETE/volume-pricings/{ids}

Delete volume pricing by IDs

Parameters

NameInTypeDescription
idsrequiredpathinteger

Responses

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

Was this helpful?