create_attachment
Generate and link attachments to transactions by uploading files, specifying type (e.g., invoice, receipt), and adding metadata such as amount, currency, VAT, and supplier details in Norman Finance systems.
Instructions
Create a new attachment.
Args:
file_path: Path to file to upload
transactions: List of transaction IDs to link
attachment_type: Type of attachment (invoice, receipt)
amount: Amount related to attachment
amount_exchanged: Exchanged amount in different currency
attachment_number: Unique number for attachment
brand_name: Brand name associated with attachment
currency: Currency of amount (default EUR)
currency_exchanged: Exchanged currency (default EUR)
description: Description of attachment
supplier_country: Country of supplier (DE, INSIDE_EU, OUTSIDE_EU)
value_date: Date of value
vat_sum_amount: VAT sum amount
vat_sum_amount_exchanged: Exchanged VAT sum amount
vat_rate: VAT rate percentage
sale_type: Type of sale
additional_metadata: Additional metadata for attachment
Returns:
Created attachment information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
additional_metadata | No | ||
amount | No | ||
amount_exchanged | No | ||
attachment_number | No | ||
attachment_type | No | ||
brand_name | No | ||
currency | No | EUR | |
currency_exchanged | No | EUR | |
description | No | ||
file_path | Yes | ||
sale_type | No | ||
supplier_country | No | ||
transactions | No | ||
value_date | No | ||
vat_rate | No | ||
vat_sum_amount | No | ||
vat_sum_amount_exchanged | No |
Input Schema (JSON Schema)
{
"properties": {
"additional_metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Additional Metadata"
},
"amount": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Amount"
},
"amount_exchanged": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Amount Exchanged"
},
"attachment_number": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Attachment Number"
},
"attachment_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Attachment Type"
},
"brand_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Brand Name"
},
"currency": {
"default": "EUR",
"title": "Currency",
"type": "string"
},
"currency_exchanged": {
"default": "EUR",
"title": "Currency Exchanged",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"file_path": {
"title": "File Path",
"type": "string"
},
"sale_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Sale Type"
},
"supplier_country": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Supplier Country"
},
"transactions": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Transactions"
},
"value_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Value Date"
},
"vat_rate": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Vat Rate"
},
"vat_sum_amount": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Vat Sum Amount"
},
"vat_sum_amount_exchanged": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Vat Sum Amount Exchanged"
}
},
"required": [
"file_path"
],
"title": "create_attachmentArguments",
"type": "object"
}