Operation

Add a ReservationGuaranteeCard and/or a Deposit to the current Reservation. Also, optionally, delete the situation of the ReservationRoomStay's under this Reservation.

Only accessible with permission of pms.integration.reservation


table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



PUT



https://{environment}.ulysescloud.com/public/api/v1/con/chain/{chainId}/property/{propertyId}/reservation/{reservationId}/depositAndGuarantee



Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdinttruepath parameter
Unique identificator of the chain.
propertyIdinttruepath parameter
Unique identificator of the property.
reservationIdinttruepath parameter
Unique identificator of the reservation.
removeSituationBooleantruerequest parameter
Removes situation of all ReservationRoomStays contained in this Reservation.

Body

Example request

POST https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservation/4/depositAndGuarantee

Example

The example that will be sent in the operation

{
	"reservationGuaranteeCard": {
		"holderName": "JOAQUIN LORCA GARCIA",
		"expireDate": "2029-12-01",
		"effectiveDate": "2029-12-01",
		"number": "444433KIFOXD1111",
		"seriesCode": "xmiUKYQbRmqe94axruT1UneR",
		"cardType": {
			"id": 1,
			"code": "1",
			"name": "Credit"
		},
		"creditCardIssuerType": {
			"id": 15,
			"code": "VI",
			"name": "Visa"
		},
		"cardProviderSource": {
			"id": 3,
			"code": "STRIPE",
			"name": "Stripe"
		}
	},

	"reservationDeposit": {
		"productPayment": {
			"code": "PAYM"
		},
		"amount": 100,
		"productDeposit": {
			"code": "PAGO"
		},
		"chargeId": "ch_3MA9wDGjGBQ6ROtO0Rm9mtudss",
		"paymentIntentId": "pi_3MW0J6GjGBQ6ROtO1KI3NKTQ"
	}
}



Response

PropertyTypeRequiredDescription
ResponseApiMessageResponseApiMessagetrueDescription of the response of the success operation


Example response

{
    "httpStatus": "201",
    "userMessage": "Success",
    "technicalMessage": "Success Reservation Deposit and Guarantee added ",
    "errorCode": "0",
    "moreInfo": "0",
    "id": 8410,
    "entity": null,
    "responseApiErrorList": null
}