Pular para o conteúdo

Benefícios

benefitsnamespace

Clube de benefícios, saldo e histórico.

3métodos
benefitsnamespace

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

GET/benefits/user/balance

Assinatura:

getBalance(settings?: SdkSettings): Promise<GetBalanceResponse>
type GetBalanceResponse = unknown;
const response = await sdk.benefits.getBalance();

Testar esta função no playground

GET/user/benefits/coupons/:id

Assinatura:

getCoupon(id: string, settings?: SdkSettings): Promise<GetCouponResponse>
Nome Tipo
id string
type GetCouponParams = { "id": string; };
type GetCouponResponse = { "coupon": { "id": string; "status": string; "code": string | null; "pin": string | null; "activationUrl": string | null; "qrCode": string | null; "faceValue": string | null; "pointsSpent": number | null; "providerCoupon": boolean; "redeemedAt": string | null; "activatesAt": string | null; "expiresAt": string | null; "description": string | null; "howToRedeem": string | null; "item": { "id": string; "slug": string; "title": string; "thumbnailUrl": string | null; } | null; }; };
const response = await sdk.benefits.getCoupon("string");

Testar esta função no playground

GET/user/benefits/history

Assinatura:

getHistory(query?: GetHistoryQuery, settings?: SdkSettings): Promise<GetHistoryResponse>
Nome Tipo Obrigatório
page number sim
type GetHistoryQuery = { "page": number; };
type GetHistoryResponse = unknown;
const response = await sdk.benefits.getHistory({ "page": 0 });

Testar esta função no playground