Skip to main content
POST
Create Payment

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
allocations
AllocationInput · object[]
required
paymentDate
string | null
sourceAccountKey
string
default:bank

cash|bank

method
string | null
supplierId
string | null
employeeId
string | null
currency
string
default:VND
paymentNumber
string | null
notes
string | null
amount
bankFeeAmount
Required range: x >= 0
fctVatAmount
Required range: x >= 0
fctCitAmount
Required range: x >= 0

Response

Successful Response

id
string
required
amount
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
paymentNumber
string | null
paymentDate
string | null
method
string | null
sourceAccountKey
string | null
supplierId
string | null
employeeId
string | null
currency
string | null
bankFeeAmount
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
fctVatAmount
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
fctCitAmount
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
bankRef
string | null
bankConfirmedAt
string | null
status
string | null
glPosted
boolean
default:false
notes
string | null
createdAt
string | null
allocations
AllocationResponse · object[]