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

# Get deposit status

> Retrieve the status of a previously created deposit. This endpoint allows you to retrieve the status of a deposit request.



## OpenAPI

````yaml open-api-yaml/deposits-api/manage-payments/get-deposit-status.json GET /deposits/{deposit_id}
openapi: 3.0.0
info:
  title: Directa24 Deposit API
  version: v3
servers:
  - url: https://api-stg.pandablue.com/v3
    description: Staging environment
security: []
paths:
  /deposits/{deposit_id}:
    get:
      tags:
        - Deposits
      summary: Retrieve Deposit Status
      description: >-
        Retrieve the status of a previously created deposit. This endpoint
        allows you to retrieve the status of a deposit request.
      parameters:
        - name: deposit_id
          in: path
          required: true
          description: Directa24 deposit_id. It is obtained when creating the deposit.
          schema:
            type: integer
        - name: Content-Type
          in: header
          required: true
          description: >-
            Media type of the body sent to the API. (Note: For GET, typically no
            request body)
          schema:
            type: string
            default: application/json
        - name: X-Date
          in: header
          required: true
          description: 'ISO8601 Datetime with Timezone. Example: 2020-06-24T17:13:21Z'
          schema:
            type: string
            format: date-time
        - name: X-Login
          in: header
          required: true
          description: Merchant X-Login API Key
          schema:
            type: string
        - name: Authorization
          in: header
          required: true
          description: Authentication signature hash
          schema:
            type: string
        - name: X-Idempotency-Key
          in: header
          required: false
          description: >-
            Unique idempotency key for ensuring that the same request is not
            processed more than once. (Typically for state-changing requests)
          schema:
            type: string
      responses:
        '200':
          description: Deposit status cancelled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositStatusResponse'
        '400':
          description: The deposit_id specified is not valid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: The deposit_id specified could not be found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    DepositStatusResponse:
      type: object
      properties:
        user_id:
          type: string
          description: ID generated for the user on D24 end
        deposit_id:
          type: integer
          description: ID of the deposit on D24 end
        subscription_id:
          type: integer
          description: ID of the Subscription that triggered the deposit
          nullable: true
        invoice_id:
          type: string
          description: ID of the deposit on the merchant end
        country:
          type: string
          description: Country ISO code
          nullable: true
        currency:
          type: string
          description: Local currency code
        local_amount:
          type: number
          format: float
          description: Amount in local currency
          nullable: true
        usd_amount:
          type: number
          format: float
          description: Amount in USD
          nullable: true
        amount:
          type: number
          format: float
          description: Amount in local currency
          nullable: true
        bonus_amount:
          type: number
          format: float
          description: The amount specified as bonus in the request
          nullable: true
        bonus_relative:
          type: boolean
          description: >-
            Specifies if the bonus_amount is absolute or relative. Only shown if
            bonus_amount is not null.
          nullable: true
        payment_method:
          type: string
          description: >-
            Payment method code specified on the deposit request or selected by
            the user. Only shown if payment method is selected.
          nullable: true
        payment_type:
          type: string
          description: >-
            Type of the payment method. Only shown if payment method is
            selected.
          nullable: true
        status:
          type: string
          description: Status of the deposit
          enum:
            - COMPLETED
            - PENDING
            - CREATED
            - DECLINED
            - CANCELLED
            - EXPIRED
            - EARLY_RELEASED
            - FOR_REVIEW
        status_reason:
          type: string
          description: >-
            Additional information about the deposit status. Currently returned
            only when status is CANCELLED.
          enum:
            - THIRD_PARTY_PAYER
            - AMOUNT_MISMATCH
          nullable: true
        payer:
          $ref: '#/components/schemas/Payer'
          nullable: true
        fee_amount:
          type: number
          format: float
          description: >-
            Fee of the deposit in the currency of your balance. Only shown if
            payment_method was sent or selected.
          nullable: true
        fee_currency:
          type: string
          description: >-
            Currency of your balance. Only shown if payment_method was sent or
            selected.
          nullable: true
        refunded:
          type: boolean
          description: Shows if the deposit was refunded or not
          nullable: true
        current_payer_verification:
          type: string
          description: >-
            Shows if the current payer is the same person who creates the
            deposit. Only shown if not null.
          enum:
            - MATCH
            - UNMATCH
            - NO_CLIENT_DOCUMENT
            - NO_CURRENT_PAYER_DATA
          nullable: true
        card_detail:
          $ref: '#/components/schemas/CardDetail'
          nullable: true
        financial_institution:
          $ref: '#/components/schemas/FinancialInstitution'
          nullable: true
        bank_account:
          $ref: '#/components/schemas/BankAccount'
          nullable: true
        completed_payment_method_code:
          type: string
          description: Payment method used by the client to complete the transaction
          nullable: true
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
            message:
              type: string
              description: Error message
            details:
              type: string
              description: Additional error details
              nullable: true
    Payer:
      type: object
      description: >-
        Object containing information about the payer. Only values sent or
        collected will be shown.
      properties:
        document:
          type: string
        document_type:
          type: string
        email:
          type: string
          format: email
        first_name:
          type: string
        last_name:
          type: string
        phone:
          type: string
        address:
          $ref: '#/components/schemas/PayerAddress'
    CardDetail:
      type: object
      description: >-
        Details about the credit card of the payer. Only shown for credit card
        deposits when information is available.
      properties:
        card_holder:
          type: string
        brand:
          type: string
        masked_card:
          type: string
        expiration:
          type: string
          pattern: ^\\d{4}-\\d{2}$
        card_type:
          type: string
          enum:
            - CREDIT
            - DEBIT
        transaction_result:
          type: string
    FinancialInstitution:
      type: object
      properties:
        name:
          type: string
        bank_code:
          type: string
        tax_identifier:
          type: string
    BankAccount:
      type: object
      properties:
        bank_code:
          type: string
          nullable: true
        account_number:
          type: string
        bank_branch:
          type: string
          nullable: true
        ispb_code:
          type: integer
          nullable: true
        bank_name:
          type: string
          nullable: true
        account_type:
          type: string
          nullable: true
    PayerAddress:
      type: object
      properties:
        city:
          type: string
          description: Payer's city
        state:
          type: string
          description: Payer's state ISO code
        street:
          type: string
          description: Payer's street
        zip_code:
          type: string
          description: Payer's zip code

````

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