Skip to main content

Create Insurance Offer

Creates a new insurance offer for a declaration in the system.

Request

POST /api/v1/declarations/{declaration_id}/insurances

Parameters

NameTypeInDescription
declaration_idstringpathRequired. The ID of the declaration
usernamestringbodyRequired. Insurance provider username
passwordstringbodyRequired. Insurance provider password
owner_identity_numberstringbodyRequired. Identity number of the policy owner
policy_numberstringbodyRequired. Policy number
policy_renewal_numbernumberbodyRequired. Policy renewal number
policy_currency_typestringbodyRequired. Currency type of the policy (e.g., USD)
policy_asset_descriptionstringbodyRequired. Description of the asset in policy
policy_reference_numberstringbodyRequired. Reference number of the policy
flotan_policy_numberstringbodyOptional. Flotan policy number
asset_valuenumberbodyRequired. Value of the asset
asset_value_currency_typestringbodyRequired. Currency type of the asset value
asset_description_englishstringbodyRequired. English description of the asset
is_asset_usedbooleanbodyRequired. Whether the asset is used
transport_license_platestringbodyRequired. License plate of the transport vehicle
goods_to_be_printed_on_policystringbodyRequired. Goods description to be printed on policy
from_countrystringbodyRequired. Country of origin
from_citystringbodyRequired. City of origin
from_regionstringbodyRequired. Region of origin
to_countrystringbodyRequired. Destination country
to_citystringbodyRequired. Destination city
to_regionstringbodyRequired. Destination region
transport_typestringbodyRequired. Type of transport
transport_vehicle_countnumberbodyRequired. Number of transport vehicles
loading_datestringbodyRequired. Loading date (YYYY-MM-DD)
beneficiary_namestringbodyOptional. Name of the beneficiary
letter_of_credit_numberstringbodyOptional. Letter of credit number
imo_numberstringbodyOptional. IMO number
policy_description_turkishstringbodyRequired. Turkish description of the policy
policy_description_englishstringbodyRequired. English description of the policy

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be application/json
X-Target-ServerRequired. Target server identifier

Example

curl --request POST \
--url '{{HOST}}/api/v1/declarations/67db101b6f7e65dcdd379d6f/insurances' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--header 'X-Target-Server: declaration' \
--data '{
"username": "A4882222",
"password": "NKL123456!",
"owner_identity_number": "3241047192",
"policy_number": "1077607962",
"policy_renewal_number": 0,
"policy_currency_type": "USD",
"policy_asset_description": "Policeye Basilacak Emtia",
"policy_reference_number": "24-00025",
"flotan_policy_number": "",
"asset_value": 1000,
"asset_value_currency_type": "USD",
"asset_description_english": "Personal belongings and electronics",
"is_asset_used": false,
"transport_license_plate": "34ABC123",
"goods_to_be_printed_on_policy": "Policeye Basilacak Emtia",
"from_country": "ÇİN",
"from_city": "WOHAM",
"from_region": "WOHAM",
"to_country": "TÜRKİYE",
"to_city": "ISTANBUL",
"to_region": "AHL",
"transport_type": "vehicle",
"transport_vehicle_count": 1,
"loading_date": "2025-05-20",
"beneficiary_name": "",
"letter_of_credit_number": "",
"imo_number": "",
"policy_description_turkish": "Kişisel eşyalar ve elektronik ürünler için sigorta poliçesi",
"policy_description_english": "Insurance policy for personal belongings and electronics"
}'

Response

A successful request returns an HTTP 200 status code with "OK" response.

Status Codes

Status CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Declaration ID does not exist
500Internal Server Error

Notes

After submitting the insurance offer request, you can track its status using the insurance offer search endpoint.