v1
latestOpenAPI 3.0.12026-07-243902.3 MBCreate a shipping protection quote
This endpoint calculates the shipping protection premium, i.e. the price you will charge the customer for shipping protection, for eligible products in the specified cart.<p>The response will include the premium and a quote id which must be used to create a valid Order with Extend including shipping protection. An optional array "excluded_products" may contain a list of products that were excluded from the premium calculation if the cart contained products that are not eligible for shipping protection.
Headers
Used to indicate the original media type of the resource (prior to any content encoding applied for sending).
Indicates which content types, expressed as MIME types, the client is able to understand, as well as identifies which API version to use in the request.
Request body
Example request
{
"customer": {
"loyaltyStatus": "member"
}
}Response
When all request parameters are valid and the request is processed successfully. If the request is not eligible for shipping protection coverage, the, premium on the response will be zero and there will be no quote ID in the response, so you will not be able to create a shipping protection order. Additionally, an optional note response attribute may contain additional context when no quote id is returned.<ul> <li>exceeds_coverage_max - total eligible cart value is higher than maximum allowed value for shipping protection </li> <li>below_coverage_min - otal eligible cart value is lower than minimum allowed value </li><li>not_eligible - none of the products in the request are eligible for shipping protection</li></ul>