Método
- Node.js
import { Malga } from 'malga'
const malga = new Malga({
apiKey: '8468a624-68c1-49a3-b9f1-a22455053a38',
clientId: 'ebb9c69c-4ad6-49fd-a565-a35cb4c967b3',
})
await malga.sellers.find('469cd18c-fe20-45f1-bb19-d8871af60308')
- Response
{
id: '469cd18c-fe20-45f1-bb19-d8871af60308',
clientId: 'ebb9c69c-4ad6-49fd-a565-a35cb4c967b3',
status: 'pending',
merchantId: '2ed73b94-175a-438d-ae73-d11902492b75',
mcc: 4040,
owner: {
name: 'João da Silva',
email: 'joao.silva@test.com',
phoneNumber: '99999999999',
birthdate: '2000-12-31'
document: {
number: '99999999999',
type: 'cpf',
country: 'BR'
},
address: {
city: 'Rio de Janeiro',
complement: 'Sala 214',
country: 'BR',
district: 'São Conrado',
state: 'RJ',
street: 'Estrada da Gávea',
streetNumber: '696',
zipCode: '22610002'
}
},
bankAccount: {
holderName: 'João da Silva'
holderDocument: '99999999999',
bank: '077'
branchNumber: '492',
accountNumber: '4929',
type: 'conta_corrente'
},
transferPolicy: {
transferDay: '5'
transferEnabled: true
transferInterval: 'monthly'
},
providers: [{
providerType: 'SANDBOX',
externalId: '1103976',
externalStatus: 'active',
externalStatusReason: 'ok',
status: 'active',
createdAt: '2023-12-31T16:08:39.536Z',
updatedAt: '2023-12-31T16:08:39.536Z'
}]
}
Parâmetros
Lista de todos os parâmetros suportados pelo método.uuid
required
ID do cartão