Pular para o conteúdo

Cobrança

billingnamespace

Tentativas de cobrança e status de pagamento.

1método
billingnamespace

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

GET/user/billingAttempts

Assinatura:

listAttempts(query?: ListAttemptsQuery, settings?: SdkSettings): Promise<ListAttemptsResponse>
Nome Tipo Obrigatório
page number não
perPage number não
resourceType "SUBSCRIPTION" não
status "PENDING" | "SUCCESS" | "FAILED" não
type ListAttemptsQuery = { "page"?: number; "perPage"?: number; "resourceType"?: "SUBSCRIPTION"; "status"?: "PENDING" | "SUCCESS" | "FAILED"; };
type ListAttemptsResponse = Array<{ "id": string; "status": string; "value": number; "paymentMethod": "CARD" | "PICPAY" | "PIX" | "CREDITS" | "API" | "POINTS" | "DIGITAL_WALLET"; "resource": { "label": string; }; "payment": { "uuid": string; "status": string; } | null; "createdAt": string; }>;
const response = await sdk.billing.listAttempts();

Testar esta função no playground