Create Order
Create a draft order
Endpoint
POST /v1/create-order
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
customer | object | yes | Customer details |
customer.name | string | no | Customer name |
customer.email | string | no | Customer email |
customer.phone | string | yes | Customer phone |
products | Product[] | yes | Order products |
Product Parameters
1. Vignette (RO)
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product vignette:ro |
vehicle | string | yes | Vehicle Certificate Number |
start_date | string | yes | Start date in yyyy-mm-dd format |
duration | number | yes | Duration in days |
category | string | yes | A, B, C, D, E, F, G, H, |
Request Body Examples
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "vignette:ro",
"vehicle": "1234567890", // 9 digits certificate number
"start_date": "2024-01-25", // yyyy-mm-dd
"duration": 10,
"category": "A"
}
]
}
Response Body Examples
{
"id": "RO1231241GG",
"status": "draft",
"description": "Rovinieta, 10 zile, Categoria A, BMW X7 ABC123",
"price": 69.98,
"currency": "MDL"
}
2. Green Card
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product green-card |
vehicle | string | yes | Vehicle Certificate Number |
start_date | string | yes | Start date in yyyy-mm-dd format |
duration | number | yes | Duration in days |
region | string | yes | Region code EU or UA |
insurance_company | string | yes | Insurance company |
idnx | string | yes | IDNP or IDNO value |
IDNX validator: https://github.com/iAsig/idnx-validator
Request Body Examples
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "green-card",
"vehicle": "1234567890", // 9 digits certificate number
"start_date": "2024-01-25", // yyyy-mm-dd
"duration": 15, // days
"region": "EU",
"insurance_company": "donaris",
"idnx": "1021600002204" // 13 digits IDNP or IDNO
}
]
}
Response Body Examples
{
"id": "IAE001002ABC",
"status": "draft",
"description": "Asigurare Carte Verde, 15 zile, Europa, BMW X7 ISG313",
"price": 700.0,
"currency": "MDL"
}
3. MTPL
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product rca |
vehicle | string | yes | Vehicle Certificate Number |
start_date | string | yes | Start date in yyyy-mm-dd format |
duration | number | yes | Duration in days |
insurance_company | string | yes | Insurance company |
idnx | string | yes | IDNP or IDNO value |
IDNX validator: https://github.com/iAsig/idnx-validator
Request Body Examples
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "rca",
"vehicle": "1234567890", // 9 digits certificate number
"start_date": "2024-01-25", // yyyy-mm-dd
"duration": 365, // days
"insurance_company": "donaris",
"idnx": "1021600002204" // 13 digits IDNP or IDNO
}
]
}
Response Body Examples
{
"id": "IAI001002ABC",
"status": "draft",
"description": "Asigurare RCA, BMW X7 ISG313",
"price": 2245.32,
"currency": "MDL"
}
4. Travel
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product medical |
start_date | string | yes | Start date in yyyy-mm-dd format |
covered_territories | string[] | yes | Countries ISO3 codes or regions EUROPE, CSI, WORLD |
include_additional_risk | boolean | yes | |
end_date | string | no | Required for single entry. End date in yyyy-mm-dd format |
activity | string | yes | TRVL - Tourism, WORK - Work, BIZZ-Business,STUDY - Studies, |
SKI - Ski , ADV - Tourism (incl. recreational sports), | |||
persons | TravelPerson[] | yes | Insured persons birthdays yyyy-mm-dd |
is_multiple_type | boolean | yes | true for multiple entries and false for single entry |
availability | number | no | Required for multiple entries. Availability in months |
insured_days | number | no | Required for multiple entries. Number of insured days |
amount | string | yes | Insured amount |
company_name | number | yes | Insurance company |
contractor | IndividualPerson or Company | yes | Contractor |
TravelPerson
| Name | Type | Required | Description |
|---|---|---|---|
first_name | string | yes | Person first name |
last_name | string | yes | Person last name |
birthday | string | yes | Birth data in yyyy-mm-dd format |
address | string | yes | Person address |
passport | string | yes | Person passport (series + number) |
idnp | string | yes | IDNP value |
IndividualPerson
| Name | Type | Required | Description |
|---|---|---|---|
passport | string | yes | Contractor passport (series + number) |
birthday | string | yes | Contractor birth date in yyyy-mm-dd format |
first_name | string | yes | Contractor first name |
last_name | string | yes | Contractor last name |
idnx | string | yes | Contractor IDNP |
address | string | yes | Contractor address |
type | string | yes | individual |
Company
| Name | Type | Required | Description |
|---|---|---|---|
fullName | string | yes | Company name |
idnx | string | yes | Company IDNO |
address | string | yes | Company address |
type | string | yes | company |
IDNX validator: https://github.com/iAsig/idnx-validator
Request Body Examples (single entry)
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "medical",
"start_date": "2024-04-03",
"covered_territories": ["ROU"],
"include_additional_risk": false,
"end_date": "2024-04-08",
"activity": "SKI",
"persons": [
{
"first_name": "Mary",
"last_name": "Jane",
"birthday": "1999-12-31", // yyyy-mm-dd
"address": "CHISINAU",
"passport": "B39375364",
"idnp": "2002488848847" // 13 digits IDNP
}
],
"contractor": {
"passport": "AB213453",
"birthday": "1990-11-31",
"first_name": "Michael",
"last_name": "Jane",
"idnx": "2002433727391",
"address": "str.Columna 32, Chisinau",
"type": "individual"
},
"is_multiple_type": false,
"amount": "30000",
"company_name": "transelit"
}
]
}
Request Body Examples (multiple entries)
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "medical",
"start_date": "2024-04-03",
"covered_territories": ["ROU"],
"include_additional_risk": false,
"activity": "SKI",
"persons": [
{
"first_name": "Mary",
"last_name": "Jane",
"birthday": "1999-12-31", // yyyy-mm-dd
"address": "CHISINAU",
"passport": "B39375364",
"idnp": "2002488848847" // 13 digits IDNP
}
],
"contractor": {
"full_name": "IASIG ONLINE S.R.L",
"idnx": "1021600002204",
"address": "str.Albisoara 42, Chisinau",
"type": "company"
},
"is_multiple_type": true,
"availability": 1,
"insured_days": 10,
"amount": "30000",
"company_name": "transelit"
}
]
}
Response Body Examples
{
"id": "IAM541417MZV",
"status": "draft",
"description": "Asigurare Medicala pentru calatorii",
"price": 95.86,
"currency": "MDL"
}
5. Baggage insurance
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product baggage |
start_date | string | yes | Departure date according to the airline tickets in yyyy-mm-dd format |
flight_numbers | string[] | yes | Flights numbers according to the airline tickets |
baggage_pcs | number | yes | Number of baggages |
idnp | string | yes | IDNP value |
contractor_full_name | string | yes | Person full name according to the airline tickets (first/last name) |
insurance_company | string | yes | Insurance company |
Request Body Examples
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "baggage",
"start_date": "2024-01-25", // yyyy-mm-dd
"flight_numbers": ["EK203", "BA289"],
"baggage_pcs": 2,
"idnp": "2002433727391",
"contractor_full_name": "John Doe",
"insurance_company": "asterra"
}
]
}
Response Body Examples
{
"id": "IAB001002ABC",
"status": "draft",
"description": "Asigurare facultativă a bagajelor avia",
"price": 38.08,
"currency": "MDL"
}
6. Road Tax
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product road-tax |
vehicle | string | yes | Vehicle Certificate Number |
idnx | string | yes | IDNP or IDNO value |
contractor_full_name | string | yes | Person full name or Company Name |
locality_id | number | yes | Locality id (CUATM) |
locality_name | string | yes | Locality |
region | string | yes | Municipiu / Raion |
Request Body Examples
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "road-tax",
"vehicle": "1234567890", // 9 digits certificate number
"idnx": "2002433727391",
"contractor_full_name": "John Doe",
"locality_id": 120,
"locality_name": "SEC.BUIUCANI",
"region": "MUN.CHISINAU"
}
]
}
Response Body Examples
{
"id": "TFD271963JPH",
"status": "draft",
"description": "Taxa de drum pentru folosirea drumurilor de către autovehicule înmatriculate în RM",
"price": 837.0,
"currency": "MDL"
}
7. Vignette (MD)
| Name | Type | Required | Description |
|---|---|---|---|
product | string | yes | Product vignette:md |
identity_document | string | yes | IDNP or passport number |
driver_full_name | string | yes | Driver full name |
country | string | yes | Country ISO3 codes |
start_date | string | yes | Start date in yyyy-mm-dd format |
period | string | yes | Validity period |
vehicle_category | string | yes | M1, M2 , M3 ,N1 ,N3 ,N3 |
registration_number | string | yes | Vehicle plate number |
** Validity period for M1 Category 7_days| 15_days| 30_days| 90_days| 180_days| >180_days
** Validity period for M2, M3, N1, N2, N3 Category 1_day| 7_days| 30_days| 90_days| 12_months
*** M1 - Cars (Vehicles classified under tariff heading 8703 and trailers attached to them), M2 - Buses from 9 to 24 seats inclusive, M3 - Buses with more than 25 seats, N1 - Trucks with/without trailer, road tractors with/without semi-trailer up to and including 3.5 t, N2 - Trucks with/without trailer, road tractors with/without semi-trailer from 3.5 to 10 t inclusive, N3 - Trucks with/without trailer, road tractors with/without semi-trailer from 10 to 40 t inclusive,
Request Body Examples
{
"customer": {
"name": "John Doe",
"email": "john@doe.com",
"phone": "+37379000000"
},
"products": [
{
"product": "vignette:md",
"vehicle_category": "M1",
"identity_document": "2002433727391",
"driver_full_name": "John Doe",
"country": "ROU",
"start_date": "2024-01-25",
"registration_number": "XXX999",
"period": "7_days"
}
]
}
Response Body Examples
{
"id": "MDV517529SEW",
"status": "draft",
"description": "Vinieta MD",
"price": 77.08,
"currency": "MDL"
}
Status Codes
| Code | Description |
|---|---|
201 | Order created |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal server error |