Hello integration partners,

If it happens that you consume /journals-experimental endpoint on REST we would like to notify you of an upcoming breaking change.
In case you use the department/distribution properties today you will need to take action.

As we’re getting closer to finalizing /journals we have identified an inconsistency in the handling of departments and distributions.

This means we will be aligning /journals with the implementation of departmental-distribution as it is found on e.g. invoice lines.

Step 1, February 1st: We will add the object {“departmental-distribution”:””} to entries and vouchers while retaining “department” and “distribution”. This means you can verify your code as you update and transition.

Step 2, February 21st: We will remove the old “department” and “distribution” properties from /journals-experimental.

Please ensure that you have completed the transition to the departmental-distribution concept of setting departments and distribution keys, before February 21st.

Below we’ve included an example of the previous JSON signature for the related properties, as well as intermediary signature and the signature that will be final on Feb. 21st.

Being phased out:

"department": {
	"departmentNumber": departmentNumber,
	"self": "https://restapi.e-conomic.com/departments/:departmentNumber"
}

Intermediary signature:

"departmentalDistribution": {
	"departmentalDistributionNumber": departmentalDistributionNumber,
	"distributionType": "department|distribution",
	"self": "https://restapi.e-conomic.com/departmental-distributions/departments|distributions/:departmentalDistributionNumber"
}, 
"department": {
	"departmentNumber": departmentNumber,
	"self": "https://restapi.e-conomic.com/departments/:departmentNumber"
}

Final signature:

"departmentalDistribution": {
	"departmentalDistributionNumber": departmentalDistributionNumber,
	"distributionType": "department|distribution",
	"self": "https://restapi.e-conomic.com/departmental-distributions/departments|distributions/:departmentalDistributionNumber"
}

Please note that this notation indicates OR: departments|distributions

If you have any questions regarding this migration, please do not hesitate to contact our API support.