ROSE Developers - Web API Reference

Taxes | WHT Code

The Withholding Tax Code represents the withholding Tax rate.

Overview


URL api/{tenantKey}/{orgKey}/taxesCore/withholdingTaxCodes
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 WithholdingTaxCodes

Returns the list of all the entity records available.

Response:

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

Response status codes:

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

Resource URL:

GET /taxesCore/withholdingTaxCodes

GET WithholdingTaxCodes (paged)

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

The following elements are optional:

page (int) The index of the page of the list that should be returned. This is a query string parameter.
pageSize (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter.

Response:

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

Response status codes:

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

Resource URL:

GET /taxesCore/withholdingTaxCodes?page={page}&pageSize={pageSize}

GET WithholdingTaxCode 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 WithholdingTaxCodeResource.

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

GET WithholdingTaxCode by key

Returns the entity record that matches the specified key.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.

Response:

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

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}

GET Print WithholdingTaxCode by identifier

Prints the specified entity record.

The following elements are required:

id (string) The record identifier.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
404 NotFound. The specified resord does not exist.

Resource URL:

GET /taxesCore/withholdingTaxCodes/{id}/print?template={template}

GET Print WithholdingTaxCode by key

Prints the specified entity record.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/print

GET Original Print WithholdingTaxCodeOriginal by identifier

Prints the specified entity record.

The following elements are required:

id (string) The record identifier.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
404 NotFound. The specified resord does not exist.

Resource URL:

GET /taxesCore/withholdingTaxCodes/{id}/printOriginal?template={template}

GET Original Print WithholdingTaxCode by key

Prints the specified entity record.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/printOriginal

GET Get Withholding Tax Code Tax Office

Gets the Tax Office of Withholding Tax Code.

The following elements are required:

withholdingTaxCodeNaturalKey (string) The Withholding Tax Code Key.

Response:

When successful, the response body contains a resource of type 'WithholdingTaxCodeTaxOfficeResource'. See WithholdingTaxCodeTaxOfficeResource.

Response status codes:

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

Resource URL:

GET /taxesCore/withholdingTaxCodes/getWithholdingTaxCodeTaxOffice

POST Operations

POST WithholdingTaxCodes

Creates a new entity record.

The following elements are required:

withholdingTaxCodeResource (ApiWithholdingTaxCodeResource) The request body should contain the entity record that should be created.
See ApiWithholdingTaxCodeResource.

The following elements are optional:

customAttributes (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity.
The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName".
While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required.

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

Response status codes:

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

Resource URL:

POST /taxesCore/withholdingTaxCodes

POST WHT Code

Inserts a new 'WHT Rate' in the 'WHT Code'.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
value (ApiWithholdingTaxCodeWithholdingTaxRatesResource) The ApiWithholdingTaxCodeWithholdingTaxRatesResource instance.
See ApiWithholdingTaxCodeWithholdingTaxRatesResource.

The following elements are optional:

customAttributes (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity.
The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName".
While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /taxesCore/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates

PUT Operations

PUT Set AmountBase WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
value (enum AmountBase) The request body should contain the new value for the attribute.
See AmountBase.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/amountBase

PUT Set Description WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/description

PUT Set Description WithholdingTaxRate

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
lineId (string) The detail identifier.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates/{lineId}/description

PUT Set IncomeCode WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/incomeCode

PUT Set IncomeType WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/incomeType

PUT Set IsActive WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/isActive

PUT Set RoundingOff WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/roundingOff

PUT Set RoundingType WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
value (enum RoundingType) The request body should contain the new value for the attribute.
See RoundingType.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/roundingType

PUT Set TaxRegionalArea WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/taxRegionalArea

PUT Set ValidFrom WithholdingTaxRate

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
lineId (string) The detail identifier.
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 /taxesCore/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates/{lineId}/validFrom

PUT Set ValidTo WithholdingTaxRate

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
lineId (string) The detail identifier.
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 /taxesCore/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates/{lineId}/validTo

PUT Set Value WithholdingTaxRate

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
lineId (string) The detail identifier.
value (decimal) 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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates/{lineId}/value

PUT Set WithholdingTaxCodeKey WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxCodeKey

PUT Set WithholdingTaxType WithholdingTaxCode

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

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxType

PUT Set Custom Attribute WithholdingTaxCode

Updates the value of 'CustomAttribute' in the specified entity record.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
customAttributeName (string) The custom attribute name.
value (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute.
See ExtensibilityCustomAttributeValueResource.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/{customAttributeName}

PUT Set Custom Attribute WithholdingTaxRate

Updates the value of 'CustomAttribute' in the specified entity record.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
lineId (string) The detail identifier.
customAttributeName (string) The custom attribute name.
value (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute.
See ExtensibilityCustomAttributeValueResource.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates/{lineId}/{customAttributeName}

DELETE Operations

DELETE WHT Rate by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
lineId (string) The line identifier.

Response:

When successful, the response body is empty.

Response status codes:

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

Resource URL:

DELETE /taxesCore/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}/withholdingTaxRates/{lineId}

DELETE WithholdingTaxCode 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/withholdingTaxCodes/{id}

DELETE WithholdingTaxCode by key

Deletes the entity record that matches the specified key.

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.

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/withholdingTaxCodes/{withholdingTaxCodeKey}/{withholdingTaxType}

Resources


ApiWithholdingTaxCodeResource

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
amountBase (enum AmountBase) Indicates if it is total amount or net amount.
See AmountBase.
roundingOff (int) Indicates the number of decimal places.
roundingType (enum RoundingType) The type of rounding applicable on withholding tax.
See RoundingType.
taxRegionalArea (string) Tax Regional Area.

The following elements are optional:

description (string) The withholding tax's type description. Specific subcategory of a tax whose payment is required by the state.
withholdingTaxRates (List of ApiWithholdingTaxCodeWithholdingTaxRatesResource) The list of withholding tax rates.
See ApiWithholdingTaxCodeWithholdingTaxRatesResource.
incomeType (string) Income Type.
incomeCode (string) Income.


ApiWithholdingTaxCodeWithholdingTaxRatesResource

The following elements are required:

validFrom (DateTime) The start date for validity period.
validTo (DateTime) The end date for validity period.
value (decimal) The rate's value. Reference value for the calculation of values. percentage or a fraction value when it concerns rates (VAT, Withholding ...).

The following elements are optional:

description (string) The rate's description.


WithholdingTaxCodeResource

The following elements are required:

withholdingTaxCodeKey (string) The withholding tax's code key.
withholdingTaxType (string) Thw withholding tax's type.
(fk) Allowed value: the natural key of a record of type WithholdingTaxType. These records are accessibly through the WithholdingTaxTypes service.
amountBase (enum AmountBase) Indicates if it is total amount or net amount.
See AmountBase.
roundingOff (int) Indicates the number of decimal places.
roundingType (enum RoundingType) The type of rounding applicable on withholding tax.
See RoundingType.
taxRegionalArea (string) Tax Regional Area.
(fk) Allowed value: the natural key of a record of type TaxRegionalArea. These records are accessibly through the TaxRegionalAreas service.

The following elements are optional:

description (string) The withholding tax's type description. Specific subcategory of a tax whose payment is required by the state.
withholdingTaxRates (List of WithholdingTaxRateResource) The list of withholding tax rates.
See WithholdingTaxRateResource.
incomeType (string) Income Type.
(fk) Allowed value: the natural key of a record of type IncomeType. These records are accessibly through the IncomeTypes service.
incomeCode (string) Income.
(fk) Allowed value: the natural key of a record of type IncomeCode. These records are accessibly through the IncomeCodes service.


WithholdingTaxCodeTaxOfficeResource

The following elements are optional:

taxOfficePartyId (Guid) The Tax Office Entity Id.
taxOfficePartyKey (string) The Tax Office Entity Key.
taxOfficePartyDescription (string) The Tax Office Entity Description.


WithholdingTaxRateResource

The following elements are required:

validFrom (DateTime) The start date for validity period.
validTo (DateTime) The end date for validity period.
value (decimal) The rate's value. Reference value for the calculation of values. percentage or a fraction value when it concerns rates (VAT, Withholding ...).

The following elements are optional:

description (string) The rate's description.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.

Enumerations


AmountBase

1 TotalAmount
2 NetAmount


RoundingType

2 RoundUp
3 Downwards
1 Normal