Retrieve endpoints

Retrieve endpoints

https://api-sandbox.worldota.net/api/b2b/v3/overview/
https://api.worldota.net/api/b2b/v3/overview/

The call gets the list of the ETG API endpoints to which your API key has permission.

ℹ️
  • Increasing limits is possible for a live key after separate approval, depending on the expected sales volume. Please contact our API support team for this.
  • Limits are increased only after certification is completed.

Sandbox limitations

⚠️
Use only field values, IDs, API keys, and any static content from the sandbox environment within the sandbox. Do not use sandbox data in test or production environments, and do not mix data or configuration between different environments.

Not every call is supported. The available call list depends on a sandbox API key.

Request example

The examples below call the production host. For the sandbox, swap the host for api-sandbox.worldota.net (see the URLs above). Authentication is HTTP Basic with your <KEY_ID>:<API_KEY>.

curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/overview/'
import requests

response = requests.get(
    "https://api.worldota.net/api/b2b/v3/overview/",
    auth=("<KEY_ID>", "<API_KEY>"),
)
response.raise_for_status()
endpoints = response.json()["data"]
const credentials = btoa("<KEY_ID>:<API_KEY>");

const response = await fetch("https://api.worldota.net/api/b2b/v3/overview/", {
  headers: { Authorization: `Basic ${credentials}` },
});
const { data: endpoints } = await response.json();

Response

Response example

{
  "data": [
    {
      "endpoint": "api/b2b/v3/hotel/incremental_reviews/dump/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 100,
      "seconds_number": 86400
    },
    {
      "endpoint": "api/b2b/v3/general/contract/data/info/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 30,
      "seconds_number": 60
    },
    {
      "endpoint": "api/b2b/v3/ordergroup/create/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 30,
      "seconds_number": 60
    },
    {
      "endpoint": "api/b2b/v3/ordergroup/order/add/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 30,
      "seconds_number": 60
    },
    {
      "endpoint": "api/b2b/v3/ordergroup/order/remove/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 30,
      "seconds_number": 60
    },
    {
      "endpoint": "api/b2b/v3/ordergroup/disband/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 30,
      "seconds_number": 60
    },
    {
      "endpoint": "api/b2b/v3/ordergroup/info/",
      "is_active": true,
      "is_debug_mode": false,
      "is_limited": true,
      "requests_number": 30,
      "seconds_number": 60
    }
  ],
  "debug": null,
  "error": null,
  "status": "ok"
}