Jasmin Developers - Web API Reference

Taxes | SAF-T (CV)

Service to manage entities of type 'LegalDeclarationCV'.

Overview


URL api/{tenantKey}/{orgKey}/taxes/legalDeclarationCVs
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 LegalDeclarationCVs (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 LegalDeclarationCVResource.

Response status codes:

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

Resource URL:

GET /taxes/legalDeclarationCVs/odata

GET LegalDeclarationCV 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 LegalDeclarationCVResource.

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 /taxes/legalDeclarationCVs/{id}

GET LegalDeclarationCV by key

Returns the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential number.

Response:

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

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 /taxes/legalDeclarationCVs/{companyKey}/{legalDeclarationKey}

POST Operations

POST LegalDeclarationCVs

Creates a new entity record.

The following elements are required:

legalDeclarationCVResource (ApiLegalDeclarationCVResource) The request body should contain the entity record that should be created.
See ApiLegalDeclarationCVResource.

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 ApiLegalDeclarationCVResource.

Response status codes:

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

Resource URL:

POST /taxes/legalDeclarationCVs

PUT Operations

PUT Set IsActive LegalDeclarationCV

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

The following elements are required:

legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential 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 /taxes/legalDeclarationCVs/{companyKey}/{legalDeclarationKey}/isActive

PUT Set Note LegalDeclarationCV

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

The following elements are required:

legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential 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 /taxes/legalDeclarationCVs/{companyKey}/{legalDeclarationKey}/note

PUT Set Remarks LegalDeclarationCV

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

The following elements are required:

legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential 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 /taxes/legalDeclarationCVs/{companyKey}/{legalDeclarationKey}/remarks

DELETE Operations

DELETE LegalDeclarationCV 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 /taxes/legalDeclarationCVs/{id}

DELETE LegalDeclarationCV by key

Deletes the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential 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 /taxes/legalDeclarationCVs/{companyKey}/{legalDeclarationKey}

Resources


ApiLegalDeclarationCVResource

The following elements are required:

legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential number.
documentDate (DateTime) The document's date.
startDate (DateTime) The legal declaration's initial date. Sets the date from which documents should be included on SAF-T.
endDate (DateTime) The legal declaration's final date. Sets the date up to which documents should be included on SAF-T.
company (string) Company.
auditFileVersion (enum AuditFileVersionCV) The audit file's version. Indicates the SAF-T version used in the legal declaration.
See AuditFileVersionCV.
legalDeclarationType (enum LegalDeclarationCVType) The legal declaration's purpose.
See LegalDeclarationCVType.
year (int) Year.

The following elements are optional:

note (string) The legal declaration's note.
remarks (string) The legal declaration's remarks.


LegalDeclarationCVResource

The following elements are required:

legalDeclarationKey (string) The legal declaration's key. By default, it is a sequential number.
documentDate (DateTime) The document's date.
startDate (DateTime) The legal declaration's initial date. Sets the date from which documents should be included on SAF-T.
endDate (DateTime) The legal declaration's final date. Sets the date up to which documents should be included on SAF-T.
company (string) Company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service.
status (enum LegalDeclarationState) The legal declaration's status.
See LegalDeclarationState.
auditFileVersion (enum AuditFileVersionCV) The audit file's version. Indicates the SAF-T version used in the legal declaration.
See AuditFileVersionCV.
legalDeclarationType (enum LegalDeclarationCVType) The legal declaration's purpose.
See LegalDeclarationCVType.
year (int) Year.

The following elements are optional:

note (string) The legal declaration's note.
remarks (string) The legal declaration's remarks.


Enumerations


AuditFileVersionCV

1 Version10101


LegalDeclarationCVType

1 Inventory


LegalDeclarationState

1 Pending
2 Processing
3 Succeeded
4 Failed