Cargo Insure Online

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

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

 

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

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

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

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

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

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

API Method: POST

Get Cargo Insurance Rate

You can use this API to get the insurance rates without purchasing it. It accepts all the data same as buy-cargo-insurance and only returns the details of the insurance with lowest price.

Endpoint: /get-cargo-insurance-rates

API Method: POST

Get Claims Information for any User

The Get all claims information API will return all details, claim value, documents, etc. It will be based on the API key and API secret headers used in API call.

Endpoint: /get-claims-by-user-id

API Method: GET

Sample Response:

[{
“id”: “1”,
“user_id”: “101”,
“policy_number”: “A123”,
“company_name”: “Example Insurance Co.”,
“contact_name”: “John Doe”,
“email”: “johndoe@example.com”,
“phone”: “1234567890”,
“claim_value”: “500.00”,
“date_of_loss”: “2024-01-01”,
“description”: “Sample claim description”,
“documents”: “a:2:{i:0;s:94:\”https://example.com/files/sample-image1.png\”;i:1;s:88:\”https://example.com/files/sample-document1.pdf\”;}”,
“status”: “Under Review”,
“remarks”: “Verification in progress”,
“claim_date”: “2024-01-02 10:00:00”
}]

Scroll to Top
English