Home

Booking System API

version 1

The Booking System API allows you to generate, confirm, handle, cancel, modify, and receive booking information directly.

OpenAPI Specification

Start designing your API in minutes. The OpenAPI specification file enables you to learn and interact with API elements, including all available endpoints, input and output representations.

General information

Booking System API is organized around REST.
Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

API endpoint#

1https://rates.searates.com/api/v1/bookings

All endpoints are only accessible via HTTPS and are located at rates.searates.com

Retrieve Bearer Token

To access Booking System API, you first need to obtain a bearer token.

Endpoint:

1GET https://www.searates.com/auth/platform-token

Required Parameters:

ParameterDescription
idYour platform ID, provided by your SeaRates manager
api_keyYour API key, provided by your SeaRates manager
loginYour SeaRates website login
passwordYour SeaRates website password

Example Request:

1GET https://www.searates.com/auth/platform-token?id=PLATFORM_ID&api_key=API_KEY&login=YOUR_LOGIN&password=YOUR_PASSWORD

Usage:

Include the token in the Authorization header for subsequent API requests:

1Authorization: Bearer 123

Create new booking

post/create
Headers

Content-Typeapplication/json

Body Parameters
  • shipment_idREQUIREDinteger
  • shipping_typeREQUIREDno type

    Allowed values:fcllclbulkland_fclftlltlfwllwlrail_fclrail_ftlair

  • ready_to_loadREQUIREDstring
  • partiesREQUIREDobject

    List of parties involved in the booking. The object may include up to three party objects: shipper, consignee, and notify (used for Shipping Instructions). Each party object contains the contact and company details required for the booking documentation.

  • productOptionalobject

    Product and cargo details used for creating the booking.

Response example
Booking data, retrieved after creating
1{
2  "success": true,
3  "data": {
4    "id": 1000999
5  }
6}