Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gipsh/afip-public
AFIP public API helper
https://github.com/gipsh/afip-public
Last synced: about 1 month ago
JSON representation
AFIP public API helper
- Host: GitHub
- URL: https://github.com/gipsh/afip-public
- Owner: gipsh
- License: mit
- Created: 2017-06-13T02:46:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-14T02:32:58.000Z (over 7 years ago)
- Last Synced: 2024-10-18T15:49:57.080Z (2 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# afip-public
AFIP public API helper## How to use it
```ruby
require 'afip-public'padron = AfipPublic::Padron.new
persona = padron.get_persona('20131204699').to_json
=> "{\"success\":true,\"data\":{\"idPersona\":20131204699,\"tipoPersona\":\"FISICA\",\"tipoClave\":\"CUIT\",\"estadoClave\":\"ACTIVO\",\"nombre\":\"MACRI MAURICIO\",\"tipoDocumento\":\"DNI\",\"numeroDocumento\":\"13120469\",\"domicilioFiscal\":{\"direccion\":\"CORRIENTES AV. 545 Piso:10 Dpto:CF\",\"codPostal\":\"1043\",\"idProvincia\":0},\"idDependencia\":19,\"mesCierre\":12,\"fechaInscripcion\":\"1901-01-01\",\"impuestos\":[11,25,32],\"actividades\":[11,681098]}}"
```## Install
```bash
git clone https://github.com/gipsh/afip-public
``````bash
gem build afippublic.gemspec
``````bash
gem install afip-public-x.x.x.gem
```## Supported methods
From AFIP documentation:
/sr-padron/v2/persona/
/sr-padron/v2/personas/
/sr-padron/v1/constancia/
/av/v1/vencimientos/
/av/v1/vencimientos//
/parametros/v1/impuestos
/parametros/v1/conceptos
/parametros/v1/caracterizaciones
/parametros/v1/categoriasMonotributo
/parametros/v1/categoriasAutonomo
/parametros/v1/actividades
/parametros/v1/provincias
/parametros/v2/dependencias