API V1

Endpoint (Staging)

https://gw-dev.saladin.vn

Endpoint (Production)

​https://gw.saladin.vn

API Details

API #0 - get access token

Purpose: The partner must call this API to get the access token to use to access Saladin's web page that is used to fulfill the passenger information.

Trigger when: Before the partner system redirects to Saladin's web page.

get
Header parameters
X-Sld-TimestampnumberRequired

Timestamp when calling request in second

X-Sld-ClientKeystringRequired

Client Key which is given to partner

X-Sld-SignaturestringRequired

Signature which is calculated by Saladin guide

Responses
chevron-right
200

A successful response.

application/json
get
/api/v1/flight-insurance/vendor/access-token

API #1 - get insurance products

  • Purpose: The partner can request this API to get available insurance product for the flight trip that the user is booking.

  • Trigger when: The partner can request this API when

    • Bookers are booking flights to get the premium and advise their customers.

    • Recalculate the premium of the insurance product after the booker issued the flight ticket.

post
Header parameters
X-Sld-TimestampnumberRequired

Timestamp when calling request in second

X-Sld-ClientKeystringRequired

Client Key which is given to partner

X-Sld-SignaturestringRequired

Signature which is calculated by Saladin guide

Body
Responses
chevron-right
200

A successful response.

application/json
post
/api/v1/flight-insurance/vendor/insurance-products

API #2 - update policy

  • Purpose: The partner can request this API to change some insurance contract information, i.e. passenger's info, flight info,... But the change is only accepted 3 hours before departure time.

  • Trigger when:

  • Body:

put
Path parameters
policy_idstringRequired
Header parameters
X-Sld-TimestampnumberRequired

Timestamp when calling request in second

X-Sld-ClientKeystringRequired

Client Key which is given to partner

X-Sld-SignaturestringRequired

Signature which is calculated by Saladin guide

Body
product_codestringOptional
order_idstringOptional
pnrstringOptional
Responses
chevron-right
200

A successful response.

application/json
put
/api/v1/flight-insurance/vendor/policies/{policy_id}

API #3 - Create policy

  • Purpose: With this API, The partner can send the information about the flight to create the policy in the Saladin system.

  • Body:

post
Header parameters
X-Sld-TimestampnumberRequired

Timestamp when calling request in second

X-Sld-ClientKeystringRequired

Client Key which is given to partner

X-Sld-SignaturestringRequired

Signature which is calculated by Saladin guide

Body
product_codestringOptional
premium_amountinteger · int64Optional
order_idstringOptional
pnrstringOptional
Responses
chevron-right
200

A successful response.

application/json
post
/api/v1/flight-insurance/vendor/policies

Last updated