Maersk Bookings API

Create and manage ocean shipment bookings.

Business capability
Booking and Reservation Management BC-2400.40

Operations 4

POST /dcsa/bkg/v2/bookings Create Ocean Booking #
GET /dcsa/bkg/v2/bookings/{carrierBookingReference} Retrieve Ocean Booking #
PATCH /dcsa/bkg/v2/bookings/{carrierBookingReference} Amend Ocean Booking #
DELETE /dcsa/bkg/v2/bookings/{carrierBookingReference} Cancel Ocean Booking #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/maersk-line-bookings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

maersk-line-bookings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Maersk Ocean Booking Bookings API
  description: DCSA-compliant Ocean Booking v2 API for Maersk. Create, retrieve, amend, and cancel ocean shipment bookings. Aligned with the DCSA Booking 2.0 interface standard so requests work across multiple ocean carriers.
  version: '2.0'
  contact:
    name: Maersk Developer Support
    url: https://developer.maersk.com/support
servers:
- url: https://api.maersk.com
  description: Production Gateway
security:
- ConsumerKey: []
- OAuth2:
  - booking
tags:
- name: Bookings
  description: Create and manage ocean shipment bookings.
paths:
  /dcsa/bkg/v2/bookings:
    post:
      summary: Create Ocean Booking
      description: Submit a booking request for an ocean shipment. The request body follows the DCSA Booking 2.0 schema covering parties, cargo, equipment, routing, and references.
      operationId: createBooking
      tags:
      - Bookings
      parameters:
      - name: Consumer-Key
        in: header
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookingRequest'
      responses:
        '201':
          description: Booking created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Booking'
        '400':
          description: Invalid booking request.
        '401':
          description: Unauthorized.
  /dcsa/bkg/v2/bookings/{carrierBookingReference}:
    get:
      summary: Retrieve Ocean Booking
      description: Retrieve an existing booking by carrier booking reference.
      operationId: getBooking
      tags:
      - Bookings
      parameters:
      - name: carrierBookingReference
        in: path
        required: true
        schema:
          type: string
      - name: Consumer-Key
        in: header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Booking returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Booking'
        '404':
          description: Booking not found.
    patch:
      summary: Amend Ocean Booking
      description: Submit an amendment to an existing booking.
      operationId: amendBooking
      tags:
      - Bookings
      parameters:
      - name: carrierBookingReference
        in: path
        required: true
        schema:
          type: string
      - name: Consumer-Key
        in: header
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookingRequest'
      responses:
        '200':
          description: Amendment accepted.
        '404':
          description: Booking not found.
    delete:
      summary: Cancel Ocean Booking
      description: Cancel an existing booking.
      operationId: cancelBooking
      tags:
      - Bookings
      parameters:
      - name: carrierBookingReference
        in: path
        required: true
        schema:
          type: string
      - name: Consumer-Key
        in: header
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Booking cancelled.
components:
  schemas:
    BookingRequest:
      type: object
      required:
      - carrierServiceCode
      - receiptTypeAtOrigin
      - deliveryTypeAtDestination
      - cargoMovementTypeAtOrigin
      - cargoMovementTypeAtDestination
      - requestedEquipments
      properties:
        carrierServiceCode:
          type: string
        receiptTypeAtOrigin:
          type: string
          enum:
          - CY
          - SD
          - CFS
        deliveryTypeAtDestination:
          type: string
          enum:
          - CY
          - SD
          - CFS
        cargoMovementTypeAtOrigin:
          type: string
          enum:
          - FCL
          - LCL
          - BBK
        cargoMovementTypeAtDestination:
          type: string
          enum:
          - FCL
          - LCL
          - BBK
        serviceContractReference:
          type: string
        commodities:
          type: array
          items:
            $ref: '#/components/schemas/Commodity'
        requestedEquipments:
          type: array
          items:
            $ref: '#/components/schemas/RequestedEquipment'
        partyContactDetails:
          type: array
          items:
            $ref: '#/components/schemas/PartyContact'
    PartyContact:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
        phone:
          type: string
    Booking:
      allOf:
      - $ref: '#/components/schemas/BookingRequest'
      - type: object
        properties:
          carrierBookingReference:
            type: string
          bookingStatus:
            type: string
            enum:
            - RECEIVED
            - PENDING_UPDATE
            - UPDATE_CONFIRMED
            - CONFIRMED
            - REJECTED
            - CANCELLED
            - COMPLETED
          bookingRequestDateTime:
            type: string
            format: date-time
    RequestedEquipment:
      type: object
      properties:
        ISOEquipmentCode:
          type: string
          example: 22GP
        units:
          type: integer
        isShipperOwned:
          type: boolean
    Commodity:
      type: object
      properties:
        commodityType:
          type: string
        HSCodes:
          type: array
          items:
            type: string
        cargoGrossWeight:
          type: number
        cargoGrossWeightUnit:
          type: string
          enum:
          - KGM
          - LBR
  securitySchemes:
    ConsumerKey:
      type: apiKey
      in: header
      name: Consumer-Key
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.maersk.com/customer-identity/oauth/v2/access_token
          scopes:
            booking: Manage bookings.