Skip to main content

decline_user_request

The requester turns the admin's quote down. It moves the request from ISSUED to DECLINED, a final status, in the status flow.

It is a GraphQL mutation returning UserRequest. Only the user who created the request can call it, and only while the request is ISSUED. Before a quote exists, use cancel_user_request instead.

Input​

input: UserRequestInput!

FieldTypeRequiredDescription
idStringYesThe user request to decline.
Mutation
mutation {
decline_user_request(input: { id: "3JMY..." }) { id status }
}

Errors​

ErrorMeaning
<status>_user_requestThe request isn't ISSUED — for example pending_user_request.
unauthorizedThe caller didn't create the request.
not_foundUnknown id.

It can also return Middleware Errors.