API 테스트 사이트
기본 URLhttps://wholesale.samita.io/api/v1
GET/volume-pricings
Get list volume pricings
매개변수
| 이름 | 위치 | 유형 | 설명 |
|---|---|---|---|
query | query | string | |
limit | query | integer | |
status | query | string | |
sort | query | string | 다음 중 하나: decrease, ascrease |
응답
200A list of volume pricings401Unauthorized403This action is unauthorized429Too Many Requests
POST/volume-pricings
Create volume pricing
요청 본문
| 필드 | 유형 | 설명 |
|---|---|---|
title | string | |
status | boolean | 다음 중 하나: true, false |
type | string | |
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 | any[] | |
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[].duplicated | boolean | 다음 중 하나: true, false |
discount_for_variants[].variant_pricing필수 | boolean | 다음 중 하나: true, false |
discount_for_variants[].from_qty | string | |
discount_for_variants[].from_amount | string | |
discount_for_variants[].to_qty | string | |
discount_for_variants[].to_amount | string | |
discount_for_variants[].discount_groups | object[] | |
discount_for_variants[].discount_groups[].name필수 | string | |
discount_for_variants[].discount_groups[].type필수 | string | 다음 중 하나: percent, amount, fixed-amount |
discount_for_variants[].discount_groups[].value필수 | string | |
discount_for_variants[].variants필수 | object[] | |
discount_for_variants[].variants[].id필수 | integer (int64) | |
discount_for_variants[].variants[].duplicated | boolean | 다음 중 하나: true, false |
discount_for_variants[].variants[].from_qty | string | Volume pricing type is quantity |
discount_for_variants[].variants[].from_amount | string | Volume pricing type is amount |
discount_for_variants[].variants[].to_qty | string | Volume pricing type is quantity |
discount_for_variants[].variants[].to_amount | string | Volume pricing type is amount |
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_method | string | |
discount_groups | object[] | |
discount_groups[].from_qty | string | Volume pricing type is quantity |
discount_groups[].from_amount | string | Volume pricing type is amount |
discount_groups[].to_qty | string | Volume pricing type is quantity |
discount_groups[].to_amount | string | Volume pricing type is amount |
discount_groups[].type | string | 다음 중 하나: percent, amount, fixed-amount |
discount_groups[].value | string | |
active_date | object | |
active_date.types | string[] | 다음 중 하나: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
응답
200A volume pricing401Unauthorized403This action is unauthorized429Too Many Requests
GET/volume-pricings/{id}
Get volume pricing with ID
매개변수
| 이름 | 위치 | 유형 | 설명 |
|---|---|---|---|
id필수 | path | integer |
응답
200A volume pricing401Unauthorized403This action is unauthorized404Volume pricing not found429Too Many Requests
PUT/volume-pricings/{id}
Update volume pricing
요청 본문
| 필드 | 유형 | 설명 |
|---|---|---|
title | string | |
status | boolean | 다음 중 하나: true, false |
type | string | |
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 | any[] | |
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[].duplicated | boolean | 다음 중 하나: true, false |
discount_for_variants[].variant_pricing필수 | boolean | 다음 중 하나: true, false |
discount_for_variants[].from_qty | string | |
discount_for_variants[].from_amount | string | |
discount_for_variants[].to_qty | string | |
discount_for_variants[].to_amount | string | |
discount_for_variants[].discount_groups | object[] | |
discount_for_variants[].discount_groups[].name필수 | string | |
discount_for_variants[].discount_groups[].type필수 | string | 다음 중 하나: percent, amount, fixed-amount |
discount_for_variants[].discount_groups[].value필수 | string | |
discount_for_variants[].variants필수 | object[] | |
discount_for_variants[].variants[].id필수 | integer (int64) | |
discount_for_variants[].variants[].duplicated | boolean | 다음 중 하나: true, false |
discount_for_variants[].variants[].from_qty | string | Volume pricing type is quantity |
discount_for_variants[].variants[].from_amount | string | Volume pricing type is amount |
discount_for_variants[].variants[].to_qty | string | Volume pricing type is quantity |
discount_for_variants[].variants[].to_amount | string | Volume pricing type is amount |
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_method | string | |
discount_groups | object[] | |
discount_groups[].from_qty | string | Volume pricing type is quantity |
discount_groups[].from_amount | string | Volume pricing type is amount |
discount_groups[].to_qty | string | Volume pricing type is quantity |
discount_groups[].to_amount | string | Volume pricing type is amount |
discount_groups[].type | string | 다음 중 하나: percent, amount, fixed-amount |
discount_groups[].value | string | |
active_date | object | |
active_date.types | string[] | 다음 중 하나: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
응답
200A volume pricing401Unauthorized403This action is unauthorized429Too Many Requests
DELETE/volume-pricings/{ids}
Delete volume pricing by IDs
매개변수
| 이름 | 위치 | 유형 | 설명 |
|---|---|---|---|
ids필수 | path | integer |
응답
200Delete volume pricings401Unauthorized403This action is unauthorized404Volume pricing not found429Too Many Requests
도움이 되었나요?
피드백을 보내 주셔서 감사합니다.
감사합니다.