GetRatePlan
const url = 'https://example.com/wink.partner.v1.Content/GetRatePlan';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ratePlanId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/wink.partner.v1.Content/GetRatePlan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ratePlanId": "example" }'Get one rate plan by id
As above, for a rate_plan_id from RoomRate.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Request for GetRatePlan.
No language_code: a rate plan carries a single untranslated name and no descriptions, so there would
be nothing for it to select. Accepting one anyway would imply a translation that never arrives.
object
Rate plan to fetch, from RoomRate.rate_plan_id on a pricing result.
Examplegenerated
{ "ratePlanId": "example"}Responses
Section titled “Responses”The RPC completed with gRPC status OK.
Response for GetRatePlan.
object
The rate plan.
object
Stable rate plan identifier. Matches RoomRate.rate_plan_id on the pricing endpoints.
Rate plan name as the property wrote it, e.g. “Best Available Rate”. Untranslated.
Whether the rate must be paid in full at booking rather than at the property.
Breakfast is included in the rate.
Brunch is included in the rate.
Lunch is included in the rate.
Dinner is included in the rate.
Everything is included except alcohol.
Everything is included, alcohol as well.
The cancellation policy governing this rate plan, when it sets one. Join to
PropertyContent.cancellation_policies or fetch it with GetCancellationPolicy.
Examplegenerated
{ "ratePlan": { "id": "example", "name": "example", "prepaid": true, "breakfast": true, "brunch": true, "lunch": true, "dinner": true, "allInclusive": true, "allInclusivePlusAlcohol": true, "cancellationPolicyId": "example" }}