Tokenization SDK
API SDKs
- Introdução
- Getting started
- Documentação
- Introdução
- Auth
- Charges
- Cards
- Customers
- Sandbox
- Sellers
- Sessions
- Webhooks
- Exemplos API SDKs
UI SDKs
- Introdução
- Checkout
- Checkout Full
Plugins
Sessions
Listar sessões
API SDK Documentação - Sessions
Liste todos as suas sessões.
Método
import { Malga } from 'malga'
const malga = new Malga({
apiKey: '17a64c8f-a387-4682-bdd8-d280493715e0',
clientId: 'd1d2b51a-0446-432a-b055-034518c2660e',
})
await malga.sessions.list()
import { Malga } from 'malga'
const malga = new Malga({
apiKey: '17a64c8f-a387-4682-bdd8-d280493715e0',
clientId: 'd1d2b51a-0446-432a-b055-034518c2660e',
})
await malga.sessions.list()
{
items: [
{
id: 'bbc9d986-b65e-48fe-b879-2e1df10aea87',
name: 'Link de Pagamento',
status: 'created',
isActive: true,
clientId: 'd1d2b51a-0446-432a-b055-034518c2660e',
orderId: null,
amount: 100,
currency: 'BRL',
capture: null,
merchantId: '8cfef0d1-73af-4bdb-b6c4-09ad3fbfc7f1',
dueDate: '2023-12-31T03:00:00.000Z',
description: null,
statementDescriptor: null,
items: [
{
name: 'Produto 1',
description: null,
unitPrice: 100,
quantity: 1,
tangible: null
}
],
paymentLink: '',
paymentMethods: [
{
paymentType: 'pix',
expiresIn: 500
},
{
paymentType: 'credit',
installments: 1,
recurrence: null
},
{
paymentType: 'boleto',
expiresDate: '2023-12-31T00:00:00.000Z',
instructions: null
},
{
paymentType: 'drip',
successRedirectUrl: null,
cancelRedirectUrl: null
}
],
createdAt: '2023-01-31T00:00:00.000Z',
updatedAt: '2023-01-31T00:00:00.000Z',
publicKey: 'b8d59a73-fd16-4d6b-9e0f-9d7b2a8a7e6d',
}
],
meta: {
totalItems: 1
itemCount: 1
itemsPerPage: 15
totalPages: 1
currentPage: 1
}
}
{
items: [
{
id: 'bbc9d986-b65e-48fe-b879-2e1df10aea87',
name: 'Link de Pagamento',
status: 'created',
isActive: true,
clientId: 'd1d2b51a-0446-432a-b055-034518c2660e',
orderId: null,
amount: 100,
currency: 'BRL',
capture: null,
merchantId: '8cfef0d1-73af-4bdb-b6c4-09ad3fbfc7f1',
dueDate: '2023-12-31T03:00:00.000Z',
description: null,
statementDescriptor: null,
items: [
{
name: 'Produto 1',
description: null,
unitPrice: 100,
quantity: 1,
tangible: null
}
],
paymentLink: '',
paymentMethods: [
{
paymentType: 'pix',
expiresIn: 500
},
{
paymentType: 'credit',
installments: 1,
recurrence: null
},
{
paymentType: 'boleto',
expiresDate: '2023-12-31T00:00:00.000Z',
instructions: null
},
{
paymentType: 'drip',
successRedirectUrl: null,
cancelRedirectUrl: null
}
],
createdAt: '2023-01-31T00:00:00.000Z',
updatedAt: '2023-01-31T00:00:00.000Z',
publicKey: 'b8d59a73-fd16-4d6b-9e0f-9d7b2a8a7e6d',
}
],
meta: {
totalItems: 1
itemCount: 1
itemsPerPage: 15
totalPages: 1
currentPage: 1
}
}
Parâmetros
Lista de todos os parâmetros suportados pelo método.
Número da página que deverá ser listada
Limite de itens por página
Ordenação da listagem, padrão é ASC
Os valores suportados são: ASC
ou DESC
Data inicial do período filtrado
Data final do período filtrado
Sessoões ativadas ou desativadas
Status atual da sessão
Was this page helpful?
On this page
Assistant
Responses are generated using AI and may contain mistakes.