Skip to main content
The Daily Rates API uses JSON for most responses. The exact body shape depends on the status code.

Content type

Response codes

200 OK

The request was processed successfully. The response body groups results by rate plan, then hotel, then by entity (one entry per room and rate combination). Each entity carries the daily breakdown for the requested period as lists of { value, start, end } segments, where end is exclusive: consecutive segments share their boundary date.

400 Bad Request

The request body failed validation or violated a business rule. The response carries a structured payload describing the problem. Every body includes at least title and status. The other fields appear depending on the type of issue.
string
Short, human-readable summary of the problem.
integer
HTTP status code, repeated in the body.
string
Human-readable explanation specific to this occurrence.
string
URI identifying the problem type.
object
Map of field path to the list of validation messages for that field.
string
Trace identifier, useful when contacting support.

Validation errors

Schema-level validation errors include an errors map. Each key is the path to the field that failed validation, and the value is the list of error messages.

Business rule errors

Business rule violations include a detail field with the specific cause. For example, a date range wider than the API accepts:

401 Unauthorized

The OAuth signature was missing, malformed, or rejected. Common causes:
  • The signature does not match the consumer or token secret.
  • The request timestamp drifted too far from the server clock.
  • The same nonce was reused.
Verify the credentials and the signing implementation. Sync the server clock with NTP. See the Authentication page for the full signing process.

403 Forbidden

The signature is valid, but the token does not grant access to the requested resource. Either the hotel is outside your scope, or the feature is not enabled for your account. Contact us if you expected access.

404 Not Found

The URL does not match the Daily Rates endpoint. The Reference lists the endpoint with its full path.

500 Internal Server Error and other 5xx codes

A 5xx response signals an issue on the D-EDGE side. The body is a plain HTML error page rather than JSON, so do not assume a structured payload when handling these errors. 5xx errors are usually transient. Retry with exponential backoff. If a 5xx persists, contact us.