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 the base URL https://cargoinsureonline.com/wp-json/api/v1
, and requires authentication through the headers X-API-Key: API_KEY
and X-API-Sec: API_SEC
. 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/v1
Herader
X-API-Key: API_KEY
X-API-Sec: API_SEC
Method: POST
Get Global Variables
The Get Global Variable Data API provides essential information on countries, currencies, and group types, which are crucial for global logistics and shipping operations.
Endpoint: /get-vars
curl –location –request POST ‘https://cargoinsureonline.com/wp-json/api/v1/get-vars’ \
–header ‘X-API-Key: API_KEY ‘ \
–header ‘X-API-Sec: API_SEC’
Get Sub-Group
The Get Sub-Group API allows users to retrieve specific sub-group information based on a given main group, enhancing the granularity and precision of cargo classification. By accessing the endpoint /get-sub-group
, users can send a POST request with the main group details to obtain relevant sub-group data.
Endpoint: /get-sub-group
Get Countries
The Get Countries API provides a comprehensive list of countries, essential for international logistics and insurance processes. By accessing the endpoint /get-countries
, users can send a POST request to retrieve detailed country data.
Endpoint: /get-countries
Get Currencies
The Get Currencies API provides users with a detailed list of global currencies, essential for international trade and financial transactions. By accessing the endpoint /get-currencies
, users can send a POST request to retrieve comprehensive currency data.
Endpoint: /get-currencies
Get Country Description
The Get Country Description API provides detailed descriptions of specific countries, essential for understanding various aspects of international destinations. By accessing the endpoint /get-country-desc
, users can send a POST request with the names or codes of the countries to retrieve comprehensive information about them.
Endpoint: /get-country-desc
Get Insurance Rate
The Get Insurance Rate API allows users to obtain precise insurance rate calculations for their shipments. By accessing the endpoint /get-rate
, users can send a POST request with detailed shipment information, including the origin and destination countries, cargo details, currency, and total value.
Endpoint: /get-rate
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
Buy Cargo Insurance For Ecommerce
The Buy E-Commerce Cargo Insurance API is specifically designed for insuring e-commerce shipments. By accessing the endpoint /buy-cargo-insurance
, users can send a POST request with detailed shipment, client, and product information to secure insurance coverage for e-commerce packages.
Endpoint: /buy-cargo-insurance
Cancel Insurance
The Cancel Insurance API allows users to cancel an existing cargo insurance policy efficiently. By accessing the endpoint /cancel-insurance
, users can send a POST request with the policy number to terminate the insurance coverage.
Endpoint: /cancel-insurance