Zum Inhalt springen
aYOUne
← Konfiguration API

DocumentRenders

Singular: DocumentRender — Base-URL: https://config-api.ayoune.app — Zugriff: read-only — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6acc7dd2f2897c8f22aef2ed",
    "_sourceEntityID": "c8adb2064bb2ae078839e84b",
    "sourceEntityType": "Coupons",
    "idempotencyKey": "Coupons:c8adb2064bb2ae078839e84b:gift-card:pdf",
    "renderedAt": "2026-10-12T06:27:32.412Z",
    "outputFormat": "pdf",
    "status": "success",
    "meta": {
      "docType": "gift-card",
      "locale": "de",
      "requestSource": "issue-gift-cards",
      "giftCard": {
        "version": 1,
        "lang": "de",
        "generatedAt": "2026-10-12T06:27:29.738Z",
        "coupon": {
          "id": "c8adb2064bb2ae078839e84b",
          "code": "GIFT-JQP3-HAA4-8HNH"
        },
        "order": {
          "id": "6acc7db2f2897c8f22aef2ad"
        },
        "amount": "10,00 €",
        "validTill": "12. Oktober 2027",
        "recipientName": "[abnahme] Ann",
        "message": "Abnahme gutschein-pdf",
        "company": "tolinax TEST ACCOUNT",
        "customerSlug": "tolinax-demo",
        "shopUrl": "https://tolinax-demo.sites.ayoune.app/de",
        "texts": {
          "title": "Geschenkgutschein",
          "valueLabel": "Wert",
          "codeLabel": "Gutscheincode",
          "validLabel": "Gültig bis",
          "validUnlimited": "unbegrenzt gültig",
          "greeting": "Für {name}",
          "from": "Von {name}",
          "redeem": "Einlösbar im Shop unter {shop} — Code im Warenkorb eingeben.",
          "redeemNoShop": "Code im Warenkorb des Shops eingeben."
        }
      },
      "documentID": "6acc7dd369829e3b92f96b48",
      "outputFormat": "pdf"
    },
    "shares": [],
    "createdAt": "2026-10-12T06:27:30.233Z",
    "updatedAt": "2026-10-12T06:27:32.412Z",
    "outputBytes": 19553,
    "outputHash": "d7b9dcd165961df44de056426ceaca6f423b2e4982a4dac176bc539cefbad30a",
    "outputStorageRef": "gs://ayoune_5ee06fc2860473001cfb290a/gutscheine/c8adb2064bb2ae078839e84b/Geschenkgutschein_2026-10-12_GIFT-JQP3-HAA4-8HNH.pdf",
    "renderDurationMs": 2157
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/documentrenders/6acc7dd2f2897c8f22aef2ed",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "DocumentTemplates",
        "title": "MODEL_DOCUMENTTEMPLATE",
        "href": "https://api.ayoune.app/config/documenttemplates",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.documenttemplates"
      }
    ],
    "debugId": "6b0653ae92a1964c090db971",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DOCUMENTRENDER",
        "href": "https://api.ayoune.app/config/documentrenders/6acc7dd2f2897c8f22aef2ed/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DOCUMENTRENDER",
        "href": "https://api.ayoune.app/config/documentrenders/6acc7dd2f2897c8f22aef2ed",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.393.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "6906",
      "reset": "1795579355",
      "resetDate": "Wed Nov 25 2026"
    },
    "responseTime": 27.420588,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /documentrenders Liste mit Filtern/Paginierung config.documentrenders.view
GET /documentrenders/:id Einzelner Datensatz via ID config.documentrenders.view

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.config.documentRenders.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.config.documentRenders.findById('OBJECT_ID').exec();

Weiterführend