PassThrough Requests for getting the Item API related fields

Sample PassThrough requeats for getting the list of possible values of metaData.baseUnitOfMeasureId, metaData.generalProductPostingGroupId, and metaData.inventoryPostingGroupId field in create and update Item Apis for Microsoft Dynamics Business Central.

List Base Unit Of Measures

Use the id field, in the response, as the metaData.baseUnitOfMeasureId in create and update item apis.

A cURL request could look like this:

curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--data '{
    "method": "GET",
    "path": "/unitsOfMeasure"
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"@odata.context\":\"https://api.businesscentral.dynamics.com/v2.0/Production/api/v2.0/$metadata#companies(a39a99ad-fdb9-f011-af63-6a9)/unitsOfMeasure\",\"value\":[{\"@odata.etag\":\"W/\\\"JzE5OzYxODQzNjExOTUxOTY2OTk5NTYxOzAwOyc=\\\"\",\"id\":\"bf1242c5-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"BAG\",\"displayName\":\"Bag\",\"internationalStandardCode\":\"BAG\",\"symbol\":\"\",\"lastModifiedDateTime\":\"2025-11-05T04:13:33.387Z\"},{\"@odata.etag\":\"W/\\\"JzE5OzM1NDQyNzQxMzM1NDcwNTMyMzExOzAwOyc=\\\"\",\"id\":\"b81242c5-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"BOX\",\"displayName\":\"Box\",\"internationalStandardCode\":\"BX\",\"symbol\":\"\",\"lastModifiedDateTime\":\"2025-11-05T04:13:33.38Z\"}]}",
            "headers": {
                "Transfer-Encoding": "chunked",
                "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true",
                "Server": "Microsoft-HTTPAPI/2.0",
                "Access-Control-Allow-Headers": "Origin, X-Requested-With, Authorization",
                "Access-Control-Allow-Origin": "*",
                "Access-Control-Allow-Credentials": "true",
                "ms-correlation-x": "e28368f4-1a44-f511-9e7d-6cc28f7d7ea5",
                "mise-correlation-id": "9683d14e-21b7-4ac0-b8c7-f528770d524c",
                "OData-Version": "4.0",
                "Access-Control-Expose-Headers": "ms-correlation-x",
                "request-id": "14e36104-9f22-44d4-a5ec-b941dc9e7f23",
                "x-content-type-options": "nosniff",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Date": "Mon, 01 Dec 2025 06:04:00 GMT"
            }
        }
    }
}

List General Product Posting Groups

Use the id field, in the response, as the metaData.generalProductPostingGroupId in create and update item apis.

A cURL request could look like this:

curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--data '{
    "method": "GET",
    "path": "/generalProductPostingGroups"
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"@odata.context\":\"https://api.businesscentral.dynamics.com/v2.0/Production/api/v2.0/$metadata#companies(a39a99ad-fdb9-f011-af63-6a9)/generalProductPostingGroups\",\"value\":[{\"@odata.etag\":\"W/\\\"JzIwOzEzNTIwODU0NDE5NDg0ODUyNzQxMTswMDsn\\\"\",\"id\":\"3b09f9cb-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"FREIGHT\",\"description\":\"Freight, etc.\",\"defaultVATProductPostingGroup\":\"STANDARD\",\"autoInsertDefault\":true,\"lastModifiedDateTime\":\"2025-11-05T04:13:36.957Z\"},{\"@odata.etag\":\"W/\\\"JzIwOzE3ODM2NDE5NTQyMzQ5MTI3MTY3MTswMDsn\\\"\",\"id\":\"530df9cb-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"MANUFACT\",\"description\":\"Capacities\",\"defaultVATProductPostingGroup\":\"STANDARD\",\"autoInsertDefault\":true,\"lastModifiedDateTime\":\"2025-11-05T04:13:43.05Z\"}]}",
            "headers": {
                "Transfer-Encoding": "chunked",
                "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true",
                "Server": "Microsoft-HTTPAPI/2.0",
                "Access-Control-Allow-Headers": "Origin, X-Requested-With, Authorization",
                "Access-Control-Allow-Origin": "*",
                "Access-Control-Allow-Credentials": "true",
                "ms-correlation-x": "937666ac-930d-2a07-bfba-2a1aba2942bd",
                "mise-correlation-id": "ed86a4f5-e07d-4c06-8417-438f88f922bc",
                "OData-Version": "4.0",
                "Access-Control-Expose-Headers": "ms-correlation-x",
                "request-id": "a1dc949f-a452-4134-9b9f-825c46a50ccd",
                "x-content-type-options": "nosniff",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Date": "Mon, 01 Dec 2025 06:17:16 GMT"
            }
        }
    }
}

List Inventory Posting Groups

Use the id field, in the response, as the metaData.inventoryPostingGroupId in create and update item apis.

A cURL request could look like this:

curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--data '{
    "method": "GET",
    "path": "/inventoryPostingGroups"
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"@odata.context\":\"https://api.businesscentral.dynamics.com/v2.0/Production/api/v2.0/$metadata#companies(a39a99ad-fdb9-f011-af63-6a9)/inventoryPostingGroups\",\"value\":[{\"@odata.etag\":\"W/\\\"JzE5OzQwODg1MzI1NzI1ODk4MTg4MDAxOzAwOyc=\\\"\",\"id\":\"540df9cb-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"FINISHED\",\"description\":\"Finished Items\",\"lastModifiedDateTime\":\"2025-11-05T04:13:43.053Z\"},{\"@odata.etag\":\"W/\\\"JzIwOzEzNTUzNjkyMDYyNDUzNDQ1ODYwMTswMDsn\\\"\",\"id\":\"2e0df9cb-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"RAW MAT\",\"description\":\"Raw Materials\",\"lastModifiedDateTime\":\"2025-11-05T04:13:42.787Z\"},{\"@odata.etag\":\"W/\\\"JzE5OzYxNDg5NjEzMDQzOTg0MjA4MzAxOzAwOyc=\\\"\",\"id\":\"b00cf9cb-fdb9-f011-af63-6045bdab9fa9\",\"code\":\"RESALE\",\"description\":\"Resale items\",\"lastModifiedDateTime\":\"2025-11-05T04:13:41.68Z\"}]}",
            "headers": {
                "Transfer-Encoding": "chunked",
                "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true",
                "Server": "Microsoft-HTTPAPI/2.0",
                "Access-Control-Allow-Headers": "Origin, X-Requested-With, Authorization",
                "Access-Control-Allow-Origin": "*",
                "Access-Control-Allow-Credentials": "true",
                "ms-correlation-x": "efb519e2-40db-c0c8-44ce-fe9afbc6c771",
                "mise-correlation-id": "f0ab23c5-00b3-4869-bb96-ca552a7168ba",
                "OData-Version": "4.0",
                "Access-Control-Expose-Headers": "ms-correlation-x",
                "request-id": "868bd9f3-ce54-438c-bd28-8e882bd80784",
                "x-content-type-options": "nosniff",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Date": "Mon, 01 Dec 2025 06:23:48 GMT"
            }
        }
    }
}