Retrieve detailed information for a specific invoice

Beta
Returns **comprehensive details** for a single invoice including all metadata, processing information, and payment status. ## ๐Ÿ“‹ What You Get This endpoint provides the **complete invoice record** with: - ๐Ÿงพ **Full invoice metadata** (dates, amounts, status) - ๐Ÿข **Vendor information** and contact details - ๐Ÿ“ **Location** where invoice was received - ๐Ÿ’ณ **Payment information** (when invoice is paid) - โš ๏ธ **Error details** (if invoice has processing issues) - ๐Ÿ“ค **Export tracking** (integration status) ## ๐Ÿ” Usage Examples ### Basic Retrieval ```bash curl -H "X-Api-Key: your-api-key" \ https://api.acme.com/v1/invoices/550e8400-e29b-41d4-a716-446655440000 ``` ### With Version Header ```bash curl -H "X-Api-Key: your-api-key" \ -H "X-API-Version: 1.0.0" \ https://api.acme.com/v1/invoices/550e8400-e29b-41d4-a716-446655440000 ``` ## โšก Performance Notes - **Response time**: Typically < 100ms - **Caching**: Results cached for 5 minutes - **Rate limits**: Applies to your overall API quota > ๐Ÿ’ก **Tip**: Use this endpoint after getting results from the list endpoint to get full details for specific invoices.

Authentication

AuthorizationBearer
OAuth2 authentication flows. Auth server URLs will vary by environment

Path parameters

idstringRequired

Invoice UUID - Unique identifier of the invoice to retrieve

Headers

X-Api-KeystringRequired
API key for authentication
X-API-VersionenumOptional

API version to use (optional, defaults to latest)

Allowed values:

Query parameters

expandstringOptional

Comma-separated list of fields to expand. Options: history, gl_splits. Use history to include the full audit log. Use gl_splits to include GL account splits (real splits or virtual splits derived from line-item mappings).

Response

Successful response with invoice details
idstring
Unique invoice identifier
statusstring
Processing status
payment_statusenum
Payment status
Allowed values:
created_atstringformat: "date-time"
Timestamp when invoice was created
versionstring
API version
numberstring
Invoice number from vendor
ottimate_vendor_namestring
Vendor name
ottimate_location_namestring
Location name
invoice_datestringformat: "date"
Date invoice was issued
due_datestringformat: "date"
Payment due date
total_amountdouble>=0
Total invoice amount
total_taxdouble>=0
Total tax amount
currencystring

Currency code (ISO 4217)

outstanding_balancedouble>=0
Remaining unpaid amount
typeenum
Type of invoice document
Allowed values:
payment_infoobject

Payment information (only present if payment_status is โ€˜paidโ€™)

purchase_orderstring
Associated purchase order number
exported_datestringformat: "date-time"
Date when invoice was exported
errorstring
Error message if invoice is flagged
urlstring
URL to view the invoice in the Ottimate dashboard
imageslist of objects
List of invoice images
dimensionsobject

Header-level dimension mappings. Contains accounting dimensions assigned to the invoice header (e.g., Department, Class, Location).

gl_splitslist of objects or null
GL account splits for the invoice. Returns real splits if they exist, otherwise falls back to virtual splits derived from vendor split rules. null when no splits or rules are configured.
items_processing_resultobject

Result of items processing (only present in PATCH response when items were included in request)

historylist of objects

Audit history of the invoice. Only present when expand=history is passed as a query parameter.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error