> ## 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.

# Customer Enroll Challenge

> Customer-initiated self-enroll — payment-gated activation.

Mirrors the CRM `POST /prop/journeys/grant` flow but with
`source='customer'` and the caller's customer_id taken from JWT.
Creates a pending_payment journey + inactive trading_account + PENDING
CHALLENGE_FEE transaction prefilled with template fee. The webtrader
then redirects the customer to pay the returned `pending_tx_id` via
`POST /customers/me/transactions/{tx_id}/pay`.



## OpenAPI

````yaml /openapi.json post /challenges/{template_id}/enroll
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:
  /challenges/{template_id}/enroll:
    post:
      tags:
        - Prop trading
      summary: Customer Enroll Challenge
      description: |-
        Customer-initiated self-enroll — payment-gated activation.

        Mirrors the CRM `POST /prop/journeys/grant` flow but with
        `source='customer'` and the caller's customer_id taken from JWT.
        Creates a pending_payment journey + inactive trading_account + PENDING
        CHALLENGE_FEE transaction prefilled with template fee. The webtrader
        then redirects the customer to pay the returned `pending_tx_id` via
        `POST /customers/me/transactions/{tx_id}/pay`.
      operationId: customer_enroll_challenge_challenges__template_id__enroll_post
      parameters:
        - name: template_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Template Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerEnrollRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerEnrollResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CustomerEnrollRequest:
      properties:
        selected_addon_codes:
          items:
            type: string
          type: array
          title: Selected Addon Codes
      type: object
      title: CustomerEnrollRequest
    CustomerEnrollResponse:
      properties:
        journey_id:
          type: string
          format: uuid
          title: Journey Id
        account_id:
          type: string
          format: uuid
          title: Account Id
        login:
          type: string
          title: Login
        pending_tx_id:
          type: string
          format: uuid
          title: Pending Tx Id
        fee_amount:
          type: string
          title: Fee Amount
        fee_currency:
          type: string
          title: Fee Currency
      type: object
      required:
        - journey_id
        - account_id
        - login
        - pending_tx_id
        - fee_amount
        - fee_currency
      title: CustomerEnrollResponse
    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

````