Add a payment to a reservation.

Action name: addPayment

Fields in the json-encoded "data" parameter:

namedescriptionformatrequired
tokenbooking token generated by vOfficeStrue
payment SETtrue

 

payment fields:

amount Ctrue
note Sfalse
valuedatedefault is day of method callDfalse
type

one of CASH, BANKACCOUNT, CREDITCARD, PAYPAL, DIBS, DISBURSEMENT

important: a corresponding payment method needs to be setup in vOffice prior to this call

Strue unless pmid is specified
pmidpayment method idLtrue unless type is specified
namedescriptionformatrequired

 

Sample request data:

{"payment":{       amount: 1000,       note: 'prepayment made online',       valuedate: '2016-12-01',       type: 'PAYPAL'    },    "token":"eyJhbGciOiJ..." }

 

Sample response:

As result you will get the reservation status:

{    "reservation":{       "nr":"20599",       "paid":1000, //paid in total       "outstanding":49600,       "total":50600          },    "ok":true }