Stocks supplies optimisation

What will the change consist of?

Calls to /api/stocks/1/supplies are now sorted by productGuid and followed by product code.This means that all variant codes which belong to the same product are now sent together.

With the new logic, it may happen that variants of one product are not in the response right after the other.

The change only affects the loading of the complete paginated list. The data you get is therefore complete, only the order may change.

Please check that your implementation does not depend on this and you will not have a problem with the change. We are making this for performance improvement of our API and faster response to your requests.

In besides, we will remove support for the include parameter changeTime, which is not used at all.

The mentioned changes will be in effect from 07.11. 2022

Sample change (Please pay attention to the order of the objects in the array.) :

Before improvement:

json
{
    "data": {
        "supplies": [
            {
                "productGuid": "000071fa-f8d6-11ea-bc6e-0cc47a6c8f54",
                "code": "A4232/L",
                "amount": "9999.000",
                "claim": "0.000",
                "location": null
            },
            {
                "productGuid": "000071fa-f8d6-11ea-bc6e-0cc47a6c8f54",
                "code": "C4232/L2",
                "amount": "9999.000",
                "claim": "0.000",
                "location": null
            },
            {
                "productGuid": "555571fa-f8d6-11ea-bc6e-0cc47a6c8f54",
                "code": "B4232/L3",
                "amount": "9999.000",
                "claim": "0.000",
                "location": null
            },
            ...

After improvement:

json
{
    "data": {
        "supplies": [
            {
                "productGuid": "000071fa-f8d6-11ea-bc6e-0cc47a6c8f54",
                "code": "A4232/L",
                "amount": "9999.000",
                "claim": "0.000",
                "location": null
            },
            {
                "productGuid": "555571fa-f8d6-11ea-bc6e-0cc47a6c8f54",
                "code": "B4232/L3",
                "amount": "9999.000",
                "claim": "0.000",
                "location": null
            },
            {
                "productGuid": "000071fa-f8d6-11ea-bc6e-0cc47a6c8f54",
                "code": "C4232/L2",
                "amount": "9999.000",
                "claim": "0.000",
                "location": null
            },
            ...

Post navigation