Create a Reverse Batch Journal Transaction (Many-to-One)

POST {{baseUrl}}/v1/journals/batch/reverse_batch

You can also create a batch journal request by using the following endpoint. This is enabled on JNLC for now only.

Note that if there is an invalid account_id the whole batch operation will be canceled. Every single request must be valid for the entire batch operation to succeed.

In the case of a successful request, the response will contain an array of journal objects with an extra attribute error_message in the case when a specific account fails to submit a journal.

Request Body

{"entry_type"=>"cupidatat enim dolor veniam", "to_account"=>"velit", "entries"=>[{"from_account"=>"reprehenderit dolor sed", "amount"=>"in officia"}, {"from_account"=>"ea dolore dolor ex dolore", "amount"=>"Lorem eu incididunt in tempor"}], "description"=>"enim"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

[{"entry_type":"JNLC","error_message":"Duis","from_account":"7234fb5f-3faa-f214-d9f3-d2b4cad02be4","id":"urn:uuid:27e38539-c46b-f6d1-e041-50d018b7c532","settle_date":"1976-10-08","to_account":"urn:uuid:c0422063-2704-963b-bab1-91ddfab231f2","status":"deleted","symbol":"quis dolor consectetur","qty":"qui sint quis","price":"reprehenderit nostrud ad do","system_date":"proident ad","description":"minim pariatur","currency":"nostrud in"},{"entry_type":"JNLS","error_message":"magna dolor Ut veniam sed","from_account":"16dbfe46-9df6-3c3c-a6ff-b4059c4f6663","id":"7942d810-407c-cbf8-be83-0c78524d5ad7","settle_date":"1986-07-09","to_account":"urn:uuid:ae123e4d-420c-356c-691a-aaff822a8e3b","status":"rejected","symbol":"adipisicing aliqua ut","qty":"dolore","price":"fugiat Duis cillum in non","system_date":"nisi","description":"i","currency":"reprehenderit dolore"}]