Invoice (01)
The Invoice (type 01) is issued to final consumers — individuals without NRC, or customers that do not require tax credit. It is the most common DTE type in retail, restaurants, and public services.
Technical details
| Method | POST |
| URL | https://ocote.io/api/connect/invoice |
| Content-Type | application/json |
| Authentication | Header Authorization: Bearer odt_... |
Request
Main fields
| Field | Type | Required | Description |
|---|---|---|---|
doc_type | string | No (default "01") | DTE type. For Invoice: "01". |
lines | array | Yes | Document lines. At least one. See LineIn. |
customer | object | No | Customer data. Optional for Invoice 01. See CustomerIn. |
customer_name | string | No | Consumer name for invoices without a customer object. Default: "Consumidor Final". |
payment_method | string | No (default "01") | Payment method. See MH catalogs. |
transaction_condition | int | No (default 1) | 1 = Cash, 2 = Credit, 3 = Other. |
deadline | int | No (default 1) | Credit term unit (MH CAT-018): 1 = Days, 2 = Months, 3 = Years. Only applies to transaction_condition: 2. |
period | int | No (default 1) | Numeric amount of the term. E.g., deadline: 1, period: 30 = 30 days; deadline: 2, period: 2 = 2 months. Only applies to transaction_condition: 2. |
activity_code | string | No | Issuer economic activity code for this document. Overrides company default. |
redirect_email | string | No | Additional email to which a copy is sent (besides customer.email). |
external_ref | string | No | Your idempotent identifier. See Retry and idempotency. |
Lines (lines)
| Field | Type | Required | Description |
|---|---|---|---|
description | string | Yes | Product/service description. Max 1,000 characters. |
quantity | float | Yes | Quantity. Must be greater than zero. |
unit_price | float | Yes | Unit price VAT included. Must be greater than zero. |
discount_percentage | float | No (default 0) | Discount percentage (0–99). |
Customer (customer)
Fully optional on Invoice 01. If you omit it or send it incomplete, Ocote applies sensible defaults:
| Field | Type | Required | Default (on create) | Description |
|---|---|---|---|---|
name | string | Yes (if you send customer) | — | Name or business name. |
nit | string | No | — | Customer NIT (if applicable). |
nrc | string | No | — | Customer NRC (only if VAT contributor). |
dui | string | No |