Skip to content

UANATACA RA API DOCUMENTATION (v1)

Download OpenAPI description
Languages
Servers

https://api.uanataca.com/

Operations
Operations
Operations
Operations
Operations

Request

Generates a contract associated to a request that must be signed by a RAO.
The contract is signed in the approve request call.

Path
idstringrequired

The unique identifier of the Request

Bodyapplication/json
doctypestring

The contract type

Enum"contract""contract_renew"
curl -i -X POST \
  'https://api.uanataca.com/api/v1/requests/{id}/generate_document' \
  -H 'Content-Type: application/json' \
  -d '{
    "doctype": "contract"
  }'

Responses

Successful Response

Bodyapplication/json
documentstring

The document ready for PDF conversion

Response
application/json
{ "document": "%PDF-1.4\n%���� ReportLab Generated PDF document http://www.reportlab.com\n1 0 obj\n<<\n/F1 2 0 R\n>>\nendobj\n2 0 obj\n<<\n/Bas (...) " }

Request

Upload the required documentation for certificate issuance.

Path
idstringrequired

The unique identifier of the Request

Bodymultipart/form-datarequired
documentstringrequired

The file to be uploaded

typestringrequired

The type of the document to be uploaded

Enum"document_front""document_rear""document_owner""extra_document"
curl -i -X POST \
  'https://api.uanataca.com/api/v1/requests/{id}/pl_upload_document' \
  -H 'Content-Type: multipart/form-data' \
  -F document=string \
  -F type=document_front

Responses

Successful Response

Bodyapplication/json
pknumber

The document database id

typenumber

The uploaded document type

Response
application/json
{ "pk": 48312, "type": "document_front" }

Request

Delete an identification document previously uploaded.

Path
idstringrequired

The unique identifier of the Request

Bodymultipart/form-datarequired
docpkstringrequired

The database primary key of the document to be deleted

curl -i -X POST \
  'https://api.uanataca.com/api/v1/requests/{id}/pl_delete_document' \
  -H 'Content-Type: multipart/form-data' \
  -F docpk=string

Responses

Successful Response

Bodyapplication/json
statusstring

The successful response status message

Response
application/json
{ "status": "Document deleted successfully" }
Operations
Operations