{
 "info": {
  "name": "Valifakt E-Invoice API",
  "_postman_id": "ae007b90-c7da-5bc0-8dee-3a2f59cbee80",
  "description": "Convert PDF, Excel (XLSX/XLSM) and Word (DOCX) invoices into structured e-invoices – **XRechnung** (UBL or CII) and **ZUGFeRD / Factur-X**\nfor Germany, **KSeF FA(3)** for Poland, **Peppol BIS Billing 3.0** for Belgium and **PINT AE** for the UAE – and validate existing e-invoice XML with the\nofficial rule sets (KoSIT XRechnung, EN 16931 / Peppol schematrons, KSeF FA(3) XSD, PINT AE, ZATCA SDK rules for Saudi Arabia, FNFE-MPE XP Z12-012 BR-FR rules\nfor France).\n\n**Authentication:** `Authorization: Bearer vf_…` – the key comes by e-mail with a Pro, Office or api plan.\n\n**Plans and limits** (one quota shared with the website; only conversions that end `status: valid` count; `/validate` never counts):\n\n| Plan | Price | Conversions / month | Requests / minute |\n|---|---|---|---|\n| Pro | €12 / month (€120 / year) | 100 | 10 |\n| Office | €49 / month (€490 / year) | 1,000 | 30 |\n| api | on request | 100,000 | 60 |\n\nEvery response from `/convert` and `/validate` carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; HTTP 429 adds `Retry-After`.\nErrors use one JSON shape: `{\"error\": {\"code\": \"…\", \"message\": \"…\"}}`. Converted files expire after 60 minutes.\n\nValifakt checks and converts files; it does not transmit invoices to any network, platform or tax authority.\n\nOpenAPI 3.1: https://valifakt.com/openapi.json",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
 },
 "auth": {
  "type": "bearer",
  "bearer": [
   {
    "key": "token",
    "value": "{{apiKey}}",
    "type": "string"
   }
  ]
 },
 "variable": [
  {
   "key": "baseUrl",
   "value": "https://valifakt.com/api/v1"
  },
  {
   "key": "apiKey",
   "value": "vf_your_key_here"
  },
  {
   "key": "job",
   "value": ""
  }
 ],
 "item": [
  {
   "name": "Convert an invoice (Germany, XRechnung UBL)",
   "request": {
    "method": "POST",
    "header": [],
    "description": "Upload one invoice (PDF, XLSX, XLSM or DOCX). The response always contains the pre-check; when `status` is `valid` it also has the official validator result and download URLs in `files`. If `status` is `needs_input`, send the missing values as a JSON object in `patch` and call again.",
    "url": {
     "raw": "{{baseUrl}}/convert",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "convert"
     ]
    },
    "body": {
     "mode": "formdata",
     "formdata": [
      {
       "key": "file",
       "type": "file",
       "src": "",
       "description": "PDF, XLSX, XLSM or DOCX invoice, max 10 MB"
      },
      {
       "key": "country",
       "value": "de",
       "type": "text",
       "description": "de | pl | be | ae"
      },
      {
       "key": "format",
       "value": "xrechnung-ubl",
       "type": "text",
       "description": "empty = country default"
      },
      {
       "key": "patch",
       "value": "",
       "type": "text",
       "description": "JSON object with values for fields listed in `missing`",
       "disabled": true
      }
     ]
    }
   },
   "event": [
    {
     "listen": "test",
     "script": {
      "type": "text/javascript",
      "exec": [
       "if (pm.response.code === 200) { const j = pm.response.json(); if (j.job) pm.collectionVariables.set('job', j.job); }"
      ]
     }
    }
   ]
  },
  {
   "name": "Convert an invoice (Poland, KSeF FA(3))",
   "request": {
    "method": "POST",
    "header": [],
    "description": "Same endpoint, country pl.",
    "url": {
     "raw": "{{baseUrl}}/convert",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "convert"
     ]
    },
    "body": {
     "mode": "formdata",
     "formdata": [
      {
       "key": "file",
       "type": "file",
       "src": ""
      },
      {
       "key": "country",
       "value": "pl",
       "type": "text"
      },
      {
       "key": "format",
       "value": "ksef-fa3",
       "type": "text"
      }
     ]
    }
   }
  },
  {
   "name": "Download the converted XML",
   "request": {
    "method": "GET",
    "header": [],
    "description": "Download a converted file – set {{job}} from the convert response.",
    "url": {
     "raw": "{{baseUrl}}/jobs/{{job}}/xml",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "jobs",
      "{{job}}",
      "xml"
     ]
    }
   }
  },
  {
   "name": "Validate an e-invoice XML",
   "request": {
    "method": "POST",
    "header": [],
    "description": "Validate an existing XML e-invoice. The rule set is chosen from the document: XRechnung/EN 16931 (KoSIT), Peppol BIS 3.0, KSeF FA(3), PINT AE, ZATCA (KSA) and French XP Z12-012 / BR-FR. Does not use the conversion quota.",
    "url": {
     "raw": "{{baseUrl}}/validate",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "validate"
     ]
    },
    "body": {
     "mode": "formdata",
     "formdata": [
      {
       "key": "file",
       "type": "file",
       "src": "",
       "description": "XML e-invoice, max 10 MB"
      }
     ]
    }
   }
  },
  {
   "name": "Current month's usage",
   "request": {
    "method": "GET",
    "header": [],
    "description": "Plan, conversions used this month and the monthly limit.",
    "url": {
     "raw": "{{baseUrl}}/quota",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "quota"
     ]
    }
   }
  }
 ]
}
