MinimumPossibleLineDate
and MaximumPossibleLineDate
.AllowMultipleEntries
.MinimumPossibleLineDate
and MaximumPossibleLineDate
.AddFiguresApi
has a new option 5
.InvoiceSend
, PartyLanguageCode
, PartyTaxNumberType
, PartyTaxNumber
, and PartyGlnNumber
.1
Unknown, 9
Debit Card.ExternalReference
and ExternalData
.AccountingAnalytical1
till AccountingAnalytical5
.Message
.PartyAccountingCode
added.AccountingGeneralLedger
added.AllowMultiple
to Payment method.InvoiceID
, InvoiceReference
ExternalReference
and ExternalData
.Test environment:
Production environment:
Authentication on the Scrada API is handled using API keys. The API Key and corresponding password are added to every request on the API using the following header keys:
X-API-KEY
X-PASSWORD
The API key and password are unique for each company in Scrada.
To obtain an API key go to the Scrada web client. In the menu go to 'Settings' > 'API Keys'.
Here you can either create an API Key or see existing API keys of your company.
The Scrada API expects data in the following way.
Data type | Expected format | Example |
---|---|---|
Number | Use a . [dot] as decimal separator. If not specified max. 2 numbers after the decimal separator. |
3.55 |
Date | yyyy-mm-dd | 2022-12-31 |
The API is, like the Scrada Mobile app and web client, multilingual. To change the response language you can set the header key Language
, the following values can be used:
Value | Language |
---|---|
EN | English |
NL | Dutch |
FR | French |
English will be used when no language key is provided.
This examples show how you can add invoices in Scrada and add a payment to one invoice.
1. Add the invoice
Add an invoice in Scrada by using the Add invoice API.
https://api.scrada.be/v1/company/{companyID}/invoice
Fore more information about this API call go to the Invoice > 'Add invoice' section.
{
"bookYear": "2023",
"journal": "Store1",
"number": "123",
"type": 1,
"creditInvoice": false,
"invoiceDate": "2023-01-01",
"invoiceExpiryDate": "2023-01-08",
"partyCode": "CUST01",
"partyName": "Customer 01",
"partyStreet": "Customer street",
"partyStreetNumber": "1",
"partyCity": "Fropus",
"partyZipCode": "1000",
"partyCountryCode": "BE",
"totalInclVat": 200.00,
"totalVat": 34.71,
"totalExclVat": 165.29,
"payableRoundingAmount": 0,
"comment": "",
"lines": [
{
"lineNumber": "1",
"itemName": "Demo item",
"quantity": 1,
"unitType": 1,
"itemExclVat": 165.29,
"vatType": 1,
"vatPerc": 21,
"totalDiscountExclVat": 0,
"totalExclVat": 165.29,
"totalVat": 34.71
}
],
"paymentMethods": [
{
"paymentType": 9,
"paymentReference": "+++022/0126/70950+++",
"name": "Bancontact",
"totalPaid": 0,
"totalToPay": 200
}
]
}
This will return a GUID, for example cac6315f-ef7a-4405-b1cf-1ccccc2cc007
. We will use this GUID in the next step to add a payment to the invoice.
2. Add journal lines
Now we will add €500,00 of dailyreceipts to the journal, of which €400,00 was paid by Bancontact and €100,00 cash, and add a payment of €200,00 paid by Bancontact to the invoice we created in step 1. We add the lines using the Add lines to the journal API.
https://api.scrada.be/v1/company/{companyID}/journal/{journalID}/lines
{
"date": "2023-01-01",
"lastJournalLineID": "{lastJournalLineID}", // Optional GUID from your previous add journal lines call
"lines": [
{
"lineType": 1,
"vatTypeID": "8424d909-78b9-483c-9b1d-4584fb537846",
"vatPerc": 21,
"amount": 500,
"categoryID": "{categoryID}", // 21% VAT category
"externalReference": "", // Additional reference from your system
"externalData": "" // Additional information from your system like receipts numbers and their individual amounts
}
],
"paymentMethods": [
{
"paymentMethodID": "{paymentMethodID}", // Bancontact payment method ID
"amount": 600.00, // Total received 600.00 by Bancontact
"remark": "",
"externalReference": "", // Additional reference from your system
"externalData": "" // Additional information from your system like receipts numbers and their individual amounts
},
{
"paymentMethodID": "{paymentMethodID}", // Cash payment method ID
"amount": 100.00, // Received 100.00 cash
"remark": "",
"externalReference": "", // Additional reference from your system
"externalData": "" // Additional information from your system like receipts numbers and their individual amounts
},
{
"paymentMethodID": "{paymentMethodID}", // Invoice payed payment method ID
"amount": -200.00, // Deduct paid invoice amount
"remark": "string",
"invoiceID": "cac6315f-ef7a-4405-b1cf-1ccccc2cc007", // GUID of the invoice created in step 1
"invoiceReference": "+++022/0126/70950+++", // Optional invoice reference, when invoiceID is provided Scrada will add a payment reference if provided on the invoice
"externalReference": "", // Additional reference from your system
"externalData": "" // Additional information from your system like receipts number and its amount
}
]
}
This will return a GUID for the journalLInes, the last journalLines GUID can be used in your next add journal lines call lastJournalLineID
.
Add new transaction lines to a cash book.
To obtain the current (/start) balance get the current cash book object (Get cash book function) and use the 'currentBalance' field.
companyID required | string <uuid> |
cashBookID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
date required | string <date> The transaction date. |
startBalance required | number <double> The current cash book balance. Max precision is 2. |
required | Array of objects (v1.CashBookAddLineModel) The transaction lines to add in the cash book. |
endBalance required | number <double> The cash book balance after the provided line transactions. Max precision is 2. |
{- "date": "2019-08-24",
- "startBalance": 0,
- "lines": [
- {
- "lineType": 1,
- "transactionTypeID": "3e53c4d4-3496-4e80-986d-c39d814f9a6c",
- "amount": 0,
- "companyName": "string",
- "invoiceNumber": "string",
- "remark": "string",
- "otherCashBookID": "93ed2561-c40a-4c46-ba99-1019516730da",
- "externalReference": "string",
- "externalData": "string"
}
], - "endBalance": 0
}
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
Add new transaction lines to a daily receipts book.
To obtain the last journal line ID get the current journal object (Get journal function) and use the 'lastLineID' field.
The rules that are defined on VAT category or Payment method are also applied when using the API. This means that if configured that a payment method/VAT category must be positive that also the values in the API must be positive. If configured that it must be positive but the value is negative then there will be an error.
It is not always required to have payment methods. More information can be found on the 'PaymentMethods' property.
Remark: In case of a correction all lines must be of type Correction and also the remark of all lines must be the same.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
date required | string <date> The transaction date. |
lastJournalLineID | string or null <uuid> Optional the GUID ID of the last entered line. When provided a check will be performed to verify that this was indeed the last created line ID. |
required | Array of objects (v1.AddJournalLineModel) The lines to add in the journal. |
Array of objects or null (v1.AddJournalPaymentMethodModel) How the daily receipts are paid. If the journal is not linked to a cash book then the payment methods must be blanc. A certain payment method can only be used multiple times in this list if configured on the payment method that this is allowed! On payment method several requirements can be active like remark required or not, amount can be positive, ... This can be configured on the payment method itself. It is checked both when entering manual data or when using the API. |
{- "date": "2019-08-24",
- "lastJournalLineID": "3c22b09b-1d1a-4ef4-9f78-9d83f56e0b7a",
- "lines": [
- {
- "lineType": 1,
- "vatTypeID": "5d348dc4-4d2d-4cb9-972e-4f14233d67f0",
- "vatPerc": 0,
- "amount": 0,
- "remark": "string",
- "correctionForInvoice": "string",
- "correctionForDate": "2019-08-24",
- "categoryID": "336d0404-7cfd-4a09-86de-55c043c039e2",
- "externalReference": "string",
- "externalData": "string"
}
], - "paymentMethods": [
- {
- "paymentMethodID": "b7a60692-ab86-4eb0-b961-3bb4a714aa42",
- "amount": 0,
- "remark": "string",
- "invoiceID": "4f03a727-9c4b-43a5-b699-271a3e6fdc9c",
- "invoiceReference": "string",
- "externalReference": "string",
- "externalData": "string"
}
]
}
{- "journalLines": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "cashBookLines": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "message": {
- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
}
Get all cash books belonging to this company.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "iban": "string",
- "startBalance": 0,
- "currentBalance": 0,
- "lastLineDate": "2019-08-24T14:15:22Z",
- "warnBalanceTooHigh": 0,
- "codaFileType": 1,
- "codaGenerationPeriodType": 1,
- "codaGenerationStartWeekDay": 0,
- "allowEntryAfterCoda": true,
- "addPaymentReference": true,
- "invoicedTill": "2019-08-24T14:15:22Z",
- "paidTill": "2019-08-24T14:15:22Z",
- "minimumPossibleLineDate": "2019-08-24T14:15:22Z",
- "maximumPossibleLineDate": "2019-08-24T14:15:22Z"
}
]
Add a new cash book.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
active | boolean or null Show the cash book in the dashboard. |
name required | string The cash book name. |
startDate required | string or null <date-time> The start date. |
endDate | string or null <date-time> The closing date. |
startBalance | number or null <double> The start balance. |
warnBalanceTooHigh | number or null <double> Optional warning level for high balance. |
codaFileType | integer <int32> (v1.CashBookFormatType) Enum: 1 2 The CODA format.
|
codaGenerationPeriodType | integer <int32> (v1.CashBookCodaGenerationPeriodType) Enum: 1 2 3 The CODA generation period.
|
codaGenerationStartWeekDay | integer <int32> (v1.CashBookCodaGenerationDayOfWeek) Enum: 0 1 2 3 4 5 6 Day of the week to generate CODA file.
|
allowEntryAfterCoda | boolean or null Allow entries in the cash book after a CODA file has been generated. Only applicable when the cash book is linked to a journal. |
addPaymentReference | boolean or null Add journal payment reference to CODA files. |
{- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "startBalance": 0,
- "warnBalanceTooHigh": 0,
- "codaFileType": 1,
- "codaGenerationPeriodType": 1,
- "codaGenerationStartWeekDay": 0,
- "allowEntryAfterCoda": true,
- "addPaymentReference": true
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Get the specified cash book.
companyID required | string <uuid> |
cashBookID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "iban": "string",
- "startBalance": 0,
- "currentBalance": 0,
- "lastLineDate": "2019-08-24T14:15:22Z",
- "warnBalanceTooHigh": 0,
- "codaFileType": 1,
- "codaGenerationPeriodType": 1,
- "codaGenerationStartWeekDay": 0,
- "allowEntryAfterCoda": true,
- "addPaymentReference": true,
- "invoicedTill": "2019-08-24T14:15:22Z",
- "paidTill": "2019-08-24T14:15:22Z",
- "minimumPossibleLineDate": "2019-08-24T14:15:22Z",
- "maximumPossibleLineDate": "2019-08-24T14:15:22Z"
}
Update an existing cash book.
If a property of the cash book is set null or a property is missing then the system assumes that this property must keep its original value. Only in case of property endDate, if this property is missing or has has value null, the system assumes that it has value null.
companyID required | string <uuid> |
cashBookID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
active | boolean or null Show the cash book in the dashboard. |
name required | string The cash book name. |
startDate required | string or null <date-time> The start date. |
endDate | string or null <date-time> The closing date. |
startBalance | number or null <double> The start balance. |
warnBalanceTooHigh | number or null <double> Optional warning level for high balance. |
codaFileType | integer <int32> (v1.CashBookFormatType) Enum: 1 2 The CODA format.
|
codaGenerationPeriodType | integer <int32> (v1.CashBookCodaGenerationPeriodType) Enum: 1 2 3 The CODA generation period.
|
codaGenerationStartWeekDay | integer <int32> (v1.CashBookCodaGenerationDayOfWeek) Enum: 0 1 2 3 4 5 6 Day of the week to generate CODA file.
|
allowEntryAfterCoda | boolean or null Allow entries in the cash book after a CODA file has been generated. Only applicable when the cash book is linked to a journal. |
addPaymentReference | boolean or null Add journal payment reference to CODA files. |
{- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "startBalance": 0,
- "warnBalanceTooHigh": 0,
- "codaFileType": 1,
- "codaGenerationPeriodType": 1,
- "codaGenerationStartWeekDay": 0,
- "allowEntryAfterCoda": true,
- "addPaymentReference": true
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Link an existing journal to an existing cash book. To remove an existing link between a journal and cashbook set the cash book ID to NULL
.
When experiencing unsupported media type errors with the cash book ID (body) NULL
add a 'Content-Type' header with value application/json
.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
The cash book ID or NULL
to remove the link.
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Get all transaction types belonging to this cash book.
companyID required | string <uuid> |
cashBookID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "position": 0,
- "inputType": 1,
- "lineType": 1,
- "commentType": 2
}
]
Add a new cash book transaction type. New transaction types must have line type 14
(Own / custom).
companyID required | string <uuid> |
cashBookID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
nameNL required | string or null <= 200 characters The Dutch Transaction Type name. |
nameEN required | string or null <= 200 characters The English Transaction Type name. |
nameFR required | string or null <= 200 characters The French Transaction Type name. |
nameDE required | string or null <= 200 characters The German Transaction Type name. |
position | integer or null <int32> The sorting position. Lowest is shown first. |
inputType | integer <int32> (v1.CashBookTransactionTypeInputType) Enum: 1 2 3 4 The input visibility.
|
lineType | integer or null <int32> (v1.CashBookTransactionTypeLineType) Enum: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Transaction type of this line. Use either this line type or use the TransactionTypeID, not supported for custom transaction types.
|
commentType | integer <int32> (v1.CashBookTransactionTypeCommentType) Enum: 2 3 The comment visibility.
|
{- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "position": 0,
- "inputType": 1,
- "lineType": 1,
- "commentType": 2
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Get the specified cash book transaction type.
companyID required | string <uuid> |
cashBookID required | string <uuid> |
transactionTypeID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "position": 0,
- "inputType": 1,
- "lineType": 1,
- "commentType": 2
}
Update an existing cash book transaction type.
If a property of the transaction type is set null or a property is missing then the system assumes that this property must keep its original value.
companyID required | string <uuid> |
cashBookID required | string <uuid> |
transactionTypeID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
nameNL required | string or null <= 200 characters The Dutch Transaction Type name. |
nameEN required | string or null <= 200 characters The English Transaction Type name. |
nameFR required | string or null <= 200 characters The French Transaction Type name. |
nameDE required | string or null <= 200 characters The German Transaction Type name. |
position | integer or null <int32> The sorting position. Lowest is shown first. |
inputType | integer <int32> (v1.CashBookTransactionTypeInputType) Enum: 1 2 3 4 The input visibility.
|
lineType | integer or null <int32> (v1.CashBookTransactionTypeLineType) Enum: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Transaction type of this line. Use either this line type or use the TransactionTypeID, not supported for custom transaction types.
|
commentType | integer <int32> (v1.CashBookTransactionTypeCommentType) Enum: 2 3 The comment visibility.
|
{- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "position": 0,
- "inputType": 1,
- "lineType": 1,
- "commentType": 2
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Get the specified company.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "code": "string",
- "name": "string",
- "email": "user@example.com",
- "street": "string",
- "zipCode": "string",
- "city": "string",
- "countryID": "bd19ff8d-7ba1-4038-b160-c71803bc9bc0",
- "vatNumber": "string",
- "phone": "string",
- "reportLanguageID": "f0f88c39-5cb3-4c3b-8d00-177eb738f7cf",
- "invoiceInfo": 1,
- "invoiceEmail": "user@example.com",
- "invoiceStreet": "string",
- "invoiceZipCode": "string",
- "invoiceCity": "string",
- "invoiceCountryID": "df13d8e7-0987-43f4-9448-3817f1e4d0d2",
- "invoiceCompanyID": "27187182-1800-43a1-b0c3-e0debbc31c79"
}
Update an existing company.
If a property of the company is set null or a property is missing then the system assumes that this property must keep its original value.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
active | boolean or null Show the company in the company overview screen. |
code | string or null <= 200 characters The company code. Is used by Scrada as parameter in emails or integrations |
name required | string or null <= 200 characters The company name. |
email required | string or null <email> <= 250 characters The company email. |
street required | string or null <= 1000 characters The company street. |
zipCode required | string or null <= 50 characters The company ZIP code. |
city required | string or null <= 250 characters The company city. |
countryID required | string or null <uuid> The company country ID.
|
vatNumber | string or null <= 30 characters The company VAT number. |
phone required | string or null <tel> <= 50 characters The company phone number. |
reportLanguageID required | string or null <uuid> The language ID in which language the company reports (like daily receipt invoice) need to be generated in.
|
invoiceInfo required | integer <int32> (v1.CompanyInvoiceInfo) Enum: 1 2 3 The invoice information to use.
|
invoiceEmail | string or null <email> <= 250 characters The email address to receive the invoices on. If not provided the invoice will be send to the company email. Not applicable when 'invoiceInfo' is set to |
invoiceStreet | string or null <= 1000 characters The invoice street. Only applicable when 'invoiceInfo' is set to |
invoiceZipCode | string or null <= 50 characters The invoice ZIP code. Only applicable when 'invoiceInfo' is set to |
invoiceCity | string or null <= 250 characters The invoice city. Only applicable when 'invoiceInfo' is set to |
invoiceCountryID | string or null <uuid> The invoice country ID. Only applicable when 'invoiceInfo' is set to
|
invoiceCompanyID | string or null <uuid> The company ID to which the invoice need to be send. Only applicable when 'invoiceInfo' is set to |
{- "active": true,
- "code": "string",
- "name": "string",
- "email": "user@example.com",
- "street": "string",
- "zipCode": "string",
- "city": "string",
- "countryID": "bd19ff8d-7ba1-4038-b160-c71803bc9bc0",
- "vatNumber": "string",
- "phone": "string",
- "reportLanguageID": "f0f88c39-5cb3-4c3b-8d00-177eb738f7cf",
- "invoiceInfo": 1,
- "invoiceEmail": "user@example.com",
- "invoiceStreet": "string",
- "invoiceZipCode": "string",
- "invoiceCity": "string",
- "invoiceCountryID": "df13d8e7-0987-43f4-9448-3817f1e4d0d2",
- "invoiceCompanyID": "27187182-1800-43a1-b0c3-e0debbc31c79"
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Add a new sales/purchase invoice.
For a sales invoice the party references to the customer.
For a purchase invoice the party references the supplier.
Peppol / UBL: There are different codes used to identify a company in the UBL or on the Peppol network. Scrada will use the following information as company identifier.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
bookYear required | string <= 200 characters The book year in which the invoice is created. Scrada will check that the following combination is unique: |
journal required | string <= 200 characters The journal name or code. This field cannot be 'NULL'. |
number required | string [ 1 .. 250 ] characters The invoice number. |
type | integer <int32> (v1.CompanyInvoiceType) Value: 1 The invoice type.
|
creditInvoice | boolean or null The invoice is an credit invoice. Default value is false |
invoiceDate required | string <date> The invoice date. |
invoiceExpiryDate required | string <date> The invoice expiry date. |
alreadySendToCustomer | boolean or null Indicator if the invoice is already send to the customer. If not (by default) Scrada can send the invoice. |
buyerReference | string or null The buyers reference or purchase order number. |
partyCode | string or null The party identification code. |
partyAccountingCode | string or null The party identification code in the accounting system. This code is used as reference key to this party. |
partyLanguageCode | string or null The party language code according to ISO 639-1. |
partyName required | string non-empty The party name. |
partyStreet | string or null The party street. |
partyStreetNumber | string or null The party street number. |
partyStreetBox | string or null The party street postbox. |
partyCity | string or null The party city. |
partyZipCode | string or null The party ZIP code. |
partyCountryCode | string or null <= 2 characters The party country code according to ISO 3166-1 alpha 2. |
partyPhone | string or null <= 50 characters The party phone number. |
partyEmail | string or null <= 250 characters The party email address. |
partyInvoiceEmail | string or null <= 250 characters The party invoice email address. |
partyContact | string or null The party contact name. |
partyTaxNumberType | integer <int32> (v1.CompanyInvoiceTaxNumberType) Enum: 1 2 3 The tax number typed used to identify the party.
|
partyTaxNumber | string or null The party tax number according to the type |
partyVatNumber | string or null The party VAT number. This must be a valid VAT number! |
partyGlnNumber | string or null The party GLN number. This must be a valid GLN number! |
totalInclVat | number or null <double> The total invoice amount including VAT. Default value is 0. Max precision is 2. |
totalVat | number or null <double> The total invoice VAT amount. Default value is 0. Max precision is 2. |
totalExclVat | number or null <double> The total invoice amount excluding VAT. Default value is 0. Max precision is 2. |
payableRoundingAmount | number or null <double> The payable rounding amount. The amount to be added to the invoice total to round the amount to be paid. Max precision is 2. |
comment | string or null The invoice comment. |
Array of objects or null (Invoice line) | |
Array of objects or null (Invoice payment method) | |
filename | string or null The invoice document file name including file extension. |
mimeType | string or null The invoice document mime type. The following mime types are supported:
|
base64Data | string or null The invoice document with Base64 encoding. |
{- "bookYear": "string",
- "journal": "string",
- "number": "string",
- "type": 1,
- "creditInvoice": true,
- "invoiceDate": "2019-08-24",
- "invoiceExpiryDate": "2019-08-24",
- "alreadySendToCustomer": true,
- "buyerReference": "string",
- "partyCode": "string",
- "partyAccountingCode": "string",
- "partyLanguageCode": "string",
- "partyName": "string",
- "partyStreet": "string",
- "partyStreetNumber": "string",
- "partyStreetBox": "string",
- "partyCity": "string",
- "partyZipCode": "string",
- "partyCountryCode": "st",
- "partyPhone": "string",
- "partyEmail": "string",
- "partyInvoiceEmail": "string",
- "partyContact": "string",
- "partyTaxNumberType": 1,
- "partyTaxNumber": "string",
- "partyVatNumber": "string",
- "partyGlnNumber": "string",
- "totalInclVat": 0,
- "totalVat": 0,
- "totalExclVat": 0,
- "payableRoundingAmount": 0,
- "comment": "string",
- "lines": [
- {
- "lineNumber": "string",
- "itemCode": "string",
- "accountingGeneralLedger": "string",
- "accountingAnalytical1": "string",
- "accountingAnalytical2": "string",
- "accountingAnalytical3": "string",
- "accountingAnalytical4": "string",
- "accountingAnalytical5": "string",
- "itemName": "string",
- "itemOriginCountryCode": "st",
- "quantity": 0,
- "unitType": 1,
- "itemExclVat": 0,
- "vatType": 1,
- "vatPerc": 0,
- "totalDiscountExclVat": 0,
- "totalExclVat": 0,
- "totalVat": 0
}
], - "paymentMethods": [
- {
- "paymentType": 1,
- "paymentReference": "string",
- "name": "string",
- "iban": "string",
- "bic": "string",
- "sepaMandateID": "string",
- "sepaIban": "string",
- "totalPaid": 0,
- "totalToPay": 0
}
], - "filename": "string",
- "mimeType": "string",
- "base64Data": "string"
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Update an existing invoice.
If a property of the invoice is set null or a property is missing then the system assumes that this property must keep its original value.
If sending also a document of the invoice then this must always be send for every update. If document is not send then it is removed from the invoice.
companyID required | string <uuid> |
invoiceID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
bookYear required | string <= 200 characters The book year in which the invoice is created. Scrada will check that the following combination is unique: |
journal required | string <= 200 characters The journal name or code. This field cannot be 'NULL'. |
number required | string [ 1 .. 250 ] characters The invoice number. |
type | integer <int32> (v1.CompanyInvoiceType) Value: 1 The invoice type.
|
creditInvoice | boolean or null The invoice is an credit invoice. Default value is false |
invoiceDate required | string <date> The invoice date. |
invoiceExpiryDate required | string <date> The invoice expiry date. |
alreadySendToCustomer | boolean or null Indicator if the invoice is already send to the customer. If not (by default) Scrada can send the invoice. |
buyerReference | string or null The buyers reference or purchase order number. |
partyCode | string or null The party identification code. |
partyAccountingCode | string or null The party identification code in the accounting system. This code is used as reference key to this party. |
partyLanguageCode | string or null The party language code according to ISO 639-1. |
partyName required | string non-empty The party name. |
partyStreet | string or null The party street. |
partyStreetNumber | string or null The party street number. |
partyStreetBox | string or null The party street postbox. |
partyCity | string or null The party city. |
partyZipCode | string or null The party ZIP code. |
partyCountryCode | string or null <= 2 characters The party country code according to ISO 3166-1 alpha 2. |
partyPhone | string or null <= 50 characters The party phone number. |
partyEmail | string or null <= 250 characters The party email address. |
partyInvoiceEmail | string or null <= 250 characters The party invoice email address. |
partyContact | string or null The party contact name. |
partyTaxNumberType | integer <int32> (v1.CompanyInvoiceTaxNumberType) Enum: 1 2 3 The tax number typed used to identify the party.
|
partyTaxNumber | string or null The party tax number according to the type |
partyVatNumber | string or null The party VAT number. This must be a valid VAT number! |
partyGlnNumber | string or null The party GLN number. This must be a valid GLN number! |
totalInclVat | number or null <double> The total invoice amount including VAT. Default value is 0. Max precision is 2. |
totalVat | number or null <double> The total invoice VAT amount. Default value is 0. Max precision is 2. |
totalExclVat | number or null <double> The total invoice amount excluding VAT. Default value is 0. Max precision is 2. |
payableRoundingAmount | number or null <double> The payable rounding amount. The amount to be added to the invoice total to round the amount to be paid. Max precision is 2. |
comment | string or null The invoice comment. |
Array of objects or null (Invoice line) | |
Array of objects or null (Invoice payment method) | |
filename | string or null The invoice document file name including file extension. |
mimeType | string or null The invoice document mime type. The following mime types are supported:
|
base64Data | string or null The invoice document with Base64 encoding. |
{- "bookYear": "string",
- "journal": "string",
- "number": "string",
- "type": 1,
- "creditInvoice": true,
- "invoiceDate": "2019-08-24",
- "invoiceExpiryDate": "2019-08-24",
- "alreadySendToCustomer": true,
- "buyerReference": "string",
- "partyCode": "string",
- "partyAccountingCode": "string",
- "partyLanguageCode": "string",
- "partyName": "string",
- "partyStreet": "string",
- "partyStreetNumber": "string",
- "partyStreetBox": "string",
- "partyCity": "string",
- "partyZipCode": "string",
- "partyCountryCode": "st",
- "partyPhone": "string",
- "partyEmail": "string",
- "partyInvoiceEmail": "string",
- "partyContact": "string",
- "partyTaxNumberType": 1,
- "partyTaxNumber": "string",
- "partyVatNumber": "string",
- "partyGlnNumber": "string",
- "totalInclVat": 0,
- "totalVat": 0,
- "totalExclVat": 0,
- "payableRoundingAmount": 0,
- "comment": "string",
- "lines": [
- {
- "lineNumber": "string",
- "itemCode": "string",
- "accountingGeneralLedger": "string",
- "accountingAnalytical1": "string",
- "accountingAnalytical2": "string",
- "accountingAnalytical3": "string",
- "accountingAnalytical4": "string",
- "accountingAnalytical5": "string",
- "itemName": "string",
- "itemOriginCountryCode": "st",
- "quantity": 0,
- "unitType": 1,
- "itemExclVat": 0,
- "vatType": 1,
- "vatPerc": 0,
- "totalDiscountExclVat": 0,
- "totalExclVat": 0,
- "totalVat": 0
}
], - "paymentMethods": [
- {
- "paymentType": 1,
- "paymentReference": "string",
- "name": "string",
- "iban": "string",
- "bic": "string",
- "sepaMandateID": "string",
- "sepaIban": "string",
- "totalPaid": 0,
- "totalToPay": 0
}
], - "filename": "string",
- "mimeType": "string",
- "base64Data": "string"
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Get all VAT periods belonging to this company.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fromDate": "2019-08-24T14:15:22Z",
- "tillDate": "2019-08-24T14:15:22Z",
- "vatPeriodType": 0
}
]
Add a new journal VAT period.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
fromDate | string or null <date-time> The starting date of the VAT period. |
vatPeriodType required | integer <int32> (v1.CompanyVatPeriodType) Enum: 0 1 3 12 The VAT type.
|
{- "fromDate": "2019-08-24T14:15:22Z",
- "vatPeriodType": 0
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Get the specified company VAT period.
companyID required | string <uuid> |
vatPeriodID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fromDate": "2019-08-24T14:15:22Z",
- "tillDate": "2019-08-24T14:15:22Z",
- "vatPeriodType": 0
}
Update an existing company VAT period.
companyID required | string <uuid> |
vatPeriodID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
The VAT type.
0
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Get all journals belonging to this company.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "lastLineDate": "2019-08-24T14:15:22Z",
- "lastLineID": "16c2f113-478e-4b3a-8e6e-b0c5a0627baa",
- "invoiceGenerationPeriodType": 1,
- "invoiceGenerationStartWeekDay": 0,
- "customerName": "string",
- "customerReference": "string",
- "invoiceNumberExternalFormat": "string",
- "invoiceNumberExternalReset": "string",
- "openOnMonday": true,
- "openOnTuesday": true,
- "openOnWednesday": true,
- "openOnThursday": true,
- "openOnFriday": true,
- "openOnSaturday": true,
- "openOnSunday": true,
- "cashbookID": "da76995c-8bdc-4961-ae83-c79ba4470dba",
- "emailNoLinesDays": 1,
- "allowMultipleEntries": true,
- "autoLoadPaymentProvider": true,
- "addFiguresUser": 1,
- "addFiguresApi": 1,
- "invoicedTill": "2019-08-24T14:15:22Z",
- "paidTill": "2019-08-24T14:15:22Z",
- "minimumPossibleLineDate": "2019-08-24T14:15:22Z",
- "maximumPossibleLineDate": "2019-08-24T14:15:22Z"
}
]
Add a new journal.
The new journal will get a default VAT category after creation. This VAT category can be changed, as long as it remains unused, with the 'Update VAT category' API.
companyID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
active | boolean or null Show the journal in the dashboard. |
name required | string or null The journal name. |
startDate | string or null <date-time> The start date. If new book and not specified then today is used as start date. |
endDate | string or null <date-time> The closing date. |
invoiceGenerationPeriodType | integer <int32> (v1.JournalInvoicePeriodType) Enum: 1 2 3 The invoice generation period.
|
invoiceGenerationStartWeekDay | integer <int32> (v1.JournalInvoiceDayOfWeek) Enum: 0 1 2 3 4 5 6 Day of the week to generate journal invoice. Only applicable when 'journalInvoicePeriodType' is set to
|
customerName | string or null <= 250 characters The journal invoice customer name. |
customerReference | string or null <= 250 characters The journal invoice customer reference. |
invoiceNumberExternalFormat | string or null <= 100 characters The journal invoice number format. |
invoiceNumberExternalReset | string or null <= 10 characters Reset the journal invoice number on a specified day. |
openOnMonday | boolean or null Business is opened on Monday. Default value is true. |
openOnTuesday | boolean or null Business is opened on Tuesday. Default value is true. |
openOnWednesday | boolean or null Business is opened on Wednesday. Default value is true. |
openOnThursday | boolean or null Business is opened on Thursday. Default value is true. |
openOnFriday | boolean or null Business is opened on Friday. Default value is true. |
openOnSaturday | boolean or null Business is opened on Saturday. Default value is true. |
openOnSunday | boolean or null Business is opened on Sunday. Default value is true. |
emailNoLinesDays | integer or null <int32> [ 1 .. 1000 ] Send an email after this number of days no lines entered. |
allowMultipleEntries | boolean or null Allow multiple entries on a single day in the daily receipts book. This doesn't include correction entries. |
autoLoadPaymentProvider | boolean or null If value is true then the payment providers (like payconiq, ... ) are filled in automatically when adding manual lines. Default value true. |
addFiguresUser | integer <int32> (v1.JournalAllowAddFiguresUserType) Enum: 1 2 Allow users to add entries to the journal.
|
addFiguresApi | integer <int32> (v1.JournalAllowAddFiguresApiType) Enum: 1 2 3 4 5 Allow API users to add entries to the journal.
|
{- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "invoiceGenerationPeriodType": 1,
- "invoiceGenerationStartWeekDay": 0,
- "customerName": "string",
- "customerReference": "string",
- "invoiceNumberExternalFormat": "string",
- "invoiceNumberExternalReset": "string",
- "openOnMonday": true,
- "openOnTuesday": true,
- "openOnWednesday": true,
- "openOnThursday": true,
- "openOnFriday": true,
- "openOnSaturday": true,
- "openOnSunday": true,
- "emailNoLinesDays": 1,
- "allowMultipleEntries": true,
- "autoLoadPaymentProvider": true,
- "addFiguresUser": 1,
- "addFiguresApi": 1
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Get the specified journal.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "lastLineDate": "2019-08-24T14:15:22Z",
- "lastLineID": "16c2f113-478e-4b3a-8e6e-b0c5a0627baa",
- "invoiceGenerationPeriodType": 1,
- "invoiceGenerationStartWeekDay": 0,
- "customerName": "string",
- "customerReference": "string",
- "invoiceNumberExternalFormat": "string",
- "invoiceNumberExternalReset": "string",
- "openOnMonday": true,
- "openOnTuesday": true,
- "openOnWednesday": true,
- "openOnThursday": true,
- "openOnFriday": true,
- "openOnSaturday": true,
- "openOnSunday": true,
- "cashbookID": "da76995c-8bdc-4961-ae83-c79ba4470dba",
- "emailNoLinesDays": 1,
- "allowMultipleEntries": true,
- "autoLoadPaymentProvider": true,
- "addFiguresUser": 1,
- "addFiguresApi": 1,
- "invoicedTill": "2019-08-24T14:15:22Z",
- "paidTill": "2019-08-24T14:15:22Z",
- "minimumPossibleLineDate": "2019-08-24T14:15:22Z",
- "maximumPossibleLineDate": "2019-08-24T14:15:22Z"
}
Update an existing journal.
If a property of the journal is set null or a property is missing then the system assumes that this property must keep its original value. Only in case of property endDate, if this property is missing or has has value null, the system assumes that it has value null.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
active | boolean or null Show the journal in the dashboard. |
name required | string or null The journal name. |
startDate | string or null <date-time> The start date. If new book and not specified then today is used as start date. |
endDate | string or null <date-time> The closing date. |
invoiceGenerationPeriodType | integer <int32> (v1.JournalInvoicePeriodType) Enum: 1 2 3 The invoice generation period.
|
invoiceGenerationStartWeekDay | integer <int32> (v1.JournalInvoiceDayOfWeek) Enum: 0 1 2 3 4 5 6 Day of the week to generate journal invoice. Only applicable when 'journalInvoicePeriodType' is set to
|
customerName | string or null <= 250 characters The journal invoice customer name. |
customerReference | string or null <= 250 characters The journal invoice customer reference. |
invoiceNumberExternalFormat | string or null <= 100 characters The journal invoice number format. |
invoiceNumberExternalReset | string or null <= 10 characters Reset the journal invoice number on a specified day. |
openOnMonday | boolean or null Business is opened on Monday. Default value is true. |
openOnTuesday | boolean or null Business is opened on Tuesday. Default value is true. |
openOnWednesday | boolean or null Business is opened on Wednesday. Default value is true. |
openOnThursday | boolean or null Business is opened on Thursday. Default value is true. |
openOnFriday | boolean or null Business is opened on Friday. Default value is true. |
openOnSaturday | boolean or null Business is opened on Saturday. Default value is true. |
openOnSunday | boolean or null Business is opened on Sunday. Default value is true. |
emailNoLinesDays | integer or null <int32> [ 1 .. 1000 ] Send an email after this number of days no lines entered. |
allowMultipleEntries | boolean or null Allow multiple entries on a single day in the daily receipts book. This doesn't include correction entries. |
autoLoadPaymentProvider | boolean or null If value is true then the payment providers (like payconiq, ... ) are filled in automatically when adding manual lines. Default value true. |
addFiguresUser | integer <int32> (v1.JournalAllowAddFiguresUserType) Enum: 1 2 Allow users to add entries to the journal.
|
addFiguresApi | integer <int32> (v1.JournalAllowAddFiguresApiType) Enum: 1 2 3 4 5 Allow API users to add entries to the journal.
|
{- "active": true,
- "name": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "invoiceGenerationPeriodType": 1,
- "invoiceGenerationStartWeekDay": 0,
- "customerName": "string",
- "customerReference": "string",
- "invoiceNumberExternalFormat": "string",
- "invoiceNumberExternalReset": "string",
- "openOnMonday": true,
- "openOnTuesday": true,
- "openOnWednesday": true,
- "openOnThursday": true,
- "openOnFriday": true,
- "openOnSaturday": true,
- "openOnSunday": true,
- "emailNoLinesDays": 1,
- "allowMultipleEntries": true,
- "autoLoadPaymentProvider": true,
- "addFiguresUser": 1,
- "addFiguresApi": 1
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Link an existing journal to an existing cash book. To remove an existing link between a journal and cashbook set the cash book ID to NULL
.
When experiencing unsupported media type errors with the cash book ID (body) NULL
add a 'Content-Type' header with value application/json
.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
The cash book ID or NULL
to remove the link.
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Get all payment methods belonging to this journal.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "isCash": true,
- "position": 0,
- "isCalculated": true,
- "isDefault": true,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "allowMultiple": true
}
]
Add a new journal payment method.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
nameNL required | string or null <= 200 characters The Dutch payment method name. |
nameEN required | string or null <= 200 characters The English payment method name. |
nameFR required | string or null <= 200 characters The French payment method name. |
nameDE required | string or null <= 200 characters The German payment method name. |
isCash | boolean or null Mark the payment method as cash payment. Cash payments will get added to the linked cashbook. |
position | integer or null <int32> The sorting position. Lowest is shown first. |
isCalculated | boolean or null Sets whether this payment method gets calculated in the GUI. |
isDefault | boolean or null Indicator for the default payment method. |
inputEntry | integer <int32> (v1.JournalPaymentMethodInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
inputCorrection | integer <int32> (v1.JournalPaymentMethodInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
commentType | integer <int32> (v1.JournalPaymentMethodCommentType) Enum: 1 2 3 The comment visibility.
|
allowMultiple | boolean or null Whether to allow multiple instances of this payment method in a singe daily receipt transaction. Default |
{- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "isCash": true,
- "position": 0,
- "isCalculated": true,
- "isDefault": true,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "allowMultiple": true
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Get the specified journal payment method.
companyID required | string <uuid> |
journalID required | string <uuid> |
paymentMethodID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "isCash": true,
- "position": 0,
- "isCalculated": true,
- "isDefault": true,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "allowMultiple": true
}
Update an existing journal payment method.
If a property of the journal payment method is set null or a property is missing then the system assumes that this property must keep its original value.
companyID required | string <uuid> |
journalID required | string <uuid> |
paymentMethodID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
nameNL required | string or null <= 200 characters The Dutch payment method name. |
nameEN required | string or null <= 200 characters The English payment method name. |
nameFR required | string or null <= 200 characters The French payment method name. |
nameDE required | string or null <= 200 characters The German payment method name. |
isCash | boolean or null Mark the payment method as cash payment. Cash payments will get added to the linked cashbook. |
position | integer or null <int32> The sorting position. Lowest is shown first. |
isCalculated | boolean or null Sets whether this payment method gets calculated in the GUI. |
isDefault | boolean or null Indicator for the default payment method. |
inputEntry | integer <int32> (v1.JournalPaymentMethodInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
inputCorrection | integer <int32> (v1.JournalPaymentMethodInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
commentType | integer <int32> (v1.JournalPaymentMethodCommentType) Enum: 1 2 3 The comment visibility.
|
allowMultiple | boolean or null Whether to allow multiple instances of this payment method in a singe daily receipt transaction. Default |
{- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "isCash": true,
- "position": 0,
- "isCalculated": true,
- "isDefault": true,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "allowMultiple": true
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}
Get all VAT categories belonging to this journal.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "vatTypeID": "5d348dc4-4d2d-4cb9-972e-4f14233d67f0",
- "position": 0,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "accountingGeneralLedger": "string",
- "accountingAnalytical1": "string",
- "accountingAnalytical2": "string",
- "accountingAnalytical3": "string",
- "accountingAnalytical4": "string",
- "accountingAnalytical5": "string"
}
]
Add a new journal VAT category.
companyID required | string <uuid> |
journalID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
nameNL required | string or null <= 200 characters The Dutch VAT category name. |
nameEN required | string or null <= 200 characters The English VAT category name. |
nameFR required | string or null <= 200 characters The French VAT category name. |
nameDE required | string or null <= 200 characters The German VAT category name. |
vatTypeID | string or null <uuid> VAT type ID of the category.
|
position | integer or null <int32> The sorting position. Lowest is shown first. |
inputEntry | integer <int32> (v1.JournalVatCategoryInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
inputCorrection | integer <int32> (v1.JournalVatCategoryInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
commentType | integer <int32> (v1.JournalVatCategoryCommentType) Enum: 1 2 3 The comment visibility.
|
accountingGeneralLedger | string or null The accounting general ledger number. Must be empty or fully numeric. |
accountingAnalytical1 | string or null The accounting analytical 1. Function depends on the accounting system. |
accountingAnalytical2 | string or null The accounting analytical 2. Function depends on the accounting system. |
accountingAnalytical3 | string or null The accounting analytical 3. Function depends on the accounting system. |
accountingAnalytical4 | string or null The accounting analytical 4. Function depends on the accounting system. |
accountingAnalytical5 | string or null The accounting analytical 5. Function depends on the accounting system. |
{- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "vatTypeID": "5d348dc4-4d2d-4cb9-972e-4f14233d67f0",
- "position": 0,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "accountingGeneralLedger": "string",
- "accountingAnalytical1": "string",
- "accountingAnalytical2": "string",
- "accountingAnalytical3": "string",
- "accountingAnalytical4": "string",
- "accountingAnalytical5": "string"
}
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
Get the specified journal VAT category.
companyID required | string <uuid> |
journalID required | string <uuid> |
vatCategoryID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "vatTypeID": "5d348dc4-4d2d-4cb9-972e-4f14233d67f0",
- "position": 0,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "accountingGeneralLedger": "string",
- "accountingAnalytical1": "string",
- "accountingAnalytical2": "string",
- "accountingAnalytical3": "string",
- "accountingAnalytical4": "string",
- "accountingAnalytical5": "string"
}
Update an existing journal VAT category.
If a property of the journal VAT category is set null or a property is missing then the system assumes that this property must keep its original value.
companyID required | string <uuid> |
journalID required | string <uuid> |
vatCategoryID required | string <uuid> |
Language | String Language |
X-API-KEY required | any The API Key. |
X-PASSWORD required | any The password. |
nameNL required | string or null <= 200 characters The Dutch VAT category name. |
nameEN required | string or null <= 200 characters The English VAT category name. |
nameFR required | string or null <= 200 characters The French VAT category name. |
nameDE required | string or null <= 200 characters The German VAT category name. |
vatTypeID | string or null <uuid> VAT type ID of the category.
|
position | integer or null <int32> The sorting position. Lowest is shown first. |
inputEntry | integer <int32> (v1.JournalVatCategoryInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
inputCorrection | integer <int32> (v1.JournalVatCategoryInputType) Enum: 1 2 3 4 5 6 7 The input visibility.
|
commentType | integer <int32> (v1.JournalVatCategoryCommentType) Enum: 1 2 3 The comment visibility.
|
accountingGeneralLedger | string or null The accounting general ledger number. Must be empty or fully numeric. |
accountingAnalytical1 | string or null The accounting analytical 1. Function depends on the accounting system. |
accountingAnalytical2 | string or null The accounting analytical 2. Function depends on the accounting system. |
accountingAnalytical3 | string or null The accounting analytical 3. Function depends on the accounting system. |
accountingAnalytical4 | string or null The accounting analytical 4. Function depends on the accounting system. |
accountingAnalytical5 | string or null The accounting analytical 5. Function depends on the accounting system. |
{- "nameNL": "string",
- "nameEN": "string",
- "nameFR": "string",
- "nameDE": "string",
- "vatTypeID": "5d348dc4-4d2d-4cb9-972e-4f14233d67f0",
- "position": 0,
- "inputEntry": 1,
- "inputCorrection": 1,
- "commentType": 1,
- "accountingGeneralLedger": "string",
- "accountingAnalytical1": "string",
- "accountingAnalytical2": "string",
- "accountingAnalytical3": "string",
- "accountingAnalytical4": "string",
- "accountingAnalytical5": "string"
}
{- "errorCode": 0,
- "defaultFormat": "string",
- "innerErrors": [
- { }
]
}