Skip to content

Library to search RUC on SUNAT database

License

Notifications You must be signed in to change notification settings

jmontes50/ruc-peru

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruc-peru

Library to search RUC on SUNAT database

npm install rucperu

🇵🇪 Spanish - Español

Get Token

You have to create an account on https://ruc.conflux.pe

Use

const rucPeru = require('ruc-peru');

(async function(){
	const TOKEN = 'XXXXXX';
	const client = new rucPeru(TOKEN);

	const ruc = await client.ruc('20100128056');
	const dni = await client.dni('06477277');
	const afp = await client.afp();

	console.log({ ruc, dni, afp });
})();

Explicit token

You can configure process.env.RUC_TOKEN as your default token. In that case, it's no longer require the token on instance declaration.

About

Library to search RUC on SUNAT database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%