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

# Post 3dschallenges decision challenge



## OpenAPI

````yaml https://core.prod.gnosispay.com/user-api/openapi.json post /3ds/challenges/{challengeId}/decision-challenge
openapi: 3.1.0
info:
  title: User Service
  version: 0.0.0
servers:
  - url: https://core.prod.gnosispay.com/user-api
    description: Production
    variables: {}
  - url: https://core.sandbox.gnosispay.in/user-api
    description: Sandbox
    variables: {}
security: []
tags:
  - name: Auth
  - name: User
  - name: Terms
  - name: Source of Funds
  - name: Phone
  - name: User Account
  - name: Cards
  - name: User Movements
  - name: KYC
  - name: PCI
  - name: 3DS
  - name: Health
paths:
  /3ds/challenges/{challengeId}/decision-challenge:
    post:
      tags:
        - 3DS
      operationId: ThreeDS_createDecisionChallenge
      parameters:
        - name: challengeId
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/uuid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThreeDSDecisionRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreeDSDecisionChallengeResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    uuid:
      type: string
      format: uuid
    ThreeDSDecisionRequest:
      type: object
      required:
        - decision
      properties:
        decision:
          $ref: '#/components/schemas/ThreeDSDecision'
    ThreeDSDecisionChallengeResponse:
      type: object
      required:
        - domain
        - primaryType
        - types
        - message
      properties:
        domain:
          $ref: '#/components/schemas/ThreeDSDecisionChallengeDomain'
        primaryType:
          type: string
          enum:
            - ThreeDSDecision
        types:
          $ref: '#/components/schemas/ThreeDSDecisionChallengeTypes'
        message:
          $ref: '#/components/schemas/ThreeDSDecisionChallengeMessage'
      description: Complete EIP-712 typed data for an OOB 3DS decision.
    Unauthorized:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    NotFound:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    ThreeDSDecision:
      type: string
      enum:
        - approve
        - decline
    ThreeDSDecisionChallengeDomain:
      type: object
      required:
        - name
        - version
        - chainId
      properties:
        name:
          type: string
          enum:
            - Gnosis Pay
        version:
          type: string
          enum:
            - '1'
        chainId:
          type: integer
          format: int64
    ThreeDSDecisionChallengeTypes:
      type: object
      required:
        - ThreeDSDecision
      properties:
        ThreeDSDecision:
          type: array
          items:
            $ref: '#/components/schemas/PciEip712Field'
    ThreeDSDecisionChallengeMessage:
      type: object
      required:
        - decision
        - challengeId
        - amount
        - currency
        - decimals
        - merchantName
        - nonce
      properties:
        decision:
          $ref: '#/components/schemas/ThreeDSDecision'
        challengeId:
          $ref: '#/components/schemas/uuid'
        amount:
          type: string
          pattern: ^(0|[1-9][0-9]*)$
          description: >-
            Minor-unit integer encoded as a decimal string; EIP-712 type is
            uint256.
        currency:
          type: string
          minLength: 1
        decimals:
          type: integer
          format: int32
          minimum: 0
          maximum: 9
        merchantName:
          type: string
          minLength: 1
        nonce:
          type: string
          description: Random uint256 encoded as a decimal string.
    PciEip712Field:
      type: object
      required:
        - name
        - type
      properties:
        name:
          type: string
        type:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.