Create an Insurance Policy
Changed onCreate insurance for a shipment whose label isn't provided by Easyship. For the shipment whose label is provided by Easyship, please use Shipment Insurance Endpoint to insure it.
Easyship relies on the tracking number and courier service ID to validate the shipment. Once the tracking record is successfully established, the insurance will be automatically set up and charged.
If the tracking record is initiated using the tracking endpoint POST /:version/trackings, it becomes valid for insurance only after receiving a response from the courier service, and within 24 hours of that time.
Required authorization scope: public.insurance_policy_3p:write
This API requires an updated contract with Easyship. Get in touch with your account manager or Easyship Support Team.
Request
- Base URLhttps://public-api.easyship.com
- URLhttps://public-api.easyship.com/2024-09/insurances/policies
- AuthHTTP bearer
Request body
Response
Insurance policy successfully created
Changes
- breaking
the request property
/////became not nullable - breaking
the request property
/////became not nullable - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - warning
added the new
acceptedenum value to the/response property for the response status - warning
added the new
activeenum value to the/response property for the response status - warning
added the new
awaitingenum value to the/response property for the response status - warning
added the new
canceledenum value to the/response property for the response status - warning
added the new
closedenum value to the/response property for the response status - warning
added the new
expiredenum value to the/response property for the response status - warning
added the new
filedenum value to the/response property for the response status - warning
added the new
in_progressenum value to the/response property for the response status - warning
added the new
not_startedenum value to the/response property for the response status - warning
added the new
refund_completedenum value to the/response property for the response status - warning
added the new
refund_failedenum value to the/response property for the response status - warning
added the new
refund_initiatedenum value to the/response property for the response status - warning
added the new
rejectedenum value to the/response property for the response status - info
added the new optional request property
///////// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
///// - info
the request property
/////became nullable - info
the request property
/////became nullable - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking