Quote_Copy
#
Description#
This function copies a quote into a new quote.
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 |
Response Parameters#
Parameter |
Type | Description |
---|---|---|
success |
Boolean | Boolean value indicating if the api request was successful |
id |
Number | The id number of the new quote that has been generated |
cust_id |
Number | Customer ID |
order_id |
Number | Order ID associated with the new quote |
code |
String | New quote code |
email |
String | Email Address |
fname |
String | First Name |
lname |
String | Last Name |
phone |
String | Phone Number |
zip |
String | Zip Code |
country |
String | Country |
comment |
String | New quote comments |
status |
Number | New quote status |
created |
Number | Unix timestamp for new quote creation date |
total |
Number | Total |
formatted_total |
String | Formatted total |
terms |
String | Terms |
expires |
Number | Unix timestamp for new quote expiration date |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "Module",
"Module_Code": "quote",
"Module_Function": "Quote_Copy",
"Quote_ID": 1003
}
Example Response#
{
"success": 1,
"data": {
"id": 1008,
"cust_id": 0,
"order_id": 0,
"code": "0U3B-PQ0G-8C84-QG8L",
"email": "donjuan@email.com",
"fname": "Don",
"lname": "Juan",
"phone": "800-123-4567",
"zip": "10028",
"country": "US",
"comment": "don't burn the beans",
"status": 0,
"created": 1620797771,
"total": 1272.45,
"formatted_total": "$1,272.45",
"terms": "",
"expires": 0
}
}
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 |