--- title: captureSessionReject - Payments Apps API description: |- Rejects an open capture session. After the `captureSessionReject` mutation completes on a given capture session, any `captureSessionResolve` mutation attempts will fail. Subsequent `captureSessionReject` mutation attempts will succeed, but the `reason` 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/captureSessionReject md: https://shopify.dev/docs/api/payments-apps/latest/mutations/captureSessionReject.md --- # capture​Session​Reject mutation Requires `write_payment_sessions` access scope. Rejects an open capture session. After the `captureSessionReject` mutation completes on a given capture session, any `captureSessionResolve` mutation attempts will fail. Subsequent `captureSessionReject` mutation attempts will succeed, but the `reason` argument will be ignored. ## Arguments * id [ID!](https://shopify.dev/docs/api/payments-apps/latest/scalars/ID) required The capture session ID. * reason [Capture​Session​Rejection​Reason​Input!](https://shopify.dev/docs/api/payments-apps/latest/input-objects/CaptureSessionRejectionReasonInput) required The rejection reason. *** ## Capture​Session​Reject​Payload returns * capture​Session [Capture​Session](https://shopify.dev/docs/api/payments-apps/latest/objects/CaptureSession) The updated capture session. * user​Errors [\[Capture​Session​Reject​User​Error!\]!](https://shopify.dev/docs/api/payments-apps/latest/objects/CaptureSessionRejectUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### captureSessionReject reference ## Mutation Reference ```graphql mutation captureSessionReject($id: ID!, $reason: CaptureSessionRejectionReasonInput!) { captureSessionReject(id: $id, reason: $reason) { captureSession { # CaptureSession fields } userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "reason": { "code": "PROCESSING_ERROR", "merchantMessage": "" } } ``` ##### Variables ``` { "id": "gid://shopify//10079785100", "reason": { "code": "PROCESSING_ERROR", "merchantMessage": "" } } ``` ##### Schema ``` input CaptureSessionRejectionReasonInput { code: CaptureSessionStatusReasonRejectionCode! merchantMessage: String } ```