API 測試站台
基礎 URLhttps://wholesale.samita.io/api/v1
GET/wholesale-pricings
Get list wholesale pricings
參數
| 名稱 | 位置 | 類型 | 說明 |
|---|---|---|---|
query | query | string | |
limit | query | integer | |
status | query | string | |
sort | query | string | 以下其中之一: decrease, ascrease |
回應
200A list of wholesale pricings401Unauthorized403This action is unauthorized429Too Many Requests
POST/wholesale-pricings
Create wholesale pricing
請求內文
| 欄位 | 類型 | 說明 |
|---|---|---|
title | string | |
status | boolean | 以下其中之一: true, false |
apply_customer | object | |
apply_customer.type | string | 以下其中之一: all, logged, non-logged, customer-tags |
apply_customer.tags | string[] | |
exclude_customer | object | |
exclude_customer.type | string | 以下其中之一: none, customer-tags |
exclude_customer.tags | string[] | |
apply_product | object | |
apply_product.type | string | 以下其中之一: 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 | 以下其中之一: true, false |
exclude_product | object | |
exclude_product.type | string | 以下其中之一: none, products, collections |
exclude_product.product_ids | integer (int64)[] | |
exclude_product.collection_ids | integer (int64)[] | |
discount_for_variants | object[] | |
discount_for_variants[].id必填 | integer (int64) | |
discount_for_variants[].variant_pricing必填 | boolean | 以下其中之一: true, false |
discount_for_variants[].variants必填 | object[] | |
discount_for_variants[].variants[].id必填 | integer (int64) | |
discount_for_variants[].variants[].discount_groups必填 | object[] | |
discount_for_variants[].variants[].discount_groups[].name必填 | string | |
discount_for_variants[].variants[].discount_groups[].type必填 | string | 以下其中之一: percent, amount, fixed-amount |
discount_for_variants[].variants[].discount_groups[].value必填 | string | |
apply_market | object | |
apply_market.type | string | 以下其中之一: all, specific-market |
apply_market.handle | string[] | |
discount_group | object | |
discount_group.type | string | 以下其中之一: percent, amount, fixed-amount |
discount_group.value | string | |
active_date | object | |
active_date.types | string[] | 以下其中之一: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
回應
200A wholesale pricing401Unauthorized403This action is unauthorized429Too Many Requests
GET/wholesale-pricings/{id}
Get wholesale pricing with ID
參數
| 名稱 | 位置 | 類型 | 說明 |
|---|---|---|---|
id必填 | path | integer |
回應
200A wholesale pricing401Unauthorized403This action is unauthorized404Wholesale pricing not found429Too Many Requests
PUT/wholesale-pricings/{id}
Update wholesale pricing
請求內文
| 欄位 | 類型 | 說明 |
|---|---|---|
title | string | |
status | boolean | 以下其中之一: true, false |
apply_customer | object | |
apply_customer.type | string | 以下其中之一: all, logged, non-logged, customer-tags |
apply_customer.tags | string[] | |
exclude_customer | object | |
exclude_customer.type | string | 以下其中之一: none, customer-tags |
exclude_customer.tags | string[] | |
apply_product | object | |
apply_product.type | string | 以下其中之一: 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 | 以下其中之一: true, false |
exclude_product | object | |
exclude_product.type | string | 以下其中之一: none, products, collections |
exclude_product.product_ids | integer (int64)[] | |
exclude_product.collection_ids | integer (int64)[] | |
discount_for_variants | object[] | |
discount_for_variants[].id必填 | integer (int64) | |
discount_for_variants[].variant_pricing必填 | boolean | 以下其中之一: true, false |
discount_for_variants[].variants必填 | object[] | |
discount_for_variants[].variants[].id必填 | integer (int64) | |
discount_for_variants[].variants[].discount_groups必填 | object[] | |
discount_for_variants[].variants[].discount_groups[].name必填 | string | |
discount_for_variants[].variants[].discount_groups[].type必填 | string | 以下其中之一: percent, amount, fixed-amount |
discount_for_variants[].variants[].discount_groups[].value必填 | string | |
apply_market | object | |
apply_market.type | string | 以下其中之一: all, specific-market |
apply_market.handle | string[] | |
discount_group | object | |
discount_group.type | string | 以下其中之一: percent, amount, fixed-amount |
discount_group.value | string | |
active_date | object | |
active_date.types | string[] | 以下其中之一: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
回應
200A wholesale pricing401Unauthorized403This action is unauthorized429Too Many Requests
DELETE/wholesale-pricings/{ids}
Delete wholesale pricing by IDs
參數
| 名稱 | 位置 | 類型 | 說明 |
|---|---|---|---|
ids必填 | path | integer |
回應
200Delete wholesale pricings401Unauthorized403This action is unauthorized404Wholesale pricing not found429Too Many Requests
這對您有幫助嗎?
感謝您的意見回饋。
謝謝。