Skip to content

Search Rates by Name

Search Rates by Name prefix

GET https://api.leapa.co/v2/rates/search

This endpoint needs your API key

Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.

Request

curl -X GET "https://api.leapa.co/v2/rates/search?name=Jeanne Ndayishimiye" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

[
  {
    "id": "obj_5f21c8a40b",
    "name": "Jeanne Ndayishimiye",
    "code": "string",
    "type": "time",
    "days": [
      "monday"
    ],
    "amount": 45000,
    "description": "Room 204, two nights",
    "from_date": 0,
    "to_date": 0,
    "amount_limit": 45000,
    "created_date": 0
  }
]

Query parameters

Appended to the URL after a `?`.

  • namestringrequired
    Example:Jeanne Ndayishimiye

Response

application/json

No fields. The body is empty.

Status codes

  • 200OK
  • 400Bad request
  • 401Unauthorized
  • 402Payment required
  • 403Forbidden
  • 404Not found
  • 428Precondition required
  • 500Server error

Request

curl -X GET "https://api.leapa.co/v2/rates/search?name=Jeanne Ndayishimiye" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

[
  {
    "id": "obj_5f21c8a40b",
    "name": "Jeanne Ndayishimiye",
    "code": "string",
    "type": "time",
    "days": [
      "monday"
    ],
    "amount": 45000,
    "description": "Room 204, two nights",
    "from_date": 0,
    "to_date": 0,
    "amount_limit": 45000,
    "created_date": 0
  }
]