List all Insurance Policies
Changed onRetrieve a list of insurance policies.
Required authorization scope: public.insurance_policy:read
Request
- Base URLhttps://public-api.easyship.com
- URLhttps://public-api.easyship.com/2024-09/insurances/policies
- AuthHTTP bearer
Query parameters
Page number to fetch, default: 1
Number of records per page to fetch, default: 20
Filter records by policy type. By default, both easyship_label and external_label policies are returned. If easyship_shipment_id or source is set and policy_type is not, only easyship_label policies are returned, since those two filters have no equivalent on external_label policies.
Filter records by Easyship shipment ID. Only matches easyship_label policies; if set without policy_type, external_label policies are excluded entirely rather than returned unfiltered.
Filter records by insurance state. Applies to both policy types, each using its own state machine's values (see the state field on the response schema) -- easyship_label and external_label policies do not share a vocabulary, so this does not translate state values between them.
Filter records by recipient.
Filter records by source type. External: shipment label is not generated by Easyship. Cloud: shipment label is generated by Easyship. Efulfilment: Special contract with Easyship. Only matches easyship_label policies; if set without policy_type, external_label policies are excluded entirely rather than returned unfiltered.
Response
list of insurances
Changes
- 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
queryrequest parameterpolicy_type - info
added the new enum value
activeto thequeryrequest parameterstate - info
added the new enum value
awaitingto thequeryrequest parameterstate - info
added the new enum value
canceledto thequeryrequest parameterstate - info
added the new enum value
expiredto thequeryrequest parameterstate - 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