Gateway Logistics Network

Home / Network / API

Build on the marketplace

A documented REST API over the rate request marketplace: ports, countries, services, trade lanes and company data.

Reference

Endpoints and authentication

The description below is generated from the live routes, so it cannot drift away from what the API actually does.

Marketplace API

Version 1.2.0. Base URL https://gln.gateway.net.in/wp-json/gm/v1

Authentication

Calls from this site use your session cookie plus an X-WP-Nonce header. For an integration of your own, create a WordPress application password and send it as HTTP Basic. Endpoints returning member data are authorised on the server - you only ever receive your own company, lanes and services.

Company

MethodEndpointWhat it doesAuth
GET /company/me My company
Profile score, tier, lane allowance and services for the signed-in member.
Member
POST /company/verify Request verification
Submits the member's company for review. Rate limited per hour.
Member

General

MethodEndpointWhat it doesAuth
GET /areas areas Member
POST /areas areas Member
DELETE /areas/{id} areas/(?P<id>\d+)
Parameters: id*
Member
POST /areas/{id} areas/(?P<id>\d+)
Parameters: id*
Member
GET /coverage coverage Member
POST /coverage coverage Member
GET /openapi.json This document
The OpenAPI description of this API.
Public

Map

MethodEndpointWhat it doesAuth
GET /map Network map data
GeoJSON of member counts per country. Contains no member identity.
Public

Reference data

MethodEndpointWhat it doesAuth
GET /cities List cities
Cities for one state.
Parameters: state_id*
Public
GET /countries List countries
All active countries with ISO codes and region.
Public
GET /ports Search ports
Typeahead over port name, city and UN/LOCODE. Public, rate limited.
Parameters: q*, country_id, type, limit
Public
GET /states List states
States or provinces for one country.
Parameters: country_id*
Public

Services

MethodEndpointWhat it doesAuth
GET /services Service vocabulary
GET is public. POST replaces the signed-in member's services.
Member
POST /services Service vocabulary
GET is public. POST replaces the signed-in member's services.
Member

Trade lanes

MethodEndpointWhat it doesAuth
GET /lanes Trade lanes
The signed-in member's lanes. POST adds one.
Member
POST /lanes Trade lanes
The signed-in member's lanes. POST adds one.
Member
DELETE /lanes/{id} lanes/(?P<id>\d+)
Parameters: id*
Member
Scroll to Top