Skip to content

API reference

Download one released conversion file

Conversions API

GET/v1/conversions/{id}/items/{index}/download

Path parameters

  • idstring (uuid)Required
  • indexintegerRequired

Query parameters

  • formatstringRequired

    The generated rendering to download.

    One of ubl, cii, zugferd-pdf, peppol, en16931-ubl, en16931-cii, factur-x, extended-cii, zugferd-extended.

Status codes

Status Meaning
200 The stored bytes, after the release guard confirms this verdict graded them.
404
409 The item is pending, failed or rejected (operation_not_ready or the release guard code).
GET/v1/conversions/{id}/items/{index}/download
Example
curl https://api.certinvo.com/v1/conversions/$CONVERSION_ID/items/$ITEM_INDEX/download?format=ubl \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const conversionId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const itemIndex = 'value'

const response = await fetch(`https://api.certinvo.com/v1/conversions/${conversionId}/items/${itemIndex}/download?format=ubl`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

conversion_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
item_index = "value"

response = requests.get(
    f"https://api.certinvo.com/v1/conversions/{conversion_id}/items/{item_index}/download?format=ubl",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/xml
The body is the file itself (application/xml).
Success response
GET
/v1/conversions/{id}/items/{index}/download
Download one released conversion file
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables2
›Headers2
›Query Parameters1
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/conversions/{id}/items/{index}/download" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close