Feed definitions
A feed definition tells Gurita how to read one supplier's data: which column holds what, how to spell-match names, where to fetch the file and how often. Set it up once; every later upload or scheduled run uses it.
Where: Pool inventory → Feeds → Definitions (or New definition / Edit definition on the Import screen).
Placeholder image19-pool-definition-editor.pngThe definition editor
Basics
| Field | What it does |
|---|---|
| Name | How the definition appears in lists and run reports, e.g. Pulau Biru (CSV upload). |
| Feed for | Resort or Liveaboard. Decides which columns make sense. |
| Preset | Custom columns, or a built-in format: Scubadates CSV, LiveaboardHub, Scubadates JSON (URL). A preset has fixed columns — no mapping needed. |
| Active | Inactive definitions keep their runs but are skipped by the schedule. |
Click Save to store the definition. Test run (dry) runs it now without writing anything: a URL definition fetches the feed; an upload definition uses the sample you loaded.
Source
- Upload — staff upload the file on the Import screen.
- URL — Gurita fetches the file itself on the schedule.
For a URL you can store an Authorization header, e.g. Bearer 7f3a… or X-Api-Key: 7f3a….
The header is protected:
- It is write-only. After saving you see Authorization header · set {date} and can only Replace it.
- It needs an
https://URL. Withhttp://the editor refuses to save: "an authorization header needs an https URL". - It is only sent to the host of the URL. If you change the URL to another host, the stored header is removed when you save — enter it again if the new host needs one.
- Addresses inside your own network are refused.
Example: source URL https://feeds.example.com/availability.json, header Bearer 7f3a…, preset Scubadates JSON (URL), schedule Every 6 h.
Format
Type (CSV, XLSX or JSON), plus what that type needs: Separator and Encoding for CSV, Sheet and Header row for XLSX, Records path for JSON (where the list of rows sits in the document).
Schedule and notifications
| Option | Runs |
|---|---|
| Manual uploads only | Never on its own. |
| Hourly / Every 6 h | On that rhythm. |
| Daily at + Run time | Once a day at that time. |
Notify e-mail receives an alert when a committed run lowers an allocation below what is sold.
Scheduled runs apply the valid rows and skip the bad ones (status partial).
Behaviour
| Switch | When on |
|---|---|
| Replace window | Counts missing from the file in its date window become 0 (pinned cells excepted). Use it when the supplier always sends the full picture. |
| Auto-create | Unknown assets, types and trips are created as drafts. Off: rows naming them are errors. |
| Default currency | Used when the file has no currency column. |
Column mapping
- Click Load sample and pick a typical supplier file. The Column mapping · live preview lists each supplier column with its first rows.
- Gurita suggests a field for most columns. Check them and click Confirm {n} suggestions, or pick another field under maps to.
- Set "Date to" means: Check-out day (end-exclusive) or Last night (inclusive, +1 day). The example under it shows what a range turns into.
- Work down Required fields until every line reads mapped.
- Save.
| Feed for | Required fields |
|---|---|
| Resort | Asset, Room type, Date from, Date to, Units |
| Liveaboard | Asset, Cabin type, Trip departure, Trip return, Units |
Optional fields include Price, Price · {n} pax, Child price, Board, Min. stay, Release days, Currency, Max. pax, Country, City, Supplier name, Supplier e-mail; for liveaboards also Trip id, Itinerary, Departure port, Arrival port, Spots ♂, Spots ♀, Spots any and Single price.
Example — a resort CSV and its mapping:
Hotel;Room;Check-in;Check-out;Allot;Rate
Coral Garden Lodge;Garden Villa;12.03.2027;16.03.2027;5;145
Coral Garden Lodge;Ocean Suite;12.03.2027;16.03.2027;2;230Hotel → Asset, Room → Room type, Check-in → Date from, Check-out → Date to (check-out day), Allot → Units, Rate → Price.
Note: Single price is the full price for one guest using the cabin alone, not a supplement on top.
Repeating column groups
Some files put several cabins in one row: cabin1_name, cabin1_price, … cabin8_name, cabin8_price. Instead of mapping 40 columns, describe each field once with a header pattern. {n} stands for the group number.
- In Repeating column groups, switch on Read cabin groups (and, for liveaboards, Read supplement groups).
- For each field, enter a pattern, e.g. Room type →
cabin{n}_name, Units →cabin{n}_available_total, Price →cabin{n}_price. - Or click Use detected pattern when the editor shows Detected in the sample: ….
- Check the match line: "Matches 8 groups: Cabin 1–Cabin 8 (columns P–CA)". Grouped columns show a Repeating group badge such as Cabin 3 · Price in the preview.
- Save.
Rules:
- Exactly one
{n}per pattern, at most 100 characters. - Matching ignores case, spaces,
_and-:cabin{n}_namealso matches Cabin 1 Name.01and1are the same group. - Every cabin group needs Room type and Units; every supplement group needs Name and Price.
- Cabin fields: room type, units, spots ♂ / ♀ / any, max. pax, price, single price, discounted price (liveaboards) or price per pax and child price (resorts), release days.
- Supplement fields (liveaboards only): Name, Price, Paid on board, Included in the price.
- A group whose cells are all empty or 0 is skipped. A row where every cabin group is empty is an error (
NO_CABIN_IN_ROW). - A field is either a plain column or a group field, never both.
- At most 50 cabin groups and 30 supplement groups.
Aliases
Suppliers spell things their own way. An alias maps the supplier's spelling to your record, per kind: Assets, Types, Ports.
| Column | Meaning |
|---|---|
| Supplier spelling | The text in the file, e.g. Bungalow Beachfront. |
| Our record for … | Your record, e.g. Beach Bungalow at Pulau Biru Eco Resort. |
| Status | Matched, Will be created as draft or Needs a decision. |
The quickest way is Add alias next to an error or an Unknown port warning in a report. Removing an alias offers Undo.
Leaving with unsaved changes
The editor asks before you leave a definition with unsaved changes (Stay / Discard changes).
Who can access this: creating a definition needs Pool Inventory (Create), changing it Edit, deleting it Delete. Users limited to certain assets see definitions read-only: "Your access is limited to specific assets, so feed definitions are read-only for you."
