URL: {{base_url}}/modules/liability/add

Method: POST

Bearer Token: Replace this with an actual token in the request

Headers

Subscription: Replace this with the subscription value
Access_Token: Replace this with the actual access token value

Request Body

KeyValuesRequired
dateDate of liabilityYes
nameName or description of the liabilityYes
categoryType of liability. Value should be non_current or currentYes
amountAmount of the liabilityYes
payment_methodPayment method. Value should be cash or bankYes

Response Codes

CodeDescription
201Successful
500Internal Server Error
401Unauthorized: Check error message

Below is an example of a JSON request body:

{
    "date": "2024-01-02",
    "name": "Loan from Bank A",
    "category": "non_current",
    "amount": 2000,
    "payment_method": "bank"
}