deleteNegotiableQuotes mutation
The deleteNegotiableQuotes mutation causes the specified negotiable quotes to be invisible from the Admin or from the storefront. The quotes are still present in the database.
You can run the deleteNegotiableQuotes mutation when negotiable quotes are have the following statuses:
- SUBMITTED
- UPDATED
- OPEN
- CLOSED
- DECLINED
- EXPIRED
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboarddeleteNegotiableQuotes(input: DeleteNegotiableQuotesInput!): DeleteNegotiableQuotesOutput
Reference
The deleteNegotiableQuotes reference provides detailed information about the types and fields defined in this mutation.
The DeleteNegotiableQuoteOperationResult union is an output object that provides details about the result of a request to delete a negotiable quote. To return these details, specify fragments on the DeleteNegotiableQuoteOperationFailure and NegotiableQuoteUidOperationSuccess objects. Specify the __typename attribute to distinguish the object types in the response.
The DeleteNegotiableQuoteError union type contains one or more of the following data types, all of which implement ErrorInterface.
InternalErrorNegotiableQuoteInvalidStateErrorNoSuchEntityUidError
Example usage
The following example deletes the specified negotiable quote.
Request:
Copied to your clipboardmutation {deleteNegotiableQuotes(input: {quote_uids: ["R1chDMgmh6PXGz2AjXMTBaiE68wTydRH"]}) {result_status,operation_results {...on NegotiableQuoteUidOperationSuccess{__typenamequote_uid}...on DeleteNegotiableQuoteOperationFailure{__typenamequote_uiderrors {__typename...on ErrorInterface{message}...on NoSuchEntityUidError{uidmessage}...on NegotiableQuoteInvalidStateError {message}}}}}}
Response:
Copied to your clipboard{"data": {"deleteNegotiableQuotes": {"result_status": "SUCCESS","operation_results": [{"__typename": "NegotiableQuoteUidOperationSuccess","quote_uid": "R1chDMgmh6PXGz2AjXMTBaiE68wTydRH"}]}}}

