STA File Transfer System WebService Interface Manual
This manual, version 1.0, describes the web services of the Previc Sistema de Transferência de Arquivos (STA). The services follow REST and are intended to automate queries of transferred or available files, file upload, and file download. Manual file transfers are made through the STA web interface.
The manual covers access authorization through GERID and SISPREVIC.STA.EXTERNO or SISPREVIC.STA.INTERNO, Basic Authentication, HTTPS traffic, MD5 file integrity checks, and XML document requirements. It also gives a connectivity test, upload and download request examples, query endpoints, and Previc support information. This manual is written in Portuguese.
| Web service standard | REST |
|---|---|
| Authentication | Basic Authentication |
| Secure transport | HTTPS |
| Hash algorithm | MD5 |
| Maximum upload file size | 1 MB |
| Upload protocol validity | 48 hours |
| Maximum protocols per query page | 1,000 |
| XML support | Reading and manipulation of XML documents |
They use Basic Authentication; the login is the same used for GerID, generally the user's CPF.
MD5. The hash must be calculated over the complete content of the compressed file to be transmitted.
The maximum file size for upload is 1MB.
A file query returns at most 1,000 protocols per page.