The purpose of this API is to update an existing journal.
Request
API Name | UpdateJournal |
---|---|
URL | https://your_account.modulus.biz/api/bk/v1/UpdateJournal?token=YOUR_TOKEN |
Method | PUT |
Source | Third Party Server |
Recipient | modulus® Server |
Content Type | application/json |
Query String Parameters
Parameter | Required | Type | Description |
---|---|---|---|
token | Yes | Text | Your authentication token. |
Payload Parameters
Parameter | Required | Type | Description |
---|---|---|---|
journal_id | Yes | Number | Has to be initially created by the same integration app, and status is either pending or review. |
journal_notes | No | Text | Journal notes if any. |
reference_number | No | Text | Journal reference number. |
journal_entries | Yes | Array | An array that contains at least two entries. Credit amount must be equal to debit amount. Journal entries have the structure explained here. |
Journal Entry Parameter Details
Parameter | Required | Type | Description |
---|---|---|---|
account_code | Yes | Text | Has to match a non-disabled leaf account in CoA. |
cost_center_id | No | Number | An integer that can be used with revenue / expense entries to indicate the cost center to which the JV is posted. |
journal_entry_notes | No | Text | Journal entry notes if any. |
base_currency_debit_amount | Yes | Decimal Number | Has to be equal to credit amount. |
foreign_currency_debit_amount | Yes | Decimal Number | Used in case of foreign currency transaction. In case used, has to be of same value as foreign currency credit amount. |
base_currency_credit_amount | Yes | Decimal Number | Has to be equal to debit amount. |
foreign_currency_credit_amount | No | Decimal Number | Used in case of foreign currency transaction. In case used, has to be of same value as foreign currency debit amount. |
foreign_currency_id | No | Number | Used in case of foreign currency transaction. |
Responses
HTTP Status | result | title | message | object |
---|---|---|---|---|
Success Responses | ||||
200 OK | true | Success | New journal updated successfully |
|
Failure Responses | ||||
400 Bad Request | false | Bad Request | Error message as elaborated here. |
Error code as elaborated here. |
500 Internal Server Error | false | Internal Server Error | Error message as elaborated here. |
Error code as elaborated here. |
Example 1
Request |
|
---|---|
200 OK |
|
Example 2
Request |
|
---|---|
400 Bad Request |
|