Journals
Create a Reverse Batch Journal Transaction (Many-to-One)
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.
A successful response contains an array of JNLC journal objects. If any account or entry is invalid, the whole batch operation is canceled and no per-item error result is returned.
post/v1/journals/reverse_batch
Request
- Base URLhttps://broker-api.giftcity.sandbox.in.alpaca.markets
- URLhttps://broker-api.giftcity.sandbox.in.alpaca.markets/v1/journals/reverse_batch
- AuthHTTP basic
Request body
Example request
{
"entries": [
{
"amount": "10",
"from_account": "8e00606a-c9ac-409a-ba45-f55e8f77984a"
},
{
"amount": "100",
"from_account": "b9b19618-22dd-4e80-8432-fc9e1ba0b27d"
},
{
"amount": "100",
"from_account": "c96a5e16-7fca-425a-b67b-0814d064bfc0"
}
],
"entry_type": "JNLC",
"to_account": "8f8c8cee-2591-4f83-be12-82c659b5e748"
}Response
OK
Example response
[
{
"currency": "USD",
"description": "",
"entry_type": "JNLC",
"from_account": "8f8c8cee-2591-4f83-be12-82c659b5e748",
"id": "56f106e5-25a4-4eee-96fa-25bb05dc86bc",
"net_amount": "1000",
"price": null,
"qty": null,
"settle_date": null,
"status": "pending",
"symbol": null,
"system_date": null,
"to_account": "399f85f1-cbbd-4eaa-a934-70027fb5c1de"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.