v1
latestOpenAPI 3.0.02026-07-2455104.8 MBLiability
Create liability
Creates a single new liability.
post/api/v1/liabilities
Request body
Example request
{
"supplier": {
"id": "17"
},
"status": "open",
"financials": {
"amountGross": {
"amount": "100.0",
"currency": "EUR"
},
"amountNet": {
"amount": "90.0",
"currency": "EUR"
},
"freightCharge": 10,
"taxation": "VAT",
"taxes": {
"normalTax": {
"rate": 19,
"amount": 19
},
"reducedTax": {
"rate": 7,
"amount": 7
},
"customTax1": {
"rate": 8.1,
"amount": 50.5
},
"customTax2": {
"rate": 10,
"amount": 50.5
}
},
"paymentTerms": {
"dueDate": "2020-01-31",
"earlyPaymentDate": "2020-01-15",
"earlyPaymentDiscount": 2,
"earlyPaymentDiscountAmount": 2
},
"bookingText": "Liability booking text",
"payment": {
"methodName": "Bank transfer",
"paidAmount": 100,
"paidOnDate": "2020-01-01",
"discountReceived": 2
},
"glAccount": "123456",
"costCenter": "123456"
},
"assignedPurchaseOrders": [
{
"id": "17",
"project": {
"id": "17"
},
"salesOrder": {
"id": "17"
}
}
],
"project": {
"id": "17"
},
"accounting": [
{
"glAccount": "17",
"amount": {
"amount": "13.37",
"currency": "EUR"
}
}
],
"positions": [
{
"purchaseOrder": {
"id": "17"
},
"product": {
"id": "17"
},
"price": {
"amount": "13.37",
"currency": "EUR"
}
}
]
}Response
Resource successfully created response