# Diamant Transaction

#### Example Usage

The data is passed to the interface as a JSON array. All fields available in the documentation can be inserted here!\
\
Please not that several data sety can be transferred at the same time.

```javascript
let result = await app.businessBrixx({
    functionName: "Diamant",
    methodName: "Transaction",
    company: 1,
    transactions: [{
        transactionType: 'AR',
        stacknumberSpecified: false,
        ///...,

        accountAssignmentTab: [{
            accountNo: '12345',
            taxCode: 19,

            //...,

            cAccDataTab: [{
                costCenter: '123a',
                //...
            },
            {
                costCenter: '123b',
                //...
            }],

            oIDataTab: [{
                accountNo: '123456',
                amount: 100.00,
                amountFieldSpecified: true,
                //...
            },
            {
                accountNo: '333456',
                amount: 150.00,
                amountFieldSpecified: true,
                //...
            }]
        },
        {
            transactionType: 'AR',
            stacknumberSpecified: false,
            ///...,

            accountAssignmentTab: [{
                accountNo: '44345',
                taxCode: 19,

                //...,

                cAccDataTab: [{
                    costCenter: '123a',
                    //...
                },
                {
                    costCenter: '123b',
                    //...
                }],

                oIDataTab: [{
                    accountNo: '123456',
                    amount: 100.00,
                    amountFieldSpecified: true,
                    //...
                },
                {
                    accountNo: '333456',
                    amount: 150.00,
                    amountFieldSpecified: true,
                    //...
                }]
            }]
        }]
    }]
});
console.log(result);

```

>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/businessbrixx/diamant-connector/diamant-transaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
