[#1208] Booking with deposit

Migrated from Redmine #1208 | Author: Nicolas Abrovich
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-04-08


How can handle invoice when use book method and trigger only deposit payment like web version ??

I want to book with a pending payment, but only with the deposit. then create a second pending payment associated with this one for the rest of the deposit.

for example, I want to book a service that costs 60

on your site at the moment, it will automatically ask for an advance payment and wait for another manual payment of 50 euros. I would like to do the same thing with the public or private api.

I’d just like to know all the possible fields in the public api “BOOK”

Dmytro Bondarev wrote:

Hi,
It is possible if you pass

handle_invoice => true and use_deposit => true

to $additional parameter in JSON RPC API.

The second invoice will be issued once deposit is paid.

Nicolas Abrovich wrote:

Thanks you

to avoid multiple requests for additional fields,

please give me all possible keys (except my own custom fields) in addtionals_fields

Dmytro Bondarev wrote:

category_id - Category id, if needed
location_id - Location id, if needed
client_membership_id - Client membership id
use_deposit - make deposit payment for initial payment
products - products/attributes
handle_invoice - required to use actual payment system
make_invoice - to make/not to make invoice for admin api only.