Docs

Get catalogue document upload status

Read-only polling with the same fields as finalization, including private candidate mediaId. Failed finalization returns 200 with status failed and a required reason (1..256 characters), never 422. Requires media:read. 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.

GET
/v1/management/documents/uploads/{id}

Read-only polling with the same fields as finalization, including private candidate mediaId. Failed finalization returns 200 with status failed and a required reason (1..256 characters), never 422. Requires media:read. 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.

Authorization

integrationBearer
headerAuthorizationBearer <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.

Path Parameters

id*string

Stable resource UUID scoped to the authenticated operator; see Id.

Match^([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})$
Formatuuid

Response Body

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.

application/json
  1. 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*Id

Stable UUID of a public resource.

Match^([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})$
Formatuuid
mediaId*|null
status*string
Value in"uploading""uploaded""finalizing""cancelled"
Example Request
curl -X GET 'https://api.buchungapp.com/v1/management/documents/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "uploadSessionId": "1b27bbb1-4bfc-4edb-8a10-3614215b96d2",  "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad",  "status": "uploading"}