Skip to main content
POST
/
exports
Trigger an export
curl --request POST \
  --url https://api.openfiskal.com/v1/exports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-OpenFiskal-Merchant: <x-openfiskal-merchant>' \
  --data '
{
  "type": "dsfinvk",
  "from": "2026-03-01T00:00:00.000Z",
  "to": "2026-03-31T23:59:59.000Z",
  "register_id": "reg_01HABC"
}
'
{
  "id": "<string>",
  "type": "dsfinvk",
  "status": "pending",
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "register_id": "<string>",
  "download_url": "<string>",
  "error": {
    "message": "<string>",
    "details": {}
  },
  "completed_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://dev.openfiskal.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-OpenFiskal-Merchant
string
required

Merchant identifier returned by the merchants resource.

Body

application/json
type
enum<string>
required

Country-specific fiscal export type.

Available options:
dsfinvk
Example:

"dsfinvk"

from
string<date-time>
required
Example:

"2026-03-01T00:00:00.000Z"

to
string<date-time>
required
Example:

"2026-03-31T23:59:59.000Z"

register_id
string

Optional register to scope the export to. When omitted, the export covers all eligible registers for the merchant under the matching fiscal regime.

Example:

"reg_01HABC"

Response

Export job enqueued

id
string
required
type
enum<string>
required

Country-specific fiscal export type.

Available options:
dsfinvk
status
enum<string>
required
Available options:
pending,
completed,
failed
from
string<date-time>
required
to
string<date-time>
required
created_at
string<date-time>
required
register_id
string | null
download_url
string | null

Signed URL to download the export artifact. Present only when status is completed.

error
object

Failure information. Present only when status is failed.

completed_at
string<date-time> | null