bimetricsEntwickler
Belege

Beleg lesen

Als Markdown ansehen

Benötigte Berechtigung:read(Daten lesen)

GET
/api/document/{id}

Liefert einen Beleg mit erkannten Daten, Positionen, Zuordnung (match) und Buchungen.

Benötigt einen Schlüssel mit der Berechtigung read.

Authentifizierung

AuthentifizierungBearer <token>

Empfohlen: Authorization: Bearer bm_…. Der Schlüssel wird nur einmal angezeigt; nie in URLs, Logs oder Frontend-Code ablegen.

In: header

Pfadparameter

id*string

ID des Belegs (UUID).

Formatuuid

Antworten

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.bimetrics.de/api/document/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "bookings": [    {      "account": 0,      "accountContra": 0,      "accountingModel": "string",      "amount": "string",      "bookingDate": {        "day": 0,        "month": 0,        "year": 0      },      "bookingFlags": "string",      "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",      "createdAt": "2019-08-24T14:15:22Z",      "finalized": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "label": "string",      "performanceFrom": {        "day": 0,        "month": 0,        "year": 0      },      "performanceTo": {        "day": 0,        "month": 0,        "year": 0      },      "refBankTransactionId": "346263b0-7db5-4151-a8e5-d641131746c9",      "refDocumentId": "3d1faf84-ac8e-4e99-a7c1-22b08ddf0438",      "refMatch": "38e85d86-d2e1-4bcd-b48f-bc18237ab5d5",      "revertsAccountBookingId": "ee3e3dd1-4b8c-4397-8f0f-709439f9c5a7",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "cashDiscount": {    "basisAmount": 0,    "days": 0,    "deadline": {      "day": 0,      "month": 0,      "year": 0    },    "discountAmount": 0,    "payableAmount": 0,    "percent": "string",    "taxBreakdown": [      {        "basisAmount": 0,        "netAmount": 0,        "rate": "string",        "taxAmount": 0,        "taxCategory": "string"      }    ]  },  "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",  "contentSource": "string",  "createdAt": "2019-08-24T14:15:22Z",  "deliveryDate": {    "day": 0,    "month": 0,    "year": 0  },  "documentContract": {    "collectionNumber": "string",    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",    "createdAt": "2019-08-24T14:15:22Z",    "documentContractRepetitionFixed": {      "end": {        "day": 0,        "month": 0,        "year": 0      },      "repetitionPeriodDays": 0,      "repetitionPeriodMonth": 0,      "start": {        "day": 0,        "month": 0,        "year": 0      }    },    "friendlyName": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "issuer": {      "address": "string",      "customerNumber": 0,      "iban": "string",      "name": "string",      "taxId": "string"    },    "kind": "string",    "positionTemplate": [      {        "additionalInfo": {          "freeOfVat": true,          "reverseCharge": true        },        "category": "string",        "label": "string",        "totalFixed": 0,        "totalRatio": "string",        "vatPercentage": "string"      }    ],    "recipient": {      "address": "string",      "customerNumber": 0,      "iban": "string",      "name": "string",      "taxId": "string"    },    "updatedAt": "2019-08-24T14:15:22Z",    "uploadDocument": {      "blob": {        "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",        "createdAt": "2019-08-24T14:15:22Z",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "length": 0,        "mime": "string",        "originalFilename": "string",        "sha256": "string",        "updatedAt": "2019-08-24T14:15:22Z"      },      "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",      "creatorUserCompanyId": "715b8f75-5575-49cc-a878-f403a18527bc",      "ocrFinishedAt": "2019-08-24T14:15:22Z",      "ocrStartedAt": "2019-08-24T14:15:22Z",      "ocrStatus": "pending"    },    "uploadDocumentId": "0563a29e-ac7b-4716-94d1-4b8c1c602bf4"  },  "documentContractId": "e0575985-80ff-4ac7-bb18-d1299e317329",  "documentSeries": {    "collectionNumber": "string",    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",    "createdAt": "2019-08-24T14:15:22Z",    "friendlyName": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "issuer": {      "address": "string",      "customerNumber": 0,      "iban": "string",      "name": "string",      "taxId": "string"    },    "kind": "string",    "positionTemplate": [      {        "additionalInfo": {          "freeOfVat": true,          "reverseCharge": true        },        "category": "string",        "label": "string",        "totalFixed": 0,        "totalRatio": "string",        "vatPercentage": "string"      }    ],    "recipient": {      "address": "string",      "customerNumber": 0,      "iban": "string",      "name": "string",      "taxId": "string"    },    "systemTemplateId": "5b734280-f515-48db-96c2-cb686c2f5c6b",    "updatedAt": "2019-08-24T14:15:22Z",    "uploadDocument": {      "blob": {        "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",        "createdAt": "2019-08-24T14:15:22Z",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "length": 0,        "mime": "string",        "originalFilename": "string",        "sha256": "string",        "updatedAt": "2019-08-24T14:15:22Z"      },      "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",      "creatorUserCompanyId": "715b8f75-5575-49cc-a878-f403a18527bc",      "ocrFinishedAt": "2019-08-24T14:15:22Z",      "ocrStartedAt": "2019-08-24T14:15:22Z",      "ocrStatus": "pending"    },    "uploadDocumentId": "0563a29e-ac7b-4716-94d1-4b8c1c602bf4"  },  "documentSeriesId": "0722c082-9704-4bf6-a904-28d269c6835c",  "dueDate": {    "day": 0,    "month": 0,    "year": 0  },  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "importOrigin": "string",  "invoiceDate": {    "day": 0,    "month": 0,    "year": 0  },  "invoiceNumber": "string",  "invoicePositions": [    {      "additionalInfo": {        "freeOfVat": true,        "reverseCharge": true      },      "category": "string",      "label": "string",      "subPositions": [        {          "label": "string",          "total": 0        }      ],      "total": 0,      "vatPercentage": "string"    }  ],  "issuer": {    "address": "string",    "customerNumber": 0,    "iban": "string",    "name": "string",    "taxId": "string"  },  "kind": "invoice",  "match": {    "amountOpen": 0,    "autoMatch": true,    "bankTransactions": [      {        "bankTransactionId": "e64f7265-f5a1-4da6-baa0-5224e33ba98a",        "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",        "createdAt": "2019-08-24T14:15:22Z",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "matchId": "685569fd-95e6-4335-9aa5-fdd22382bd9e",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "cashDiscount": {      "basisAmount": 0,      "days": 0,      "deadline": {        "day": 0,        "month": 0,        "year": 0      },      "discountAmount": 0,      "payableAmount": 0,      "percent": "string",      "taxBreakdown": [        {          "basisAmount": 0,          "netAmount": 0,          "rate": "string",          "taxAmount": 0,          "taxCategory": "string"        }      ]    },    "category": "string",    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",    "createdAt": "2019-08-24T14:15:22Z",    "documents": [      {        "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",        "createdAt": "2019-08-24T14:15:22Z",        "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "matchId": "685569fd-95e6-4335-9aa5-fdd22382bd9e",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "matchingRule": {      "active": true,      "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",      "createdAt": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "updatedAt": "2019-08-24T14:15:22Z"    },    "matchingRuleId": "cb548572-3303-4eed-855a-a8cd42c54014",    "updatedAt": "2019-08-24T14:15:22Z"  },  "paymentTerms": "string",  "performancePeriodFrom": {    "day": 0,    "month": 0,    "year": 0  },  "performancePeriodTo": {    "day": 0,    "month": 0,    "year": 0  },  "recipient": {    "address": "string",    "customerNumber": 0,    "iban": "string",    "name": "string",    "taxId": "string"  },  "updatedAt": "2019-08-24T14:15:22Z",  "uploadDocument": {    "blob": {      "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",      "createdAt": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "length": 0,      "mime": "string",      "originalFilename": "string",      "sha256": "string",      "updatedAt": "2019-08-24T14:15:22Z"    },    "blobId": "0f49f85e-7d44-46b5-bdff-ecf86c7fc0da",    "creatorUserCompanyId": "715b8f75-5575-49cc-a878-f403a18527bc",    "ocrFinishedAt": "2019-08-24T14:15:22Z",    "ocrStartedAt": "2019-08-24T14:15:22Z",    "ocrStatus": "pending"  },  "uploadDocumentId": "0563a29e-ac7b-4716-94d1-4b8c1c602bf4"}