Skip to content

Quote_Convert#


Description#

This function converts a quote to an order.

Request Parameters#

Parameter
Type Description
function String For module level functions this parameter will always have the value Module
module_code String The module code will always have the value quote for this function
module_function String Specifies the function being executed, in this case Quote_Update_Requester_Information
quote_id
edit_quote
quote_code
Number
String
String
The id of the quote
The code of the quote
The code of the quote
customer_id
edit_customer
customer_login
Number
String
String
The customer id
The customer login
The customer login
customer_copy Boolean Boolean value indicating if the customer_id attached to the quote should be copied over to the order.

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the api request was successful
order_id Number The id number of the new order that has been generated

Example Request#

{
    "Store_code": "beta",
    "Function": "Module",
    "Module_Code": "quote",
    "Module_Function": "Quote_Convert",
    "Quote_ID": 1003,
    "Customer_ID": 0,
    "Customer_Copy": false
}

Example Response#

{
    "success": 1,
    "data": {
        "order_id": 1012
    }
}

Error Responses#

Error Code Error Message Error Description
MER-UTL-QUOTES-00343 Quote not found Quote not found
MER-UTL-QUOTES-00346 Unable to load quote: One of Quote_ID, Edit_Quote, or Quote_Code must be specified Unable to load quote