Bulk operation on accounting documents


post https://api.trivi.com/v2/bulk/accountingdocuments

Available operations:

  • movewf (with additionalData.state set to a string representing the requested state), move requested accounting documents to the requested state
  • remove, removes requested accounting documents
  • setcategory (with additionalData.categoryId set to int64 representing the requested categoryId), assign requested category to the requested accounting documents
  • setpreferredbranch (with additionalData.preferredBranchId set to string representing the requested preferredBranch - can be NULL), assign requested preferred branch to the requested accounting documents
  • setpreferredproject (with additionalData.preferredProjectId set to string representing the requested preferredProject - can be NULL), assign requested preferred project to the requested accounting documents
  • setcashregister (with additionalData.cashRegisterId set to int64 representing the requested cashRegisterId), assign requested cash register to the requested accounting documents
  • setpaymenttype (with additionalData.paymentType set to int representing the requested paymentType), assign requested payment type to the requested accounting documents

Body
BulkOperationRequest
operation
string   optional
ids
Array of Object   optional
uniqueIds
Array of Object   optional

UUID

additionalData
object   optional
BulkOperationResult
operation
string   optional
result
Array of Object   optional
result
id
integer   optional
Format int64
state
integer   optional

1 - Success, 2 - Error

validationError
  optional
ValidationError
code
string   optional
message
string   optional
params
object   optional
fieldsAffected
Array of ValidationFieldError   optional
ValidationFieldError
name
string   optional
message
string   optional
code
string   optional
params
object   optional