Category:API V2: Difference between revisions
Jump to navigation
Jump to search
Sorenjensen (talk | contribs) |
Sorenjensen (talk | contribs) |
||
| Line 266: | Line 266: | ||
Create or update bookings. | Create or update bookings. | ||
==== How to Add/remove bookings from a group booking ==== | |||
How to Add/remove bookings from a group booking | |||
You can add or remove a booking from a group booking by using the parameter "masterId" without having to use the action "makeGroup" | You can add or remove a booking from a group booking by using the parameter "masterId" without having to use the action "makeGroup" | ||
| Line 273: | Line 272: | ||
To add a booking to a group booking, you set the master id of the group booking in the "masterId" parameter so it would look like this in your request: "masterId": 1234567, that will modify the booking to add it to the group. | To add a booking to a group booking, you set the master id of the group booking in the "masterId" parameter so it would look like this in your request: "masterId": 1234567, that will modify the booking to add it to the group. | ||
To remove a booking from a group booking, you set the "masterId" parameter to null so it will look like this in your request: "masterId": null, | To remove a booking from a group booking, you set the "masterId" parameter to null so it will look like this in your request: "masterId": null. | ||
==== Using the stripeToken Field to Enable Stripe Payment Actions ==== | |||
For direct bookings where payment is processed via Stripe, the stripeToken field must be set. This token is typically generated when collecting card details securely through Stripe, ensuring that sensitive information is not handled or stored by Beds24. | |||
If the stripeToken is present in a booking, a Stripe button will appear in the Charges and Payments tab. Clicking this button allows you to view Stripe transactions and access all saved cards associated with the booking. | |||
For bookings paid through other methods, this field remains empty unless card details are later collected via Stripe. | |||
=== DELETE /bookings === | === DELETE /bookings === | ||