Jasmin Developers - Web API Reference

Taxes | DNRE Communication Request

Service to manage entities of type 'AuthorityCommunicationRequestCV'.

Overview


URL api/{tenantKey}/{orgKey}/taxesCore/authorityCommunicationRequestCVs
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

All Enumerations

This service uses the following enumerations:

GET Operations

GET AuthorityCommunicationRequestCVs (odata)

Returns a page of the list of all the entity records available.

The following elements are optional:

opts (ODataQueryOptions) OData query option.

Response:

When successful, the response body contains the list of records available. See AuthorityCommunicationRequestCVResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /taxesCore/authorityCommunicationRequestCVs/odata

GET AuthorityCommunicationRequestCV by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See AuthorityCommunicationRequestCVResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /taxesCore/authorityCommunicationRequestCVs/{id}

GET AuthorityCommunicationRequestCV by key

Returns the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
requestKey (int) The request's key. It is an auto number.

Response:

When successful, the response body contains the entity record. See AuthorityCommunicationRequestCVResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}

POST Operations

POST AuthorityCommunicationRequestCVs

Creates a new entity record.

The following elements are required:

authorityCommunicationRequestCVResource (ApiAuthorityCommunicationRequestCVResource) The request body should contain the entity record that should be created.
See ApiAuthorityCommunicationRequestCVResource.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiAuthorityCommunicationRequestCVResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /taxesCore/authorityCommunicationRequestCVs

PUT Operations

PUT Set CommunicationAttempts AuthorityCommunicationRequestCV

Updates the value of attribute 'CommunicationAttempts' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (int) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/communicationAttempts

PUT Set CommunicationStatus AuthorityCommunicationRequestCV

Updates the value of attribute 'CommunicationStatus' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (enum AuthorityCommunicationState) The request body should contain the new value for the attribute.
See AuthorityCommunicationState.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/communicationStatus

PUT Set Company AuthorityCommunicationRequestCV

Updates the value of attribute 'Company' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/company

PUT Set IsActive AuthorityCommunicationRequestCV

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/isActive

PUT Set Led AuthorityCommunicationRequestCV

Updates the value of attribute 'Led' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/led

PUT Set OperationType AuthorityCommunicationRequestCV

Updates the value of attribute 'OperationType' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (enum AuthorityCVOperationType) The request body should contain the new value for the attribute.
See AuthorityCVOperationType.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/operationType

PUT Set RequestKey AuthorityCommunicationRequestCV

Updates the value of attribute 'RequestKey' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (int) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/requestKey

PUT Set RequestMessageXML AuthorityCommunicationRequestCV

Updates the value of attribute 'RequestMessageXML' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/requestMessageXML

PUT Set ResponseDescription AuthorityCommunicationRequestCV

Updates the value of attribute 'ResponseDescription' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/responseDescription

PUT Set ResponseDocumentId AuthorityCommunicationRequestCV

Updates the value of attribute 'ResponseDocumentId' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/responseDocumentId

PUT Set SourceDoc AuthorityCommunicationRequestCV

Updates the value of attribute 'SourceDoc' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/sourceDoc

PUT Set SourceDocId AuthorityCommunicationRequestCV

Updates the value of attribute 'SourceDocId' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (Guid) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/sourceDocId

PUT Set SourceSchemaEntityId AuthorityCommunicationRequestCV

Updates the value of attribute 'SourceSchemaEntityId' in the specified entity record.

The following elements are required:

requestKey (int) The request's key. It is an auto number.
companyKey (string) The company key.
value (Guid) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}/sourceSchemaEntityId

DELETE Operations

DELETE AuthorityCommunicationRequestCV by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /taxesCore/authorityCommunicationRequestCVs/{id}

DELETE AuthorityCommunicationRequestCV by key

Deletes the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
requestKey (int) The request's key. It is an auto number.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /taxesCore/authorityCommunicationRequestCVs/{companyKey}/{requestKey}

Resources


ApiAuthorityCommunicationRequestCVResource

The following elements are required:

requestKey (int) The request's key. It is an auto number.
sourceDocId (Guid) The document's identifier. Indicates the document comunicated on this request.
sourceSchemaEntityId (Guid) The document's source schema entity identifier. Indicates the schema entity of the document comunicated on this request.
sourceDoc (string) The source document using the format {..}. Indicates the natural key of the document comunicated on this request.
company (string) Company.

The following elements are optional:

requestMessageXML (string) The actual XML message sent to the AT.
responseDocumentId (string) The identifier of the document returned by the DNRE webservice.
responseDescription (string) The response's description returned by the DNRE webservice.
communicationStatus (enum AuthorityCommunicationState) The request's status. Indicates the status of the request.
See AuthorityCommunicationState.
led (string) Place of issue of the document. It is required for electronic communication of the document in Cape Verde.
communicationAttempts (int) The number of communication attempts for the current request.
operationType (enum AuthorityCVOperationType) The request's operation type. Indicates if it is a register request or change status request.
See AuthorityCVOperationType.


AuthorityCommunicationRequestCVResource

The following elements are required:

requestKey (int) The request's key. It is an auto number.
sourceDocId (Guid) The document's identifier. Indicates the document comunicated on this request.
sourceSchemaEntityId (Guid) The document's source schema entity identifier. Indicates the schema entity of the document comunicated on this request.
sourceDoc (string) The source document using the format {..}. Indicates the natural key of the document comunicated on this request.
company (string) Company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service.

The following elements are optional:

requestMessageXML (string) The actual XML message sent to the AT.
responseDocumentId (string) The identifier of the document returned by the DNRE webservice.
responseDescription (string) The response's description returned by the DNRE webservice.
communicationStatus (enum AuthorityCommunicationState) The request's status. Indicates the status of the request.
See AuthorityCommunicationState.
led (string) Place of issue of the document. It is required for electronic communication of the document in Cape Verde.
communicationAttempts (int) The number of communication attempts for the current request.
operationType (enum AuthorityCVOperationType) The request's operation type. Indicates if it is a register request or change status request.
See AuthorityCVOperationType.


Enumerations


AuthorityCommunicationState

1 Pending
2 Processing
3 Succeeded
4 Failed


AuthorityCVOperationType

1 Register
2 Cancelation