/v1/resources/{id}/rates (GET)
GET
/v1/resources/{id}/rates
const url = 'http://localhost:8787/v1/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rates';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8787/v1/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rates \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”This resource’s rate plans (empty if it has no room type).
Media typeapplication/json
object
ratePlans
required
Array<object>
object
closedToArrival
required
boolean
closedToDeparture
required
boolean
code
required
string
currency
required
string
enabled
required
boolean
id
required
string format: uuid
isRefundable
required
boolean
maxStayNights
required
integer | null
minStayNights
required
integer
name
required
string
resourceId
required
string format: uuid
Examplegenerated
{ "ratePlans": [ { "closedToArrival": true, "closedToDeparture": true, "code": "example", "currency": "example", "enabled": true, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "isRefundable": true, "maxStayNights": 1, "minStayNights": 1, "name": "example" } ], "resourceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}No such resource for this tenant.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "resource_not_found"}