Preview coding defaults for a location + vendor
Returns the GL and dimension coding defaults for the given ottimate_location_id and erp_vendor_id, without creating an invoice. Use this to pre-fill an invoice-capture UI before calling POST /invoices — pass the returned erp_dimension_id values through to that endpoint’s dimensions field to persist them. Every response includes three previews: header-level defaults (header_dimensions), line-item defaults that apply to every line (all_line_items), and line-item defaults keyed by item description (by_item_description).
Authentication
Headers
API version to use (optional, defaults to latest). Supported values: 1.0.0, 1.1.0.
Query parameters
Restaurant/location ID, same value used on invoice create.
ERP accounting vendor ID (the accounting_id on the vendor record). Matched case-insensitively.
Which mapping rule scope to evaluate for header_dimensions. Only header is supported. This does not affect all_line_items or by_item_description, which are always returned.
When provided, scopes by_item_description to a single lookup for this item description (matched using the same fuzzy-normalization logic as invoice processing). When omitted, by_item_description returns all configured item-description defaults for this location + vendor, paginated via page/limit.
When provided, scopes all_line_items to the matching charge-type bucket. Only meaningful when the account has Charge Type Categorization enabled — otherwise this parameter is ignored and all_line_items is returned as if it were omitted.
Page number for paginating by_item_description when item_description is not set, starting at 1. Requesting a page past the last one returns an empty by_item_description.results list.
Page size for paginating by_item_description when item_description is not set.
Response
Header-level dimension defaults, keyed by dimension type (e.g. ‘DEPARTMENT’, ‘CLASS’). Empty when accounting_mode is legacy_gl or no default applies.
Vendor-level coding defaults for this location + vendor, regardless of accounting mode.
Line-item defaults that apply to every line for this location + vendor pair, regardless of item description. One entry per charge-type bucket that has applicable rules, plus the null (standard item) bucket. Empty when legacy_gl or no default applies.
Item-description-specific line-item defaults. A paginated object when item_description was omitted from the request, or a list of 0-1 entries when it was provided.
Default GL account. Populated for legacy_gl accounts, and also for enhanced_dimensions accounts that auto-map to a global default GL (source: ‘default’) — that path is not gated by accounting_mode.
Response-specific caveats, e.g. a matched value that couldn’t be resolved to a usable ID. Empty when nothing unusual applies to this particular location/vendor pair.

