Finalize a catalogue document upload
Finalize the upload once, validating actual size, sniffed PDF MIME, signature and structure; returns canonical session status. Failed finalization returns 200 with status failed and a required reason (1..256 characters), never 422. Requires media:upload. Nothing is labelled scanned or published. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.
Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples. Interactive API requests are disabled here.
Finalize the upload once, validating actual size, sniffed PDF MIME, signature and structure; returns canonical session status. Failed finalization returns 200 with status failed and a required reason (1..256 characters), never 422. Requires media:upload. Nothing is labelled scanned or published. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.
integrationBearerAuthorizationBearer <token>Machine integration credential: Authorization: Bearer bg_it_<32 lowercase hex characters> (^bg_it_[0-9a-f]{32}$). Resolved uncached on each request. Middleware binds the resolved principal once; handlers run under it and never re-derive authority. The request context includes credentialId for per-request logging alongside machineId, operatorId, organizationId and capabilities; the principal is opaque and server-owned. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Invalid, expired, revoked, disabled or ungranted credentials return 401 unauthorized.
id*stringStable resource UUID scoped to the authenticated operator; see Id.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$uuidCanonical upload-session status. status is a closed discriminator: uploading, uploaded, finalizing, cancelled, ready or failed; each branch defines its mediaId/reason requirements. The ready branch carries a required, non-null mediaId, a private validated candidate for createDocument or replaceDocumentFile. Finalization and status polling return the same shape. Failed finalization returns 200, never 422, with status failed and a required reason of 1..256 characters.
application/json- response
Canonical upload-session status. status is a closed discriminator: uploading, uploaded, finalizing, cancelled, ready or failed; each branch defines its mediaId/reason requirements. The ready branch carries a required, non-null mediaId, a private validated candidate for createDocument or replaceDocumentFile. Finalization and status polling return the same shape. Failed finalization returns 200, never 422, with status failed and a required reason of 1..256 characters.
uploadSessionId*IdStable UUID of a public resource.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$uuidmediaId*|nullstatus*string"uploading""uploaded""finalizing""cancelled"curl -X POST 'https://api.buchungapp.com/v1/management/documents/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08/finalize'{ "uploadSessionId": "1b27bbb1-4bfc-4edb-8a10-3614215b96d2", "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad", "status": "uploading"}