Quote_Update_Expiry#
Description#
This function updates the expiration date of a 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_idedit_quotequote_code |
Number String String |
The id of the quote The code of the quote The code of the quote |
quote_expires |
Number | Unix timestamp value of the updated expiration date |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
success |
Boolean | Boolean value indicating if the api request was successful |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "Module",
"Module_Code": "quote",
"Module_Function": "Quote_Update_Expiry",
"Quote_ID": 1002,
"Quote_Expires": 1621488721
}
Example Response#
{
"success": 1
}
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 |
| MER-JSN-00023 | One or more parameters are invalid | Missing or invalid required parameter |