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

# Get Payment Attempt

> Retrieve one payment attempt by ID, with its failure reason and 3D Secure result



## OpenAPI

````yaml get /v1/payment-attempts/{payment_attempt_id}
openapi: 3.1.1
info:
  title: HitPay API
  description: >-
    Accept PayNow, FPX, GrabPay, cards, and 40+ payment methods with a single
    API. Production base URL: https://api.hit-pay.com, Sandbox:
    https://api.sandbox.hit-pay.com
  version: '1.0'
servers:
  - url: https://api.hit-pay.com
    description: Production
  - url: https://api.sandbox.hit-pay.com
    description: Sandbox
security: []
paths:
  /v1/payment-attempts/{payment_attempt_id}:
    get:
      summary: Get Payment Attempt
      description: Get one payment attempt by its ID.
      operationId: get-payment-attempt
      parameters:
        - name: X-BUSINESS-API-KEY
          in: header
          required: true
          style: simple
          explode: false
          schema:
            type: string
            example: b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d
        - name: payment_attempt_id
          in: path
          description: The payment attempt id
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              examples:
                Result:
                  value:
                    data:
                      id: 9f6a1c2e-4b7d-4f0a-9c3e-2d5b8a7e6f10
                      charge_id: 9f6a1b7d-0c2a-4e5f-8b1d-3a4c5d6e7f80
                      payment_request_id: 9f6a1b7c-9a8b-4c7d-8e6f-5a4b3c2d1e0f
                      status: failed
                      payment_method: card
                      amount: 129.9
                      currency: sgd
                      card:
                        brand: visa
                        last4: '9995'
                        country_code: SG
                        funding: credit
                      three_d_secure:
                        status: successful
                        authentication_flow: frictionless
                        version: 2.2.0
                        eci: '05'
                      failure:
                        code: insufficient_funds
                        message: The card has insufficient funds.
                      client:
                        ip_country: SG
                      created_at: '2026-11-26T14:02:11+08:00'
                      updated_at: '2026-11-26T14:02:14+08:00'
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/PaymentAttempt'
        '403':
          description: >-
            The OAuth token lacks the `payments:read` scope, or the API key is
            not allowed from this IP address
        '404':
          description: Payment attempt not found, or the request has no valid API key
      deprecated: false
components:
  schemas:
    PaymentAttempt:
      type: object
      description: >-
        One attempt to pay a charge. A charge has one attempt for each time the
        customer chose a payment method and tried to pay, so a charge can have
        several failed attempts before one succeeds.
      properties:
        id:
          type: string
          format: uuid
          description: Payment attempt ID
        charge_id:
          type: string
          format: uuid
          description: The charge the attempt was made on
        payment_request_id:
          type:
            - string
            - 'null'
          format: uuid
          description: The payment request of the charge. `null` when the charge has none.
        status:
          type: string
          description: >-
            * `succeeded` - the payment went through

            * `failed` - the payment was declined, blocked or could not be
            completed. See `failure`

            * `pending` - the customer has not completed the payment yet

            * `canceled` - the attempt was canceled

            * `expired` - the customer did not complete the payment in time
          enum:
            - succeeded
            - failed
            - pending
            - canceled
            - expired
          example: failed
        payment_method:
          type:
            - string
            - 'null'
          description: Payment method of the attempt
          example: card
        amount:
          type: number
          description: Amount of the attempt, in the same format as the charge amount
          example: 129.9
        currency:
          type: string
          example: sgd
        card:
          type:
            - object
            - 'null'
          description: >-
            Card used for the attempt. `null` for other payment methods and when
            the card is not known.
          properties:
            brand:
              type:
                - string
                - 'null'
              example: visa
            last4:
              type:
                - string
                - 'null'
              example: '0341'
            country_code:
              type:
                - string
                - 'null'
              description: Country that issued the card
              example: SG
            funding:
              type:
                - string
                - 'null'
              example: credit
        three_d_secure:
          type:
            - object
            - 'null'
          description: >-
            3D Secure result of the attempt, in the same shape as on the charge.
            A card payment that did not go through 3D Secure returns the object
            with `status: not_performed`. `null` for other payment methods, for
            card-present payments and for payment providers that report no
            result.
          properties:
            status:
              type: string
              description: >-
                * `successful` - the issuer authenticated the cardholder

                * `attempted` - the issuer acknowledged the attempt without
                authenticating the cardholder

                * `exempted` - the issuer granted an exemption from
                authentication

                * `failed` - authentication failed or could not be completed

                * `not_performed` - 3D Secure did not run for this payment

                * `unknown` - the processor returned a result we do not
                recognise
              enum:
                - successful
                - attempted
                - exempted
                - failed
                - not_performed
                - unknown
              example: failed
            authentication_flow:
              type:
                - string
                - 'null'
              description: How the issuer authenticated the cardholder
              enum:
                - challenge
                - frictionless
                - null
              example: challenge
            version:
              type:
                - string
                - 'null'
              description: 3D Secure protocol version
              example: 2.2.0
            eci:
              type:
                - string
                - 'null'
              description: Electronic Commerce Indicator returned by the card network
              example: '05'
        failure:
          type:
            - object
            - 'null'
          description: Why the attempt failed. `null` unless `status` is `failed`.
          properties:
            code:
              type: string
              description: >-
                * `card_declined` - the card issuer declined the payment

                * `insufficient_funds` - the card has insufficient funds

                * `expired_card` - the card has expired

                * `incorrect_cvc` - the card security code is incorrect

                * `invalid_card_details` - the card number, expiry date, address
                or PIN is incorrect

                * `lost_card` - the card was reported lost

                * `stolen_card` - the card was reported stolen

                * `do_not_honor` - the card issuer declined the payment without
                giving a reason

                * `authentication_failed` - the cardholder did not complete
                authentication

                * `blocked_by_risk` - the payment was blocked as a suspected
                fraud risk

                * `processing_error` - the payment could not be processed and
                can be tried again

                * `not_completed` - the customer did not complete the payment in
                time

                * `unknown` - no more specific reason is available
              enum:
                - card_declined
                - insufficient_funds
                - expired_card
                - incorrect_cvc
                - invalid_card_details
                - lost_card
                - stolen_card
                - do_not_honor
                - authentication_failed
                - blocked_by_risk
                - processing_error
                - not_completed
                - unknown
              example: insufficient_funds
            message:
              type: string
              example: The card has insufficient funds.
        client:
          type: object
          properties:
            ip_country:
              type:
                - string
                - 'null'
              description: >-
                Country of the IP address that started the attempt. On the
                hosted checkout this is the customer's country.
              example: SG
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time

````

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