API Details
Header
Endpoint (Staging)
https://gw-dev.saladin.vn/api/v1/trip-insurance
Endpoint (Production)
โhttps://gw.saladin.vn/api/v1/trip-insurance
X-Sld-Timestamp
Request call time, in seconds
X-Sld-ClientKey
Client Key is issued to 3rd Party
X-Sld-Signature (param)
The signature is generated based on the request body
How to generate X-Sld-Signature
API #01 - Calculate Premium v2
GET
{{endpoint}}/vendor/accident-insurance/v2/premiums
Purpose: Enable partners to access multiple insurance products with a single request.
Trigger when: Users select to purchase the insurance for the trip.
Headers
X-Sld-Timestamp
Timestamp when calling request in second
X-Sld-ClientKey
Client key which is given to partner
X-Sld-Signature
The code is generated according to the instructions in the 'How to generate X-Sld-Signature' section
Query parameters
number_of-seat
interger
channel
enum
1 - Offline. 2 - Online.
Response
API #02 - Create Policy
Post: /vendor/accident-insurance/policies
Purpose: The partner can request this API to create the insurance contract.
Trigger when: After customers make payment successfully for their order.
Parameters
Body
order_id
string
The id of the order on the partner system.
Y
product_code
string
The product code which is returned by the API#1
N
channel
enum
1 - Offline. 2 - Online.
Y
buyer_name
string
Full name of the buyer
Y
buyer_phone
string
Phone number of the buyer
Y
buyer_email
string
email of the buyer
Y
bus_operator
string
Y
bus_phone_number
string
Y
bus_number_plate
string
N
driver_phone
string
Phone number of the driver
N
contract_date
timestamp
The time that the customer confirmed and made the payment for the insurance contract.
Y
trip_start_time
timestamp
Y
trip_end_time
timestamp
Y
from_city
string
e.g Thร nh phแป Hแป Chรญ Minh
Y
to_city
string
e.g Thร nh phแป Hแป Chรญ Minh
Y
from_address
string
e.g 135, Thร nh Thรกi, Quแบญn 10, Thร nh phแป Hแป Chรญ Minh
Y
to_address
string
e.g 135, Thร nh Thรกi, Quแบญn 10, Thร nh phแป Hแป Chรญ Minh
Y
ticket_number
string
Y
seat_numbers
array
e.g: A4, B5, ....
Y
price
number
Paid amount after the promotion/discount
Y
product_premium
string
1000000
Y
app_ref_id
string
A unique request ID from the partner to distinguish this request from others
Responses
200
OK
API #03 - Cancel ticket
Purpose: The partner can request this API to cancel the ticket of a policy.
Trigger when: When the user makes canceling the ticket on the partner's tools.
API #04 - Create claim request
Purpose: The partner system call to submit a claim request to Saladin when the customer cancels the trip and they eligible to participate in the program "Tri รขn khรกch hร ng".
Trigger when: When the user cancels the trip and presses a CTA to submit a claim request.
Parameters
Body
API #05 - Update Policy
PUT : /vendor/accident-insurance/policies/:policy_id
Purpose: The partner can request this API to edit the insurance contract.
Trigger when: Customer or Admin makes changes details of the order.
Rules for update:
All changes are only accepted before the estimated time departure of the trip.
All of the fields on the API's body will be replaced on the insurance contract except channel.
If the insurance premium increases, the customer must pay more or the agent must collect the difference in the payment_amount field.
Parameters
Path
policy_id
string
Y
Body
order_id
string
The id of the order on the partner system.
Y
channel
enum
1 - Offline. 2 - Online.
Y
ticket_number
string
Y
buyer_name
string
Full name of the buyer
Y
buyer_phone
string
Phone number of the buyer
Y
buyer_email
string
email of the buyer
Y
bus_operator
string
Y
bus_phone_number
string
Y
bus_number_plate
string
N
driver_phone
string
Phone number of the driver
N
contract_date
date_time
The time that the customer confirmed and made the payment for the insurance contract.
Y
trip_start_time
date_time
Y
trip_end_time
date_time
Y
from_city
string
e.g Thร nh phแป Hแป Chรญ Minh
Y
to_city
string
e.g Thร nh phแป Hแป Chรญ Minh
Y
from_address
string
e.g 135, Thร nh Thรกi, Quแบญn 10, Thร nh phแป Hแป Chรญ Minh
Y
to_address
string
e.g 135, Thร nh Thรกi, Quแบญn 10, Thร nh phแป Hแป Chรญ Minh
Y
string
Y
seat_numbers
array
e.g: A4, B5, ....
Y
price
number
Paid amount after the promotion/discount
Y
Responses
200
OK
API #06 - Get policy information
Purpose: The partner can call this API to check the status of the policy of the order.
API #07 - Cancel Policy
Purpose: The partner can call this API to cancel the policy.
Rules For Cancellation
The policy is only canceled 48 hours before the estimated departure time of the trip
Last updated