Skip to navigation

Get Varieties

Get a list of varieties with pagination.

Variety data changes rarely. Sync the variety table and variety value endpoints with sync=true and lastRowVersion, keep them in a local cache keyed on id, and join them to items and variants yourself. A changed description or sort order comes back on the next sync, but deleted rows do not, so reload the cache in full now and then. See Replication.

Authentication

x-np-api-keystring
API Key authentication via header

Path parameters

tenantstringRequired

Your Entra Tenant ID. More details.

environmentstringRequired

Your Business Central Environment. More details.

companystringRequired

Your Business Central Company. More details.

Headers

x-api-versiondateOptional

Used for API versioning. More details.

Query parameters

codestringOptional
pageSizeintegerOptional
pageKeystringOptional
lastRowVersionstringOptional
syncbooleanOptional

Response

This endpoint returns an object.
morePagesboolean
nextPageKeystring
nextPageURLstring
datalist of objects