> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slate-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Journey

> Cancel a 'pending_payment' journey.

Rejects the linked pending CHALLENGE_FEE / CHALLENGE_RESET_FEE tx,
closes the never-funded trading account, and flips the journey to
'abandoned'. Same code path the 7-day sweeper uses (see
``prop.pending_grant_sweeper.cancel_pending_journey``).

Returns 409 if the journey is not in 'pending_payment' state.



## OpenAPI

````yaml /openapi.json post /prop/journeys/{journey_id}/cancel
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /prop/journeys/{journey_id}/cancel:
    post:
      tags:
        - Prop trading
      summary: Cancel Journey
      description: |-
        Cancel a 'pending_payment' journey.

        Rejects the linked pending CHALLENGE_FEE / CHALLENGE_RESET_FEE tx,
        closes the never-funded trading account, and flips the journey to
        'abandoned'. Same code path the 7-day sweeper uses (see
        ``prop.pending_grant_sweeper.cancel_pending_journey``).

        Returns 409 if the journey is not in 'pending_payment' state.
      operationId: cancel_journey_prop_journeys__journey_id__cancel_post
      parameters:
        - name: journey_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Journey Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelJourneyRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelJourneyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    CancelJourneyRequest:
      properties:
        reason:
          type: string
          maxLength: 500
          minLength: 1
          title: Reason
      type: object
      required:
        - reason
      title: CancelJourneyRequest
    CancelJourneyResponse:
      properties:
        ok:
          type: boolean
          title: Ok
        journey_id:
          type: string
          format: uuid
          title: Journey Id
        status:
          type: string
          title: Status
      type: object
      required:
        - ok
        - journey_id
        - status
      title: CancelJourneyResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````