Saltar al contenido principal

Ublhub API (2.0.0-Beta4)

Download OpenAPI specification:Download

Ublhub REST API definitions for you to consume.

Document File Resource

/api/api/namespaces/{projectId}/document-files/{documentId}

path Parameters
documentId
required
integer <int64>
projectId
required
integer <int64>
query Parameters
requestedFile
string
Default: "ubl"
requestedFormat
string
Default: "zip"

Responses

Project Resource

List projects

List all projects

Authorizations:
NoneNone

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create project

Create a project

Authorizations:
NoneNone
Request Body schema: application/json
id
string
name
required
string
description
string <= 250 characters
required
object (SunatDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

List projects

List all projects

Request Body schema: application/json
name
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
"string"

Get project

Get one project

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Update project

Update one project

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>
Request Body schema: application/json
id
string
name
required
string
description
string <= 250 characters
required
object (SunatDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Delete project

Delete one project

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>

Responses

Company Resource

List companies

List all companies

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create company

Create a company

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>
Request Body schema: application/json
id
string
ruc
required
string = 11 characters
name
required
string
description
string <= 250 characters
object (SunatDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "ruc": "stringstrin",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "ruc": "stringstrin",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Get company

Get one company

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "ruc": "stringstrin",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Update company

Update one company

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
projectId
required
integer <int64>
Request Body schema: application/json
id
string
ruc
required
string = 11 characters
name
required
string
description
string <= 250 characters
object (SunatDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "ruc": "stringstrin",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "ruc": "stringstrin",
  • "name": "string",
  • "description": "string",
  • "sunat": {
    }
}

Delete company

Delete one company

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
projectId
required
integer <int64>

Responses

Keys Resource

Get company components

List of components

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
projectId
required
integer <int64>
query Parameters
name
string
parent
integer <int64>
type
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a company component

Create component

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
projectId
required
integer <int64>
Request Body schema: application/json
id
string
name
string
providerId
string
providerType
string
parentId
string
subType
string
object

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Get company component

Get one component

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
componentId
required
integer <int64>
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Update company component

Update a component

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
componentId
required
integer <int64>
projectId
required
integer <int64>
Request Body schema: application/json
id
string
name
string
providerId
string
providerType
string
parentId
string
subType
string
object

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Delete a company component

Delete a component

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
componentId
required
integer <int64>
projectId
required
integer <int64>

Responses

Get company keys

List of keys

Authorizations:
NoneNone
path Parameters
companyId
required
integer <int64>
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "active": {
    },
  • "keys": [
    ]
}

Get project components

List of components

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>
query Parameters
name
string
parent
integer <int64>
type
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a project component

Create component

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>
Request Body schema: application/json
id
string
name
string
providerId
string
providerType
string
parentId
string
subType
string
object

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Get project component

Get one component

Authorizations:
NoneNone
path Parameters
componentId
required
integer <int64>
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Update project component

Update a component

Authorizations:
NoneNone
path Parameters
componentId
required
integer <int64>
projectId
required
integer <int64>
Request Body schema: application/json
id
string
name
string
providerId
string
providerType
string
parentId
string
subType
string
object

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "providerId": "string",
  • "providerType": "string",
  • "parentId": "string",
  • "subType": "string",
  • "config": {
    }
}

Delete a project component

Delete a component

Authorizations:
NoneNone
path Parameters
componentId
required
integer <int64>
projectId
required
integer <int64>

Responses

Get project keys

List of keys

Authorizations:
NoneNone
path Parameters
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "active": {
    },
  • "keys": [
    ]
}

Document Resource

/api/api/projects/{projectId}/documents

path Parameters
projectId
required
integer <int64>
query Parameters
documentType
Array of strings
filterText
string
limit
integer <int32>
Default: "10"
offset
integer <int32>
Default: "0"
ruc
Array of strings
sort_by
Array of strings
Default: "created:desc"

Responses

Response samples

Content type
application/json
{
  • "count": 0,
  • "items": [
    ]
}

/api/api/projects/{projectId}/documents

path Parameters
projectId
required
integer <int64>
Request Body schema: application/json
arrays

Responses

Request samples

Content type
application/json
[ ]

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": 0,
  • "updated": 0,
  • "status": {
    }
}

/api/api/projects/{projectId}/documents/{documentId}

path Parameters
documentId
required
integer <int64>
projectId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": 0,
  • "updated": 0,
  • "status": {
    }
}

/api/api/projects/{projectId}/documents/{documentId}/cdr

path Parameters
documentId
required
integer <int64>
projectId
required
integer <int64>
query Parameters
unzip
boolean
Default: true

Responses

/api/api/projects/{projectId}/documents/{documentId}/xml

path Parameters
documentId
required
integer <int64>
projectId
required
integer <int64>
query Parameters
unzip
boolean
Default: true

Responses

/api/api/projects/{projectId}/enrich-document

path Parameters
projectId
required
integer <int64>
Request Body schema: application/json
arrays

Responses

Request samples

Content type
application/json
[ ]

Response samples

Content type
application/json
{ }

/api/api/projects/{projectId}/render-document

path Parameters
projectId
required
integer <int64>
Request Body schema: application/json
arrays

Responses

Request samples

Content type
application/json
[ ]

/api/api/projects/{projectId}/upload/document

path Parameters
projectId
required
integer <int64>
Request Body schema: multipart/form-data
file
object (FileUpload)

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": 0,
  • "updated": 0,
  • "status": {
    }
}

Server Info Resource

/api/api/server-info

Responses

Response samples

Content type
application/json
{
  • "componentTypes": {
    }
}