Cobrança
billingnamespaceTentativas de cobrança e status de pagamento.
1método
billingnamespaceEsta página é gerada automaticamente pelo
@luckymaker/sdk-generator. Não edite manualmente.
listAttempts
Seção intitulada “listAttempts”GET
/user/billingAttemptsAssinatura:
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; }>;Exemplo
Seção intitulada “Exemplo”const response = await sdk.billing.listAttempts();