Jasmin Developers - Web API Reference

Financials | Cash Flow Item

Service to manage entities of type 'CashFlowItem'.

Overview


URL api/{tenantKey}/{orgKey}/financialCore/cashFlowItems
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 CashFlowItems (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 CashFlowItemResource.

Response status codes:

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

Resource URL:

GET /financialCore/cashFlowItems/odata

GET CashFlowItem 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 CashFlowItemResource.

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 /financialCore/cashFlowItems/{id}

GET CashFlowItem by key

Returns the entity record that matches the specified key.

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.

Response:

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

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 /financialCore/cashFlowItems/{cashFlowItemKey}

POST Operations

POST CashFlowItems

Creates a new entity record.

The following elements are required:

cashFlowItemResource (ApiCashFlowItemResource) The request body should contain the entity record that should be created.
See ApiCashFlowItemResource.

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

Response status codes:

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

Resource URL:

POST /financialCore/cashFlowItems

PUT Operations

PUT Set CashFlowItemKey CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's 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 /financialCore/cashFlowItems/{cashFlowItemKey}/cashFlowItemKey

PUT Set Description CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's 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 /financialCore/cashFlowItems/{cashFlowItemKey}/description

PUT Set IsActive CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's 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 /financialCore/cashFlowItems/{cashFlowItemKey}/isActive

PUT Set ItemTaxSchema CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's 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 /financialCore/cashFlowItems/{cashFlowItemKey}/itemTaxSchema

PUT Set ItemWithholdingTaxSchema CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's 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 /financialCore/cashFlowItems/{cashFlowItemKey}/itemWithholdingTaxSchema

PUT Set Nature CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.
value (enum Nature) The request body should contain the new value for the attribute.
See Nature.

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 /financialCore/cashFlowItems/{cashFlowItemKey}/nature

PUT Set ValidFrom CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.
value (DateTime) 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 /financialCore/cashFlowItems/{cashFlowItemKey}/validFrom

PUT Set ValidTo CashFlowItem

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

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.
value (DateTime) 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 /financialCore/cashFlowItems/{cashFlowItemKey}/validTo

DELETE Operations

DELETE CashFlowItem 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 /financialCore/cashFlowItems/{id}

DELETE CashFlowItem by key

Deletes the entity record that matches the specified key.

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.

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 /financialCore/cashFlowItems/{cashFlowItemKey}

Resources


ApiCashFlowItemResource

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.
nature (enum Nature) The cashflow item's natural which indicates if it is credit or debit.
See Nature.

The following elements are optional:

description (string) The cashflow item's description.
validFrom (DateTime) The start date for validity period.
validTo (DateTime) The end date for validity period.
itemWithholdingTaxSchema (string) The associated item withholding tax schema.
itemTaxSchema (string) The associated item tax schema.


CashFlowItemResource

The following elements are required:

cashFlowItemKey (string) The cashflow item's key.
nature (enum Nature) The cashflow item's natural which indicates if it is credit or debit.
See Nature.

The following elements are optional:

description (string) The cashflow item's description.
validFrom (DateTime) The start date for validity period.
validTo (DateTime) The end date for validity period.
itemWithholdingTaxSchema (string) The associated item withholding tax schema.
(fk) Allowed value: the natural key of a record of type ItemWithholdingTaxSchema. These records are accessibly through the ItemWithholdingTaxSchemas service.
itemTaxSchema (string) The associated item tax schema.
(fk) Allowed value: the natural key of a record of type ItemTaxSchema. These records are accessibly through the ItemTaxSchemas service.


Enumerations


Nature

1 Debit
2 Credit