Skip to content

List proformas

GET
/v1/proformas
curl --request GET \
--url 'https://api.emite.cr/v1/proformas?q=PRO-00001&from=2026-01-01&to=2026-12-31&page=1&pageSize=25' \
--header 'Authorization: Bearer <token>'

Paginated list, newest first. Filter by computed status (includes expired — a sent proforma past its validUntil). Free-text q matches the number and receiver name, and orders the results by number. Rows carry no lines: read one with GET /v1/proformas/{id}.

q
string
Example
PRO-00001

Free-text search over number and receiver name. With it, results come ordered by number instead of newest first.

status
Array<string>
Allowed values: draft sent accepted rejected converted cancelled expired

Status as of now, including the computed expired (a sent proforma past its validUntil). Repeat the parameter to match several.

from
string
Example
2026-01-01

Lower bound for createdAt. A bare YYYY-MM-DD is a Costa Rica calendar day (midnight CR = 06:00Z); a full ISO 8601 instant is used verbatim. Inclusive.

to
string
Example
2026-12-31

Upper bound for createdAt. A bare YYYY-MM-DD covers that whole Costa Rica calendar day (up to, but excluding, midnight CR of the next day). A full ISO 8601 instant is an inclusive cut at that exact instant.

page
number
Example
1

1-indexed page number. Default 1.

pageSize
number
Example
25

Rows per page. Default 25, max 100.

Media typeapplication/json
object
items
required

The proformas on this page: newest first, or by number when the request carries q.

Array<object>
object
id
required

Id of the proforma; read the whole quote with GET /v1/proformas/{id}.

string format: uuid
number
required

Proforma number: PRO- and the company's own sequence, padded to 5 digits.

string
status
required

Status as of now, as in GET /v1/proformas/{id}: expired is a sent proforma whose validUntil has passed.

string
Allowed values: draft sent accepted rejected converted cancelled expired
validUntil
required

Instant until which the quote is valid; null for a quote without a deadline.

string format: date-time
nullable
currency
required

ISO 4217 currency of the quote.

string
totalComprobante
required

Total of the quote (totals.totalComprobante), in currency, as a number; null for a proforma without totals.

number
nullable
receiverName
required

Customer name: the contact's current name when the quote was made for a contact (receiverPartyId), otherwise the name of the receiver given inline; null for a quote without a receiver.

string
nullable
receiverPartyId
required

Id of the contact the quote was made for; null for an inline receiver or none.

string format: uuid
nullable
convertedToInvoiceId
required

Id of the draft invoice created from the proforma; null until it is converted.

string format: uuid
nullable
createdAt
required

When the proforma was created (ISO 8601 instant).

string format: date-time
total
required

How many proformas match the filters, across all pages.

number
page
required

The page returned (1-based).

number
pageSize
required

Rows per page used for this answer: 25 by default, at most 100.

number
Example
{
"items": [
{
"number": "PRO-00001",
"status": "draft",
"validUntil": "2026-06-30T23:59:59.000Z",
"currency": "CRC",
"totalComprobante": 113000,
"receiverName": "Comercializadora del Valle S.A."
}
],
"total": 12,
"page": 1,
"pageSize": 25
}