--- title: voidSessionReject - Payments Apps API description: |- Rejects an open void session. After the `voidSessionReject` mutation completes on a given void session, any `voidSessionResolve` mutation attempts will fail. Subsequent `voidSessionReject` mutation attempts will succeed, but the `RejectionReasonInput` argument will be ignored. api_version: 2025-10 api_name: payments-apps type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/payments-apps/latest/mutations/voidSessionReject md: https://shopify.dev/docs/api/payments-apps/latest/mutations/voidSessionReject.md --- # void​Session​Reject mutation Requires `write_payment_sessions` access scope. Rejects an open void session. After the `voidSessionReject` mutation completes on a given void session, any `voidSessionResolve` mutation attempts will fail. Subsequent `voidSessionReject` mutation attempts will succeed, but the `RejectionReasonInput` argument will be ignored. ## Arguments * id [ID!](https://shopify.dev/docs/api/payments-apps/latest/scalars/ID) required The void session ID. * reason [Void​Session​Rejection​Reason​Input!](https://shopify.dev/docs/api/payments-apps/latest/input-objects/VoidSessionRejectionReasonInput) required The rejection reason. *** ## Void​Session​Reject​Payload returns * user​Errors [\[Void​Session​Reject​User​Error!\]!](https://shopify.dev/docs/api/payments-apps/latest/objects/VoidSessionRejectUserError) non-null The list of errors that occurred from executing the mutation. * void​Session [Void​Session](https://shopify.dev/docs/api/payments-apps/latest/objects/VoidSession) The updated void session. *** ## Examples * ### voidSessionReject reference ## Mutation Reference ```graphql mutation voidSessionReject($id: ID!, $reason: VoidSessionRejectionReasonInput!) { voidSessionReject(id: $id, reason: $reason) { userErrors { field message } voidSession { # VoidSession fields } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "reason": { "code": "PROCESSING_ERROR", "merchantMessage": "" } } ``` ##### Variables ``` { "id": "gid://shopify//10079785100", "reason": { "code": "PROCESSING_ERROR", "merchantMessage": "" } } ``` ##### Schema ``` input VoidSessionRejectionReasonInput { code: VoidSessionStatusReasonRejectionCode! merchantMessage: String } ```