> For the complete documentation index, see [llms.txt](https://mobile-calendar.gitbook.io/v1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobile-calendar.gitbook.io/v1/rest-api/rates.md).

# Rates

Get all rates.

## GET /rates

> Get all rates

```json
{"openapi":"3.0.0","info":{"title":"Public REST API v1 – mobile-calendar.com","version":"1.0.0"},"tags":[{"name":"rates","description":"Get all rates."}],"servers":[{"url":"https://api.mobile-calendar.com/v1/public","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","description":"Pass the token in header: Authorization: Bearer <JWT>","bearerFormat":"JWT","scheme":"bearer"}},"schemas":{"RatesResponse":{"description":"Response containing all available rates","required":["data","meta"],"properties":{"data":{"description":"List of all available rates","type":"array","items":{"$ref":"#/components/schemas/RateEntry"}},"meta":{"$ref":"#/components/schemas/MetaWithRuid"}},"type":"object"},"RateEntry":{"description":"Rate configuration with pricing rules and restrictions","required":["rateId","name","cancellationId","meals"],"properties":{"rateId":{"description":"Unique rate identifier","type":"integer"},"name":{"description":"Rate name","type":"string"},"cancellationId":{"description":"Cancellation policy ID","type":"integer"},"meals":{"description":"Meal plan type: 0=OV, 1=BB, 2=HB, 3=FB, 4=AI, 5=DINNER, 6=BREAKFAST_SUPPER, 7=DINNER_SUPPER, 8=SUPPER","type":"integer"},"parentRateId":{"description":"Parent rate ID for derived rates","type":"integer","nullable":true},"rateRelation":{"oneOf":[{"$ref":"#/components/schemas/RateRelation"}],"nullable":true,"description":"Rate relation configuration (only for derived rates)"},"rooms":{"description":"Room IDs this rate applies to. null=all rooms, []=no rooms, [ids]=specific rooms","type":"array","items":{"type":"integer"},"nullable":true},"types":{"description":"Room type IDs this rate applies to. null=all types, []=no types, [ids]=specific types","type":"array","items":{"type":"integer"},"nullable":true},"cancellationPolicy":{"$ref":"#/components/schemas/CancellationPolicy"}},"type":"object"},"RateRelation":{"description":"Rate relation configuration - either percentage or additional amount","properties":{"percentage":{"description":"Percentage modifier from parent rate","type":"integer","nullable":true},"additional":{"description":"Additional amount to parent rate","type":"number","format":"float","nullable":true}},"type":"object"},"CancellationPolicy":{"description":"Cancellation policy details","required":["cancellationId","type"],"properties":{"cancellationId":{"type":"integer"},"type":{"type":"string","enum":["REFUNDABLE","NONREFUNDABLE"]},"cancellationPenaltyPercentageAfterDeadline":{"description":"Penalty percentage after deadline","type":"integer","nullable":true},"deadlineDays":{"description":"Deadline in days before arrival","type":"integer","nullable":true},"deadlineHours":{"description":"Deadline in hours before arrival","type":"integer","nullable":true},"cancellationPenaltyNightsAfterDeadline":{"description":"Penalty in nights after deadline","type":"integer","nullable":true},"noShow":{"description":"No-show policy","type":"string"},"prepaymentPercentage":{"description":"Required prepayment percentage","type":"integer","nullable":true},"prepaymentFirstNight":{"description":"Whether prepayment covers first night only","type":"boolean"}},"type":"object"},"MetaWithRuid":{"description":"Metadata with request tracking.","required":["ruid"],"properties":{"ruid":{"description":"Request Unique ID","type":"string","format":"uuid"}},"type":"object"},"ApiProblem401":{"description":"Missing authentication or invalid credentials.","allOf":[{"$ref":"#/components/schemas/ApiProblemBase"},{"properties":{"type":{"description":"401 Unauthorized","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}]},"ApiProblemBase":{"description":"RFC 7807 Problem Details (base schema).","required":["type","title","status","detail","instance"],"properties":{"type":{"description":"RFC 7807 base — DO NOT use directly in endpoints.\nIn endpoints reference ApiProblem400/401/403/409/422/429/500.","type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"type":"object"}}},"paths":{"/rates":{"get":{"tags":["rates"],"summary":"Get all rates","operationId":"getRates","responses":{"200":{"description":"List of all available rates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesResponse"}}}},"401":{"description":"Unauthorized - invalid or missing authentication token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProblem401"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mobile-calendar.gitbook.io/v1/rest-api/rates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
