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!
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | The user request to decline. |
Mutation
mutation {
decline_user_request(input: { id: "3JMY..." }) { id status }
}
Errors
| Error | Meaning |
|---|---|
<status>_user_request | The request isn't ISSUED — for example pending_user_request. |
unauthorized | The caller didn't create the request. |
not_found | Unknown id. |
It can also return Middleware Errors.