Download OpenAPI specification:
This is an example API to demonstrate features of the OpenAPI specification.
Get list of documents
Accept-Language | string Default: en-GB Examples: en-US The language you prefer for messages. Supported values are |
Transaction-Id required | string <UUID> Transaction-Id header parameter. |
[- {
- "documentId": 12345,
- "documentDate": "2023-10-01",
- "documentType": "Invoice",
- "documentName": "October Invoice",
- "documentComment": "Details for October Invoice",
- "invoiceNumber": "INV-12345",
- "account": {
- "accountId": 67890,
- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}, - "targetAccount": {
- "accountId": 67890,
- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}, - "documentAmount": 1500.75,
- "counterparty": {
- "counterpartyId": 54321,
- "counterpartyName": "ABC Corp"
}, - "paymentMethod": "Credit Card",
- "currencyCode": "USD",
- "exchangeRate": 1.12,
- "documentItemsCount": 5,
- "documentItems": [
- {
- "documentItemId": 98765,
- "item": {
- "itemId": 12345,
- "itemName": "An item",
- "itemCategory": {
- "categoryId": 12345,
- "categoryName": "A cateogry for the item"
}
}, - "itemQuantity": 10,
- "itemPrice": 100.5,
- "itemComment": "Other info about Product A"
}
], - "createDateTime": "2022-08-22T11:43:06-07:00",
- "updateDateTime": "2022-08-22T11:43:06-07:00"
}
]
This operation creates a new financial document
Accept-Language | string Default: en-GB Examples: en-US The language you prefer for messages. Supported values are |
Transaction-Id required | string <UUID> Transaction-Id header parameter. |
User request to be added to the database.
date required | string <date> Date of the document |
documentType | string (document_type) Enum: "Note" "Bill" "Invoice" "Transfer" Predefined type of the document |
documentName | string Name of the document |
documentDescription | string Detailed description of the document |
invoiceNumber | string or null Invoice number of the document |
accountId required | integer <int64> Unique identifier for the account |
targetAccountId | integer or null <int64> Unique identifier for the target account |
transferAmount | number or null <double> Amount to be transferred |
counterpartyId | integer or null <int64> Unique identifier for the counterparty |
paymentMethod required | string Payment method for the document |
currencyCode | string = 3 characters Default: "PLN" Currency code of the transfer amount |
exchangeRate | number <double> decimal places <= 6 > 0 Exchange rate applicable to the transfer amount |
Array of objects (document_item_request) non-empty List of items in the document |
{- "date": "2023-10-01",
- "documentType": "Invoice",
- "documentName": "October Invoice",
- "documentDescription": "October Invoice for car insurance",
- "invoiceNumber": "INV-12345",
- "accountId": 67890,
- "targetAccountId": 98765,
- "transferAmount": 1500.75,
- "counterpartyId": 54321,
- "paymentMethod": "Credit Card",
- "currencyCode": "USD",
- "exchangeRate": 1.12,
- "documentItems": [
- {
- "itemType": "INC",
- "itemId": 98765,
- "itemName": "Product A",
- "itemQuantity": 10.5,
- "itemPrice": 99.99,
- "itemDescription": "More details about this item"
}
]
}
{- "title": "string",
- "status": 400,
- "detail": "string",
- "instance": "string"
}
Get document by ID
id required | integer <int64> ID of the document |
{- "documentId": 12345,
- "documentDate": "2023-10-01",
- "documentType": "Invoice",
- "documentName": "October Invoice",
- "documentComment": "Details for October Invoice",
- "invoiceNumber": "INV-12345",
- "account": {
- "accountId": 67890,
- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}, - "targetAccount": {
- "accountId": 67890,
- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}, - "documentAmount": 1500.75,
- "counterparty": {
- "counterpartyId": 54321,
- "counterpartyName": "ABC Corp"
}, - "paymentMethod": "Credit Card",
- "currencyCode": "USD",
- "exchangeRate": 1.12,
- "documentItemsCount": 5,
- "documentItems": [
- {
- "documentItemId": 98765,
- "item": {
- "itemId": 12345,
- "itemName": "An item",
- "itemCategory": {
- "categoryId": 12345,
- "categoryName": "A cateogry for the item"
}
}, - "itemQuantity": 10,
- "itemPrice": 100.5,
- "itemComment": "Other info about Product A"
}
], - "createDateTime": "2022-08-22T11:43:06-07:00",
- "updateDateTime": "2022-08-22T11:43:06-07:00"
}
Get paginated list of items
pageNumber | integer Default: 0 Examples: pageNumber=0 The page number to retrieve (0-based index). |
pageSize | integer Default: 25 Examples: pageSize=25 The number of items to return per page. |
orderBy | string Default: "id" Examples: orderBy=itemName The field to order the items by. |
orderDirection | string Default: "asc" Enum: "asc" "desc" Examples: orderDirection=asc The direction to order the items (asc or desc). |
{- "pageSize": 25,
- "totalItems": 100,
- "totalPages": 10,
- "currentPage": 1,
- "data": [
- {
- "itemId": 12345,
- "itemName": "An item",
- "itemCategory": {
- "categoryId": 12345,
- "categoryName": "A cateogry for the item"
}
}
]
}
Create a new Item
itemName | string Name of the item |
categoryId | integer <int64> ID of the category the item belongs to |
{- "itemName": "An item",
- "categoryId": 54321
}
{- "title": "string",
- "status": 400,
- "detail": "string",
- "instance": "string"
}
[- {
- "accountId": 67890,
- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}
]
Create a new Account
accountName required | string Name of the account |
accountDescription | string Detailed description of the Account |
accountCurrency | string Default currency for the Account |
accountImageUrl | string <url> Detailed description of the Account |
{- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}
{- "title": "string",
- "status": 400,
- "detail": "string",
- "instance": "string"
}
Get single account by ID
id required | integer <int64> ID of the account |
{- "accountId": 67890,
- "accountName": "Main Account",
- "accountDescription": "Main Account for Customer",
- "accountCurrency": "USD",
}