API Swagger Payouts/batch #349
-
Hi, I am able to add payouts through the API, but I need to Approve and send them too. Comparing with the backend actions, I assume that this can be achieved through the /api/payouts/batch endpoint. I cannot see any documentation about the payload of that request (besides the IDs). Can someone point me to the "Commands" available? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
command is approve for example |
Beta Was this translation helpful? Give feedback.
-
Ok, Thank you. Got that working right now. I saw there may be a special HTTP Method, batch_action instead of POST. Any hints on that? Thank you |
Beta Was this translation helpful? Give feedback.
-
Pass batch: True in options dict for send batch command to batch it in one tx |
Beta Was this translation helpful? Give feedback.
command is approve for example
https://github.com/bitcartcc/bitcart/blob/master/api/views/payouts.py#L20-L23