Skip to main content

List documents

Besides querying a single document by its identifier (see Check status), the API exposes a paginated listing with filters — ideal for reconciling your database against Ocote without going document by document.

GET /documents

Lists sales documents (Invoice, CCF, Credit Note, Export) issued by the company.

Technical details

MethodGET
URLhttps://ocote.io/api/connect/documents
AuthenticationHeader Authorization: Bearer odt_...

Filters (query params)

All optional; they combine with each other.

ParameterDescription
doc_typeFilter by type: 01, 03, 05, 11.
successtrue / false.
invalidatedtrue / false.
date_from / date_toRange by issue date (YYYY-MM-DD).
customer_namePartial match on the customer name.
control_numberPartial match on the control number.
external_refExact match.
pagePage number (default 1).
per_pagePage size (default 50, maximum 100).

Response

{
"results": [ /* ... documents ... */ ],
"total": 128,
"page": 1,
"per_page": 50,
"total_pages": 3
}

Example

curl
curl -H "Authorization: Bearer odt_xxx" \
"https://ocote.io/api/connect/documents?doc_type=03&date_from=2026-06-01&date_to=2026-06-30&page=1"

Other endpoints in the family

EndpointPurpose
GET /documents/{id_or_ref}Detail of a sale (by UUID or external_ref).
GET /documents/suexList of Excluded Subjects.
GET /documents/suex/{id_or_ref}Detail of an Excluded Subject.
GET /documents/summaryAggregated totals (counts and amounts per document type), with date_from / date_to filters.

See also

  • Check status — for a single document by UUID or external_ref.
  • Reports — accounting ledgers in Excel (ZIP) by period.
  • Conventions — dates, pagination, and general semantics.