Body
Required
-
Type of transaction (as defined by the accounting system). Only types with number > 0 are allowed (negative numbers are reserved for system transaction types). TransactionType controls which number-series is used for the transaction.
Minimum value is
1. -
Date of the transaction in ISO 8601 format - NB there must be a financial period open for this date. This may be overridden by individual transaction lines.
-
General comment of the transaction. Will be applied to all lines unless overridden at line level.
Maximum length is
75. -
Optional identifier (Document number) for a document/attachment associated with this transaction.
-
List of transaction lines. Each line must have an account number and an amount. All lines must balance to zero per date.
Not more than
1000elements.
curl \
--request POST 'https://rest.api.24sevenoffice.com/v1/transactions' \
--header "Content-Type: application/json" \
--header "Authorization: string" \
--data '{"transactionTypeNumber":1,"date":"2025-04-09","comment":"Invoice #12345","documentId":12345,"lines":[{"accountNumber":1920,"amount":1500,"comment":"Payment for services rendered","date":"2025-04-09","periodDate":"2025-04-01","currency":{"code":"USD","rate":10.5},"tax":{"number":1,"amount":300},"dimensions":[{"dimensionType":1,"value":"13"}],"invoice":{"dueDate":"2025-05-05","number":"INV-12345","remittanceReference":"1234567890","bankAccount":"1234.56.78901"}}]}'
# Headers
Authorization: string
# Payload
{
"transactionTypeNumber": 1,
"date": "2025-04-09",
"comment": "Invoice #12345",
"documentId": 12345,
"lines": [
{
"accountNumber": 1920,
"amount": 1500,
"comment": "Payment for services rendered",
"date": "2025-04-09",
"periodDate": "2025-04-01",
"currency": {
"code": "USD",
"rate": 10.5
},
"tax": {
"number": 1,
"amount": 300
},
"dimensions": [
{
"dimensionType": 1,
"value": "13"
}
],
"invoice": {
"dueDate": "2025-05-05",
"number": "INV-12345",
"remittanceReference": "1234567890",
"bankAccount": "1234.56.78901"
}
}
]
}
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
{
"transactionId": "abc123"
}