---
description: Creates a transaction in diamant
---

# 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);

```

>















