Site de teste da API
URL basehttps://wholesale.samita.io/api/v1
GET/wholesale-pricings
Get list wholesale pricings
Parâmetros
| Nome | Local | Tipo | Descrição |
|---|---|---|---|
query | query | string | |
limit | query | integer | |
status | query | string | |
sort | query | string | Um de: decrease, ascrease |
Respostas
200A list of wholesale pricings401Unauthorized403This action is unauthorized429Too Many Requests
POST/wholesale-pricings
Create wholesale pricing
Corpo da solicitação
| Campo | Tipo | Descrição |
|---|---|---|
title | string | |
status | boolean | Um de: true, false |
apply_customer | object | |
apply_customer.type | string | Um de: all, logged, non-logged, customer-tags |
apply_customer.tags | string[] | |
exclude_customer | object | |
exclude_customer.type | string | Um de: none, customer-tags |
exclude_customer.tags | string[] | |
apply_product | object | |
apply_product.type | string | Um de: 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 | Um de: true, false |
exclude_product | object | |
exclude_product.type | string | Um de: none, products, collections |
exclude_product.product_ids | integer (int64)[] | |
exclude_product.collection_ids | integer (int64)[] | |
discount_for_variants | object[] | |
discount_for_variants[].idobrigatório | integer (int64) | |
discount_for_variants[].variant_pricingobrigatório | boolean | Um de: true, false |
discount_for_variants[].variantsobrigatório | object[] | |
discount_for_variants[].variants[].idobrigatório | integer (int64) | |
discount_for_variants[].variants[].discount_groupsobrigatório | object[] | |
discount_for_variants[].variants[].discount_groups[].nameobrigatório | string | |
discount_for_variants[].variants[].discount_groups[].typeobrigatório | string | Um de: percent, amount, fixed-amount |
discount_for_variants[].variants[].discount_groups[].valueobrigatório | string | |
apply_market | object | |
apply_market.type | string | Um de: all, specific-market |
apply_market.handle | string[] | |
discount_group | object | |
discount_group.type | string | Um de: percent, amount, fixed-amount |
discount_group.value | string | |
active_date | object | |
active_date.types | string[] | Um de: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
Respostas
200A wholesale pricing401Unauthorized403This action is unauthorized429Too Many Requests
GET/wholesale-pricings/{id}
Get wholesale pricing with ID
Parâmetros
| Nome | Local | Tipo | Descrição |
|---|---|---|---|
idobrigatório | path | integer |
Respostas
200A wholesale pricing401Unauthorized403This action is unauthorized404Wholesale pricing not found429Too Many Requests
PUT/wholesale-pricings/{id}
Update wholesale pricing
Corpo da solicitação
| Campo | Tipo | Descrição |
|---|---|---|
title | string | |
status | boolean | Um de: true, false |
apply_customer | object | |
apply_customer.type | string | Um de: all, logged, non-logged, customer-tags |
apply_customer.tags | string[] | |
exclude_customer | object | |
exclude_customer.type | string | Um de: none, customer-tags |
exclude_customer.tags | string[] | |
apply_product | object | |
apply_product.type | string | Um de: 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 | Um de: true, false |
exclude_product | object | |
exclude_product.type | string | Um de: none, products, collections |
exclude_product.product_ids | integer (int64)[] | |
exclude_product.collection_ids | integer (int64)[] | |
discount_for_variants | object[] | |
discount_for_variants[].idobrigatório | integer (int64) | |
discount_for_variants[].variant_pricingobrigatório | boolean | Um de: true, false |
discount_for_variants[].variantsobrigatório | object[] | |
discount_for_variants[].variants[].idobrigatório | integer (int64) | |
discount_for_variants[].variants[].discount_groupsobrigatório | object[] | |
discount_for_variants[].variants[].discount_groups[].nameobrigatório | string | |
discount_for_variants[].variants[].discount_groups[].typeobrigatório | string | Um de: percent, amount, fixed-amount |
discount_for_variants[].variants[].discount_groups[].valueobrigatório | string | |
apply_market | object | |
apply_market.type | string | Um de: all, specific-market |
apply_market.handle | string[] | |
discount_group | object | |
discount_group.type | string | Um de: percent, amount, fixed-amount |
discount_group.value | string | |
active_date | object | |
active_date.types | string[] | Um de: start_date, end_date |
active_date.start_at | string | |
active_date.end_at | string |
Respostas
200A wholesale pricing401Unauthorized403This action is unauthorized429Too Many Requests
DELETE/wholesale-pricings/{ids}
Delete wholesale pricing by IDs
Parâmetros
| Nome | Local | Tipo | Descrição |
|---|---|---|---|
idsobrigatório | path | integer |
Respostas
200Delete wholesale pricings401Unauthorized403This action is unauthorized404Wholesale pricing not found429Too Many Requests
Isso foi útil?
Agradecemos seu feedback.
Obrigado.