Open2b versione 7.5

create-quote

Creates a quote from a cart.

If a customer key is given, the customer become the customer of the quote.

Request

HTTP POST
/api/v10/storefront.create-quote
{
  "cart" : "RtRi8JWsxK…TMwTA1UJtg" // cart (token) (required) - string(32)
}

Response

{
  "status" : "ok",
  "id" : 1167942543 // identifier of the quote - int(1…)
  "token" : "G7s6bdP…3xUa9Lbf" // token of the quote - string(32)
}

Errors

Field Type Description
cart NotFound Cart '<cart>' does not exist
isQuote InvalidValue Cart '<cart>' can not be ordered but quoted
items InvalidValue Cart '<cart>' is empty
paymentMethod InvalidValue Cart '<cart>' has no payment method
shippingMethod InvalidValue Cart '<cart>' has no shipping method