Create payment order


post https://api.trivi.com/v2/bankaccounts/{bankAccountId}/paymentorders

Path Variables
bankAccountId
integer   required
Format int64
Body
PaymentOrder
id
number   optional

Only in GET

Format int64
generatedDate
string   optional

Only in GET

Format date-time
accountingDocuments
Array of Object   optional
amount
number   optional

If accountingDocuments is not empty, then only in GET

Format double
currency
string   optional

Only in GET

name
string   optional
files
Array of Object   optional

Only in GET

bankAccountId
number   required

Only in GET

Format int64
dueDate
string   required
Format date
processingState
integer   optional

Only in GET 0 - In Progress, 1 - Ready, 2 - Error

processingMessage
string   optional

Only in GET

requestedTime
string   optional

Only in GET

Time of PaymentOrder creation.

files
fileId
number   optional
Format int64
title
string   optional
message
string   optional
state
integer   optional

0 - OK, 1 - Error

type
integer   optional

1 - Payment Order, 2 - NDP, 3 - Pdf

accountingDocuments
accountingDocumentId
number   optional
Format int64
accountingDocumentNo
string   optional

Only in GET

Object
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
Object