v1

latestOpenAPI 3.1.02026-08-0458234268.6 KB
dimensions

Create a single new dimension

Creates a new dimension with the provided details. The reference_id and erp_dimension_id are required for a successful creation.

post/dimensions

Headers

Authorizationstring required

OAuth2 authentication flows. Auth server URLs will vary by environment

X-Api-Keystring required

API key for authentication

X-API-Versionstring

API version to use (optional, defaults to latest). Supported values: 1.0.0, 1.1.0.

Idempotency-Keystring

Client-generated unique key (UUID/ULID recommended). JSON requests: the first 2xx response is cached for 24h and replayed on a same-key retry with a matching body; a different body returns 422. Non-JSON requests (e.g. file uploads): the key is single-use — any same-key retry returns 422 regardless of body. See Idempotency for full details.

Request body

ottimate_company_idinteger required

The Ottimate company ID this dimension belongs to

erp_typestring required

The dimension category label as displayed in the client's ERP system (e.g., 'Account', 'GLACCOUNT', 'Department'). This is client-specific.

ottimate_type'account' | 'location' | 'department' | 'class' | 'project' | 'customer' | 'entity' | 'item' | 'warehouse' | 'task' | 'costtype' | 'employee' | 'taxcode' | 'property' | 'company' | 'subsidiary' required

Ottimate's standardized dimension type code for consistent categorization.

namestring required

Display name of the dimension

codestring required

The GL code or short identifier for this dimension in the client's ERP system

reference_idstring required

A unique reference identifier that tracks this dimension across all client systems (ERP, inventory management, Ottimate)

erp_dimension_idstring required

The identifier assigned to this dimension by the client's ERP software

Response

Successfully created

versionstring
idstring
namestring
erp_typestring

The dimension category label in client's ERP system

codestring
reference_idstring
ottimate_type'account' | 'location' | 'department' | 'class' | 'project' | 'customer' | 'entity' | 'item' | 'warehouse' | 'task' | 'costtype' | 'employee' | 'taxcode' | 'property' | 'company' | 'subsidiary'

Ottimate's standardized dimension type code

erp_dimension_idstring
ottimate_company_idinteger