Skip to content

Updates payment information on a given web booking.

PUT
/v1/WebBooking/WebBookingsPaymentOnly/{id}
curl --request PUT \
--url https://rms.dev.caspeco.net/api/booking/v1/WebBooking/WebBookingsPaymentOnly/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'system: example' \
--data '{ "guid": "example", "chargeId": "example", "chargeShouldPayAmount": 1, "chargeShouldPayVat": 1, "chargeShouldPayAmountVat": 1, "chargeAuthorizedAmount": 1, "chargePayedAmount": 1, "chargeRefundedAmount": 1, "payMethod": "example" }'

Updates payment information on a given web booking.

id
required
string

The GUID of the webbooking to update.

system
required
string

The system name / database to query

The payment information to update.

Media typeapplication/json
object
guid
string
nullable
chargeId
string
nullable
chargeShouldPayAmount
number format: decimal
chargeShouldPayVat
number format: decimal
chargeShouldPayAmountVat
number format: decimal
chargeAuthorizedAmount
number format: decimal
chargePayedAmount
number format: decimal
chargeRefundedAmount
number format: decimal
payMethod
string
nullable
Examplegenerated
{
"guid": "example",
"chargeId": "example",
"chargeShouldPayAmount": 1,
"chargeShouldPayVat": 1,
"chargeShouldPayAmountVat": 1,
"chargeAuthorizedAmount": 1,
"chargePayedAmount": 1,
"chargeRefundedAmount": 1,
"payMethod": "example"
}

Success

Media typeapplication/json
object
guid
string
nullable
chargeId
string
nullable
chargeShouldPayAmount
number format: decimal
chargeShouldPayVat
number format: decimal
chargeShouldPayAmountVat
number format: decimal
chargeAuthorizedAmount
number format: decimal
chargePayedAmount
number format: decimal
chargeRefundedAmount
number format: decimal
payMethod
string
nullable
Example
{
"application/json": {
"guid": "900A1595-354F-4F3C-BCA6-797EB90796BF",
"chargeId": "7263523",
"chargeShouldPayAmount": 120,
"chargeShouldPayVat": 0.2,
"chargeShouldPayAmountVat": 100,
"chargeAuthorizedAmount": 120,
"chargePayedAmount": 120,
"chargeRefundedAmount": 0
}
}