Download OpenAPI specification:
Versioned inventory command contract owned by BoatOps.
Local alpha contract. Inventory decisions are final only after BoatOps commits the command transaction. No private operator data or production credentials are included.
| boat_id required | integer (PositiveObjectId) >= 1 |
| trip_template_id required | integer (PositiveObjectId) >= 1 |
| starts_at required | string <date-time> Business interval start in UTC. |
| ends_at required | string <date-time> Business interval end; interval semantics are half-open. |
{- "boat_id": 1,
- "trip_template_id": 1,
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z"
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "organization_id": 1,
- "boat_id": 1,
- "available": true,
- "occupied_start": "2019-08-24T14:15:22Z",
- "occupied_end": "2019-08-24T14:15:22Z",
- "inventory_revision": 0,
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string",
- "code": "string",
- "message": "string",
- "retryable": true,
- "manual_action_required": true
}Requires Idempotency-Key and returns inventory_revision.
| Idempotency-Key required | string [ 8 .. 255 ] characters Stable key scoped to authenticated organization and operation. |
| boat_id required | integer (PositiveObjectId) >= 1 |
| trip_template_id required | integer (PositiveObjectId) >= 1 |
| starts_at required | string <date-time> |
| ends_at required | string <date-time> Business interval end; interval semantics are half-open. |
| external_reference required | string (ExternalReference) [ 1 .. 255 ] characters |
| expires_at required | string <date-time> Explicit deadline; the contract has no deployment-specific default. |
{- "boat_id": 1,
- "trip_template_id": 1,
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "external_reference": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "idempotency_key": "string",
- "organization_id": 1,
- "hold_id": 1,
- "external_reference": "string",
- "status": "ACTIVE",
- "code": "HOLD_CREATED",
- "inventory_revision": 1,
- "expires_at": "2019-08-24T14:15:22Z",
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string"
}Requires Idempotency-Key and returns inventory_revision.
| id required | integer >= 1 |
| Idempotency-Key required | string [ 8 .. 255 ] characters Stable key scoped to authenticated organization and operation. |
| external_reference required | string (ExternalReference) [ 1 .. 255 ] characters |
{- "external_reference": "string"
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "idempotency_key": "string",
- "organization_id": 1,
- "hold_id": 1,
- "external_reference": "string",
- "status": "ACTIVE",
- "code": "HOLD_CREATED",
- "inventory_revision": 1,
- "expires_at": "2019-08-24T14:15:22Z",
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string"
}Requires Idempotency-Key and a private immutable rate snapshot. The success response and outbox event intentionally omit monetary fields.
| Idempotency-Key required | string [ 8 .. 255 ] characters Stable key scoped to authenticated organization and operation. |
| hold_id required | integer (PositiveObjectId) >= 1 |
| external_reference required | string (ExternalReference) [ 1 .. 255 ] characters |
required | object (RateSnapshot) |
{- "hold_id": 1,
- "external_reference": "string",
- "rate_snapshot": {
- "source_reference": "string",
- "currency": "string",
- "selling_amount_minor": 0,
- "tax_amount_minor": 0,
- "commission_amount_minor": 0,
- "fx_rate": 0,
- "fx_base_currency": "string",
- "fx_quote_currency": "string",
- "quoted_at": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "idempotency_key": "string",
- "organization_id": 1,
- "booking_id": 1,
- "trip_id": 1,
- "external_reference": "string",
- "status": "CONFIRMED",
- "code": "BOOKING_CONFIRMED",
- "inventory_revision": 1,
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string"
}Requires Idempotency-Key and returns inventory_revision.
| id required | integer >= 1 |
| Idempotency-Key required | string [ 8 .. 255 ] characters Stable key scoped to authenticated organization and operation. |
| boat_id required | integer (PositiveObjectId) >= 1 |
| trip_template_id required | integer (PositiveObjectId) >= 1 |
| starts_at required | string <date-time> |
| ends_at required | string <date-time> Business interval end; interval semantics are half-open. |
| external_reference required | string (ExternalReference) [ 1 .. 255 ] characters |
{- "boat_id": 1,
- "trip_template_id": 1,
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "external_reference": "string"
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "idempotency_key": "string",
- "organization_id": 1,
- "booking_id": 1,
- "trip_id": 1,
- "external_reference": "string",
- "status": "CONFIRMED",
- "code": "BOOKING_CONFIRMED",
- "inventory_revision": 1,
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string"
}Requires Idempotency-Key and returns inventory_revision.
| id required | integer >= 1 |
| Idempotency-Key required | string [ 8 .. 255 ] characters Stable key scoped to authenticated organization and operation. |
| external_reference required | string (ExternalReference) [ 1 .. 255 ] characters |
| reason | string or null <= 500 characters |
{- "external_reference": "string",
- "reason": "string"
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "idempotency_key": "string",
- "organization_id": 1,
- "booking_id": 1,
- "trip_id": 1,
- "external_reference": "string",
- "status": "CONFIRMED",
- "code": "BOOKING_CONFIRMED",
- "inventory_revision": 1,
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string"
}{- "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
- "organization_id": 1,
- "inventory_revision": 0,
- "occurred_at": "2019-08-24T14:15:22Z",
- "business_timezone": "string"
}