Pular para o conteúdo

Loja

ecommercenamespace

Catálogo, produtos e resgate de itens.

5métodos
ecommercenamespace

Esta página é gerada automaticamente pelo @luckymaker/sdk-generator. Não edite manualmente.

GET/ecommerce/items/:id

Assinatura:

getItem(id: string, settings?: SdkSettings): Promise<GetItemResponse>
Nome Tipo
id string
type GetItemParams = { "id": string; };
type GetItemResponse = unknown;
const response = await sdk.ecommerce.getItem("string");

Testar esta função no playground

GET/ecommerce/brands

Assinatura:

listBrands(query?: ListBrandsQuery, settings?: SdkSettings): Promise<ListBrandsResponse>
Nome Tipo Obrigatório
page number não
ids string não
slugs string não
q string não
type ListBrandsQuery = { "page"?: number; "ids"?: string; "slugs"?: string; "q"?: string; };
type ListBrandsResponse = unknown;
const response = await sdk.ecommerce.listBrands();

Testar esta função no playground

GET/ecommerce/categories

Assinatura:

listCategories(settings?: SdkSettings): Promise<ListCategoriesResponse>
type ListCategoriesResponse = unknown;
const response = await sdk.ecommerce.listCategories();

Testar esta função no playground

GET/ecommerce/items

Assinatura:

listItems(query?: ListItemsQuery, settings?: SdkSettings): Promise<ListItemsResponse>
Nome Tipo Obrigatório
highlighted boolean não
related_to string | number não
category string | number não
brand string não
q string não
limit number não
offset number não
type ListItemsQuery = { "highlighted"?: boolean; "related_to"?: string | number; "category"?: string | number; "brand"?: string; "q"?: string; "limit"?: number; "offset"?: number; };
type ListItemsResponse = unknown;
const response = await sdk.ecommerce.listItems();

Testar esta função no playground

POST/ecommerce/items/:id/redeem

Assinatura:

redeemItem(id: string, settings?: SdkSettings): Promise<RedeemItemResponse>
Nome Tipo
id string
type RedeemItemParams = { "id": string; };
type RedeemItemResponse = unknown;
const response = await sdk.ecommerce.redeemItem("string");

Testar esta função no playground