API test sitesi
Temel URLhttps://wholesale.samita.io/api/v1
GET/wholesale-pricings
Get list wholesale pricings
Parametreler
| Ad | Konum | Tür | Açıklama |
|---|---|---|---|
query | query | string | |
limit | query | integer | |
status | query | string | |
sort | query | string | Şunlardan biri: decrease, ascrease |
Yanıtlar
200A list of wholesale pricings401Unauthorized403This action is unauthorized429Too Many Requests
POST/wholesale-pricings
Create wholesale pricing
İstek gövdesi
| Alan | Tür | Açıklama |
|---|---|---|
title | string | |
status | boolean | Şunlardan biri: true, false |
apply_customer | object | |
apply_customer.type | string | Şunlardan biri: all, logged, non-logged, customer-tags |
apply_customer.tags | string[] | |
exclude_customer | object | |
exclude_customer.type | string | Şunlardan biri: none, customer-tags |
exclude_customer.tags | string[] | |
apply_product | object | |
apply_product.type | string | Şunlardan biri: all, products, collections, product-tags |
apply_product.product_ids | integer (int64)[] | |
apply_product.product_tags | string[] | |
apply_product.collection_ids | integer (int64)[] | |
apply_product.apply_for_variants | boolean | Şunlardan biri: true, false |
exclude_product | object | |
exclude_product.type | string | Şunlardan biri: none, products, collections |
exclude_product.product_ids | integer (int64)[] | |
exclude_product.collection_ids | integer (int64)[] | |
discount_for_variants | object[] | |
discount_for_variants[].idzorunlu | integer (int64) | |
discount_for_variants[].variant_pricingzorunlu | boolean | Şunlardan biri: true, false |
discount_for_variants[].variantszorunlu | object[] | |
discount_for_variants[].variants[].idzorunlu | integer (int64) | |
discount_for_variants[].variants[].discount_groupszorunlu | object[] | |
discount_for_variants[].variants[].discount_groups[].namezorunlu | string | |
discount_for_variants[].variants[].discount_groups[].typezorunlu | string | Şunlardan biri: percent, amount, fixed-amount |
discount_for_variants[].variants[].discount_groups[].valuezorunlu | string | |
apply_market | object | |
apply_market.type | string | Şunlardan biri: all, specific-market |
apply_market.handle | string[] | |
discount_group | object | |
discount_group.type | string | Şunlardan biri: percent, amount, fixed-amount |
discount_group.value | string | |
active_date | object | |
active_date.types | string[] | Şunlardan biri: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
Yanıtlar
200A wholesale pricing401Unauthorized403This action is unauthorized429Too Many Requests
GET/wholesale-pricings/{id}
Get wholesale pricing with ID
Parametreler
| Ad | Konum | Tür | Açıklama |
|---|---|---|---|
idzorunlu | path | integer |
Yanıtlar
200A wholesale pricing401Unauthorized403This action is unauthorized404Wholesale pricing not found429Too Many Requests
PUT/wholesale-pricings/{id}
Update wholesale pricing
İstek gövdesi
| Alan | Tür | Açıklama |
|---|---|---|
title | string | |
status | boolean | Şunlardan biri: true, false |
apply_customer | object | |
apply_customer.type | string | Şunlardan biri: all, logged, non-logged, customer-tags |
apply_customer.tags | string[] | |
exclude_customer | object | |
exclude_customer.type | string | Şunlardan biri: none, customer-tags |
exclude_customer.tags | string[] | |
apply_product | object | |
apply_product.type | string | Şunlardan biri: all, products, collections, product-tags |
apply_product.product_ids | integer (int64)[] | |
apply_product.product_tags | string[] | |
apply_product.collection_ids | integer (int64)[] | |
apply_product.apply_for_variants | boolean | Şunlardan biri: true, false |
exclude_product | object | |
exclude_product.type | string | Şunlardan biri: none, products, collections |
exclude_product.product_ids | integer (int64)[] | |
exclude_product.collection_ids | integer (int64)[] | |
discount_for_variants | object[] | |
discount_for_variants[].idzorunlu | integer (int64) | |
discount_for_variants[].variant_pricingzorunlu | boolean | Şunlardan biri: true, false |
discount_for_variants[].variantszorunlu | object[] | |
discount_for_variants[].variants[].idzorunlu | integer (int64) | |
discount_for_variants[].variants[].discount_groupszorunlu | object[] | |
discount_for_variants[].variants[].discount_groups[].namezorunlu | string | |
discount_for_variants[].variants[].discount_groups[].typezorunlu | string | Şunlardan biri: percent, amount, fixed-amount |
discount_for_variants[].variants[].discount_groups[].valuezorunlu | string | |
apply_market | object | |
apply_market.type | string | Şunlardan biri: all, specific-market |
apply_market.handle | string[] | |
discount_group | object | |
discount_group.type | string | Şunlardan biri: percent, amount, fixed-amount |
discount_group.value | string | |
active_date | object | |
active_date.types | string[] | Şunlardan biri: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
Yanıtlar
200A wholesale pricing401Unauthorized403This action is unauthorized429Too Many Requests
DELETE/wholesale-pricings/{ids}
Delete wholesale pricing by IDs
Parametreler
| Ad | Konum | Tür | Açıklama |
|---|---|---|---|
idszorunlu | path | integer |
Yanıtlar
200Delete wholesale pricings401Unauthorized403This action is unauthorized404Wholesale pricing not found429Too Many Requests
Bu sayfa yardımcı oldu mu?
Geri bildiriminiz için teşekkürler.
Teşekkürler.