API Catalogue
API Documentation
API Introduction
The Cargo Insurance API provides seamless integration for obtaining cargo insurance coverage online. With this API, users can efficiently manage and insure their shipments, ensuring peace of mind and financial protection against potential losses during transit. The API is accessed via a POST request to two base URLs, one for staging and another one for production which are given below, and requires authentication through the headers api_key
and api_sec
, these will be provided by the admin to you. This streamlined approach allows for quick and secure insurance processing, tailored to the needs of modern logistics operations.
Base Url: https://cargoinsureonline.com/wp-json/api/v2
API Headers:
api_key: API_KEY
api_sec: API_SEC
Get All Insurance Options
The Get All Insurance options API provides you with all options like countries, group-types, risk-types, transport-types and currencies which you need to select while buying a new insurance.
Endpoint: /get-cargo-insurance-options
API Method: GET
curl –location –request GET ‘https://cargoinsureonline.com/wp-json/api/v2/get-cargo-insurance-options’ \
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Get All Countries
The Get All countries options API provides you with list of countries, essential for international logistics and insurance processes.
Endpoint: /get-cargo-insurance-options?type=countries
API Method: GET
curl –location –request GET ‘https://cargoinsureonline.com/wp-json/api/v2/get-cargo-insurance-options?type=countries’ \
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Get All Group Types
The Get All Group Types API provides you with the list of all group types under which your cargo falls like E-commerce, Artworks, general cargo, etc.
Endpoint: /get-cargo-insurance-options?type=group_types
API Method: GET
curl –location –request GET ‘https://cargoinsureonline.com/wp-json/api/v2/get-cargo-insurance-options?type=group_types’ \
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Get All Risk Types
The Get All Risk Types API gives you a list of all risks which your cargo can be under according to you.
Endpoint: /get-cargo-insurance-options?type=risk_types
API Method: GET
curl –location –request GET ‘https://cargoinsureonline.com/wp-json/api/v2/get-cargo-insurance-options?type=risk_types’ \
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Get All Transport Types
The Get All Transport Types API gives you the list of all methods of transport you cargo can go through like AIR, SEA, ROAD, COURIER, etc.
Endpoint: /get-cargo-insurance-options?type=transport_types
API Method: GET
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Get All Currencies
The Get All Currencies API provides users with a detailed list of global currencies, essential for international trade and financial transactions.
Endpoint: /get-cargo-insurance-options?type=currencies
API Method: GET
curl –location –request GET ‘https://cargoinsureonline.com/wp-json/api/v2/get-cargo-insurance-options?type=currencies’ \
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Get All Carriers
The Get All Carriers API provides a list of all carriers used by most of the customers like Chronopost, DHL, FedEx, UPS, etc.
Endpoint: /get-cargo-insurance-options?type=carriers
API Method: GET
curl –location –request GET ‘https://cargoinsureonline.com/wp-json/api/v2/get-cargo-insurance-options?type=currencies’ \
–header ‘api_key: API_KEY ‘ \
–header ‘api_sec: API_SEC’
Buy Cargo Insurance
The Buy Insurance API enables users to purchase cargo insurance for their shipments efficiently. By accessing the endpoint /buy-cargo-insurance
, users can send a POST request with detailed shipment and client information to secure the necessary insurance coverage. This API streamlines the process of obtaining cargo insurance, ensuring timely and accurate protection for shipments.
Endpoint: /buy-cargo-insurance