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

# बैंक कनेक्शन रद्द करें API: एक्सेस बंद करें

> Didit का Revoke a Bank Connection endpoint बैंक का एक्सेस बंद करता है, और बैंक से डेटा लाना तुरंत रुक जाता है।

Didit का Revoke a Bank Connection endpoint बैंक तक पहुँच रोक देता है, और आपके अनुरोध करते ही बैंक से डेटा लाने के प्रयास तुरंत रुक जाते हैं।
रद्द करने से कुछ नहीं हटता: इसके लिए [delete](https://docs.didit.me/hi/standalone-apis/bank-connection-delete.md) का उपयोग करें।
सहमति पर पहले `revocation_pending` दिखती है, और बैंक की पुष्टि के बाद `revoked`।
तब तक `status` अपना मान बनाए रखता है और `status_reason` `null` रहता है; एक बार `status` `revoked` हो जाए, तो `status_reason` `revoked_by_customer` होता है।


## OpenAPI

````yaml hi/openapi-25.json POST /v3/bank/connections/{id}/revoke/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: पहचान सत्यापन API। x-api-key हेडर से प्रमाणित करें।
servers:
  - url: https://verification.didit.me
security: []
tags:
  - name: Bank Data
    description: >-
      Bank Link, कनेक्शन, खाते, बैलेंस, लेन-देन, संस्थान और कवरेज। Bank data
      सैंडबॉक्स एप्लिकेशन के लिए उपलब्ध है। लाइव एप्लिकेशन की कॉल तब तक `404`
      देती हैं जब तक लाइव एक्सेस की घोषणा नहीं होती। सैंडबॉक्स में कोई शुल्क
      नहीं लगता। API कुंजी के साथ की गई कॉल के लिए ऐसी कुंजी चाहिए जो Bank data
      तक पहुँच सके: पूर्ण-एक्सेस कुंजी पहुँच सकती है, और स्कोप्ड कुंजी के स्कोप
      में `bank-data` होना चाहिए (पढ़ने के लिए read, कुछ बदलने वाले ऑपरेशन के
      लिए write)। जिस स्कोप्ड कुंजी में यह न हो, वह अस्वीकार होती है, और कॉल
      `403 bank_data_access_denied` देती है। खाता जाँच इसका अपवाद है: इसके लिए
      सत्रों के लिए write एक्सेस या पूर्ण एक्सेस चाहिए; Bank data स्कोप की
      आवश्यकता नहीं है। कच्चा बैंक डेटा (खाते, बैलेंस, लेन-देन और चेंज फ़ीड) भी
      ऐसे अनुरोध को अस्वीकार करता है जिसमें कोई API कुंजी नहीं है।


      `/v3/bank/` के अंतर्गत हर अस्वीकृति, खाता जाँच को छोड़कर, एक ही JSON बॉडी
      देती है (`code`, `message`, `request_id`, `field`, `next_action`,
      `retry_after`)। ऐसा पथ जो कोई ऑपरेशन नहीं है, ऐसी आईडी जो UUID नहीं है, या
      अज्ञात सब-रिसोर्स हर मेथड के लिए `404 not_found` देता है, और कोई भी
      अनपेक्षित त्रुटि `request_id` के साथ `500 internal_error` देती है। जहाँ
      Bank data उपलब्ध नहीं है, वहाँ हर ऑपरेशन प्लेटफ़ॉर्म का मानक `404` देता
      है, ठीक वैसे ही जैसे कोई अज्ञात रूट देता है।
paths:
  /v3/bank/connections/{id}/revoke/:
    post:
      tags:
        - Bank Data
      summary: बैंक कनेक्शन रद्द करें
      description: >-
        बैंक तक पहुँच बंद करता है। आपके अनुरोध करते ही बैंक से लाने का काम रुक
        जाता है, भले ही बैंक की पुष्टि अभी लंबित हो: सहमति `revocation_pending`
        दिखाती है, फिर बैंक के पुष्टि करने पर `revoked`, या बैंक को भेजी गई रद्द
        करने की कॉल का स्वतः पुनः प्रयास होते समय `revocation_failed`।
        `consent.ended_by` `customer` होता है। बैंक की पुष्टि होने तक `status`
        अपना मान रखता है और `status_reason` `null` होता है; जब `status`
        `revoked` हो, तब `status_reason` `revoked_by_customer` होता है।


        रद्द करने से कुछ भी नहीं हटता: संग्रहीत खाते, बैलेंस और लेन-देन
        `consent.retain_until` तक पढ़े जा सकते हैं, जो आपके एप्लिकेशन की
        प्रतिधारण सेटिंग है, और कोई शुल्क नहीं लगता। उन्हें अभी हटाने के लिए
        `delete_connection` कॉल करें। दोबारा कॉल करने पर वर्तमान स्थिति लौटती
        है।


        इसके लिए बैंक डेटा की राइट एक्सेस वाली API कुंजी चाहिए, क्योंकि यह
        ऑपरेशन कुछ बदलता है: पूर्ण-एक्सेस कुंजी में यह एक्सेस होता है, जबकि
        सीमित-स्कोप कुंजी के स्कोप में `bank-data` write होना चाहिए। अन्यथा कॉल
        `403 bank_data_access_denied` लौटाता है।


        जो कनेक्शन हटाया जा चुका है, उसे रद्द करने पर `200` के साथ हटाया गया
        कनेक्शन लौटता है, इसलिए कॉल दोहराना सुरक्षित है।
      operationId: revokeBankConnection
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: कनेक्शन आईडी।
        - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: रद्दीकरण स्थिति वाला कनेक्शन।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankConnection'
              examples:
                Revocation pending:
                  summary: पहुँच रोकने का अनुरोध किया गया
                  value:
                    id: 5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35
                    environment: live
                    access: ongoing
                    status: active
                    status_reason: null
                    institution:
                      id: es-banco-norte
                      name: Banco Norte
                      country: ESP
                      logo_url: https://static.example.com/banks/es-banco-norte.png
                    segment: business
                    data:
                      - accounts
                      - balances
                      - transactions
                    consent:
                      status: revocation_pending
                      version: 1
                      granted_at: '2026-11-21T12:04:11Z'
                      expires_at: '2027-05-20T12:04:11Z'
                      days_granted: 180
                      renewed_count: 0
                      scopes_requested:
                        - accounts
                        - balances
                        - transactions
                      scopes_granted:
                        - accounts
                        - balances
                        - transactions
                      accounts_granted:
                        - a71f0c2e-5d38-4b96-a1c4-3e9f8d2b7a10
                        - c3d84e19-2a7b-4f60-b5e1-9a0c6d3f8e72
                      renewal_action: bank_auth
                      renew_by: '2027-05-20T12:04:11Z'
                      reconfirm_by: null
                      renewable_until: '2026-12-21T15:10:00Z'
                      retain_until: '2026-12-21T15:10:00Z'
                      ended_at: '2026-11-21T15:10:00Z'
                      ended_by: customer
                    sync:
                      status: ok
                      initial_status: succeeded
                      initial_complete: true
                      history_complete: true
                      last_synced_at: '2026-11-21T12:04:40Z'
                      next_sync_at: '2026-11-22T06:00:00Z'
                      budgets:
                        - scope: connection
                          resource: all
                          limit: 4
                          remaining: 3
                          resets_at: '2026-11-22T00:00:00Z'
                      last_error: null
                      frequency_per_day: 1
                      live_syncs_left_today: 3
                    accounts:
                      - id: a71f0c2e-5d38-4b96-a1c4-3e9f8d2b7a10
                        name: Cuenta negocio
                        type: current
                        usage: business
                        currency: EUR
                        iban_last4: '1332'
                        status: open
                      - id: c3d84e19-2a7b-4f60-b5e1-9a0c6d3f8e72
                        name: Cuenta de ahorro
                        type: savings
                        usage: business
                        currency: EUR
                        iban_last4: '7708'
                        status: open
                    ownership:
                      compare: none
                      match: null
                      check_id: null
                      result: null
                    end_user:
                      reference: client-7731
                    manage_url: null
                    billing:
                      unit: connection_month
                      price_usd: '0.9000'
                      billed_through: '2026-11-30'
                    possible_duplicate_of: null
                    erasure: null
                    vendor_data: client-7731
                    created_at: '2026-11-21T12:03:02Z'
                    updated_at: '2026-11-21T12:04:40Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BankDataAccessDenied'
        '404':
          description: यह संसाधन इस एप्लिकेशन और एनवायरनमेंट में मौजूद नहीं है।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankDataError'
              examples:
                Not found:
                  summary: नहीं मिला
                  value:
                    code: not_found
                    message: The resource does not exist.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: null
                    next_action: null
                    retry_after: null
        '429':
          $ref: '#/components/responses/RateLimitedWrite'
        '500':
          $ref: '#/components/responses/BankDataInternalError'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            'https://verification.didit.me/v3/bank/connections/5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35/revoke/'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.bank.revoke_connection(
                "11111111-2222-3333-4444-555555555555",
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: >-
            import Didit from "@didit-protocol/sdk-node";


            // Reads DIDIT_API_KEY.

            const didit = new Didit();


            const result = await
            didit.bank.revokeConnection("11111111-2222-3333-4444-555555555555");

            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.Bank.RevokeConnection(ctx, \"11111111-2222-3333-4444-555555555555\")\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.bank().revokeConnection("11111111-2222-3333-4444-555555555555");

            System.out.println(result);
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY.

            $didit = new DiditClient();


            $result =
            $didit->bank->revokeConnection('11111111-2222-3333-4444-555555555555');

            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY.

            didit = Didit::Client.new


            result =
            didit.bank.revoke_connection("11111111-2222-3333-4444-555555555555")

            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            var result = await
            client.Bank.RevokeConnectionAsync("11111111-2222-3333-4444-555555555555");

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        एक ऑपरेशन के लिए आपके द्वारा चुनी गई वैकल्पिक पुनः प्रयास-सुरक्षा कुंजी,
        जो अधिकतम 255 अक्षरों की हो सकती है (UUID उपयोग की जा सकती है)। वही
        कुंजी, endpoint, क्वेरी और बॉडी के साथ दोहराया गया अनुरोध पहले वाले
        रिस्पॉन्स से ही उत्तर पाता है, वही स्टेटस और वही बॉडी, और दूसरी बार न
        कोई प्रक्रिया चलती है न कोई शुल्क लगता है। वही कुंजी किसी दूसरे
        endpoint, क्वेरी या बॉडी के साथ भेजने पर `409` `idempotency_key_reused`
        रिस्पॉन्स मिलता है, और जब पहला अनुरोध अभी भी चल रहा हो, तब `Retry-After`
        के साथ `409` `idempotency_key_in_progress` मिलता है। विफल अनुरोध (कोई भी
        `4xx` या `5xx`) सहेजा नहीं जाता, इसलिए आप उसी कुंजी के साथ उसे दोबारा
        भेज सकते हैं। कुंजियाँ आपके एप्लिकेशन की होती हैं, चाहे आप API कुंजी से
        कॉल करें या एक्सेस टोकन से। देखें [पुनः प्रयास और
        आइडेम्पोटेंसी](/hi/integration/api-errors#पुनः-प्रयास-और-आइडेम्पोटेंसी)।
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    BankConnection:
      type: object
      description: >-
        व्यक्ति की अनुमति, जो आपके एप्लिकेशन को एक बैंक का डेटा पढ़ने देती है।
        नवीनीकरण कनेक्शन ID और हर खाता ID को बनाए रखता है। हटाया गया कनेक्शन
        केवल `id`, `status`, `status_reason`, `created_at` और `erasure` लौटाता
        है: बाकी सभी फ़ील्ड अनुपस्थित रहते हैं, और उसमें कोई बैंक, व्यक्ति या
        खाते का डेटा नहीं बचता।
      properties:
        id:
          type: string
          description: कनेक्शन का पहचानकर्ता।
          format: uuid
        environment:
          type: string
          enum:
            - live
            - sandbox
        access:
          type: string
          enum:
            - one_time
            - ongoing
        status:
          type: string
          enum:
            - pending
            - active
            - renewal_required
            - paused
            - revoked
            - deleted
            - failed
          description: >-
            `pending`: पहला सिंक चल रहा है। `active`: सहमति मान्य है।
            `renewal_required`: सहमति समाप्त हो गई है या बैंक चाहता है कि
            व्यक्ति दोबारा साइन इन करे; डेटा अंतिम सिंक के अनुसार पढ़ा जा सकता
            है और कोई शुल्क नहीं लिया जाता। `paused`: महीने के लिए बैलेंस बहुत
            कम है। `revoked`: व्यक्ति, बैंक या आपके द्वारा पहुँच रोकी गई है, या
            एक-बारगी कनेक्शन का पठन पूरा होने से यह समाप्त हो गया। `deleted`:
            केवल `id`, `status`, `status_reason`, `created_at` और `erasure` शेष
            रहते हैं। सूची ये केवल `status=deleted` के लिए लौटाती है; id से किसी
            एक को पढ़ने पर यह हमेशा लौटता है। `failed`: पहला सिंक कभी सफल नहीं
            हुआ।
        status_reason:
          type: string
          enum:
            - collection_complete
            - consent_expired
            - consent_lapsed
            - bank_requires_sign_in
            - revoked_by_end_user
            - revoked_by_bank
            - revoked_by_customer
            - insufficient_balance
            - paused_by_customer
            - first_sync_failed
            - deleted_by_customer
            - retention_elapsed
            - application_deleted
            - null
          description: >-
            कनेक्शन इस स्थिति में क्यों है। `collection_complete`: एक बार का
            कनेक्शन जिसका डेटा पढ़ना पूरा हो चुका है, इसलिए उसकी पहुँच समाप्त हो
            गई है। `paused_by_customer` आरक्षित है। `deleted` कनेक्शन पर:
            `deleted_by_customer`, `consent_lapsed`, `retention_elapsed` या
            `application_deleted`।
          nullable: true
        institution:
          $ref: '#/components/schemas/BankInstitutionSummary'
        segment:
          type: string
          enum:
            - personal
            - business
            - null
          nullable: true
        data:
          type: array
          items:
            type: string
            enum:
              - accounts
              - balances
              - transactions
          description: वे स्कोप जो व्यक्ति ने स्वीकार किए।
        consent:
          $ref: '#/components/schemas/BankConnectionConsent'
        sync:
          $ref: '#/components/schemas/BankConnectionSync'
        accounts:
          type: array
          items:
            $ref: '#/components/schemas/BankConnectionAccountSummary'
          description: कनेक्शन के हर खाते का सारांश। पूरा खाता `get_account` से पढ़ें।
        ownership:
          $ref: '#/components/schemas/BankConnectionOwnership'
        end_user:
          type: object
          properties:
            reference:
              type: string
              description: व्यक्ति या कंपनी के लिए आपका ID।
              nullable: true
          required:
            - reference
        manage_url:
          type: string
          description: व्यक्ति का अपना एक्सेस पेज। एक्सेस पेज उपलब्ध होने तक `null`।
          nullable: true
          format: uri
        billing:
          $ref: '#/components/schemas/BankConnectionBilling'
        possible_duplicate_of:
          type: string
          description: >-
            तब सेट होता है जब यह कनेक्शन किसी अन्य सक्रिय कनेक्शन का दोहराव हो
            सकता है, लेकिन कोई `end_user.reference` निश्चित मिलान की अनुमति नहीं
            देता।
          format: uuid
          nullable: true
        erasure:
          allOf:
            - $ref: '#/components/schemas/BankConnectionErasure'
          nullable: true
          description: '`delete_connection` के बाद सेट होता है; अन्यथा `null`।'
        vendor_data:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - status
        - status_reason
        - created_at
        - erasure
    BankDataError:
      type: object
      description: Bank data के हर ऑपरेशन का एरर बॉडी। हर फ़ील्ड हमेशा मौजूद रहता है।
      properties:
        code:
          type: string
          enum:
            - ongoing_access_not_available
            - country_not_available
            - segment_not_available
            - window_not_available
            - history_window_ambiguous
            - redirect_url_not_registered
            - link_origin_not_allowed
            - bank_data_access_denied
            - connection_not_active
            - one_time_connection
            - consent_expired
            - renewal_not_needed
            - renewal_window_expired
            - access_removed
            - refresh_limit_reached
            - cursor_expired
            - page_expired
            - invalid_cursor
            - page_token_mismatch
            - contract_rate_missing
            - insufficient_credits
            - invalid_request
            - not_found
            - internal_error
          description: >-
            मशीन-पठनीय त्रुटि कोड। शर्त इसी के आधार पर लिखें, कभी `message` के
            आधार पर नहीं।
        message:
          type: string
          description: >-
            डेवलपर के लिए सरल भाषा में स्पष्टीकरण। शब्द बदल सकते हैं; इसे पार्स
            न करें।
        request_id:
          type: string
          description: इस अनुरोध का पहचानकर्ता। सहायता से संपर्क करते समय इसे उद्धृत करें।
        field:
          type: string
          description: >-
            वह अनुरोध फ़ील्ड जिसे सुधारना है, जब त्रुटि किसी एक फ़ील्ड के बारे
            में हो। अन्यथा `null`।
          nullable: true
        next_action:
          type: string
          enum:
            - retry_later
            - renew_connection
            - create_link
            - restart_from_cursor
            - restart_read
            - top_up_balance
            - enable_bank_data_access
            - contact_support
            - null
          description: >-
            आगे क्या करना है, ताकि क्लाइंट अनुमान लगाए बिना कार्रवाई कर सके। कोई
            मानक अगला चरण न होने पर `null`।
          nullable: true
        retry_after:
          type: integer
          description: >-
            पुनः प्रयास करने से पहले प्रतीक्षा के सेकंड। रेट लिमिट और अस्थायी
            त्रुटियों पर सेट होता है, अन्यथा `null`।
          nullable: true
      required:
        - code
        - message
        - request_id
        - field
        - next_action
        - retry_after
      example:
        code: ongoing_access_not_available
        message: >-
          This bank cannot keep access open. Use access one_time or choose
          another bank.
        request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
        field: institution_id
        next_action: create_link
        retry_after: null
    BankInstitutionSummary:
      type: object
      description: वह बैंक जिसके लिए कनेक्शन या लिंक है।
      properties:
        id:
          type: string
          description: >-
            Didit द्वारा बैंक का पहचानकर्ता, एक स्थिर slug। इसे `institution_id`
            के रूप में उपयोग करें।
          example: es-banco-norte
        name:
          type: string
          description: बैंक का नाम।
          example: Banco Norte
        country:
          type: string
          description: बैंक का देश, ISO 3166-1 alpha-3।
          pattern: ^[A-Z]{3}$
          example: ESP
        logo_url:
          type: string
          description: बैंक का लोगो, या `null`।
          nullable: true
          format: uri
      required:
        - id
        - name
        - country
        - logo_url
    BankConnectionConsent:
      type: object
      description: इस कनेक्शन के लिए व्यक्ति की सहमति।
      properties:
        status:
          type: string
          enum:
            - granted
            - expired
            - revocation_pending
            - revoked
            - revocation_failed
          description: >-
            `revocation_pending` तब तक रहता है जब तक बैंक पुष्टि नहीं करता कि
            सहमति समाप्त कर दी गई है, उसके बाद यह `revoked` हो जाता है।
            `revocation_failed` को स्वचालित रूप से दोबारा प्रयास किया जाता है।
            निरसन का अनुरोध करते ही बैंक से डेटा लाना तुरंत रोक दिया जाता है।
        version:
          type: integer
          description: सहमति का संस्करण। नवीनीकरण उसी कनेक्शन पर अगला संस्करण बनाता है।
        granted_at:
          type: string
          format: date-time
          nullable: true
        expires_at:
          type: string
          description: >-
            बैंक की सहमति कब समाप्त होती है। यह बैंक तय करता है, `consent_days`
            तक।
          format: date-time
          nullable: true
        days_granted:
          type: integer
          description: सहमति की अवधि दिनों में, जैसी बैंक ने दी है।
          nullable: true
        renewed_count:
          type: integer
          description: सहमति कितनी बार नवीनीकृत हुई।
        scopes_requested:
          type: array
          items:
            type: string
            enum:
              - accounts
              - balances
              - transactions
        scopes_granted:
          type: array
          items:
            type: string
            enum:
              - accounts
              - balances
              - transactions
        accounts_granted:
          type: array
          items:
            type: string
            format: uuid
          description: व्यक्ति जिन खातों को साझा करता है, उनके ID।
        renewal_action:
          type: string
          enum:
            - reconfirm
            - bank_auth
            - null
          description: >-
            नवीनीकरण कैसे होता है: `reconfirm` वह तरीका है जिसमें व्यक्ति Didit
            की स्क्रीन पर बैंक साइन-इन के बिना पुष्टि करता है, जहाँ बैंक और देश
            के नियम इसकी अनुमति देते हैं। `bank_auth` बैंक साइन-इन है।
          nullable: true
        renew_by:
          type: string
          description: >-
            सहमति की समाप्ति: बिना अंतराल के जारी रखने के लिए इससे पहले नवीनीकृत
            करें।
          format: date-time
          nullable: true
        reconfirm_by:
          type: string
          description: >-
            तब सेट होता है जब `renewal_action` `reconfirm` हो: पुनः पुष्टि करने
            का आखिरी समय।
          format: date-time
          nullable: true
        renewable_until:
          type: string
          description: >-
            वह अंतिम क्षण जब सहमति समाप्त होने के बाद भी वही कनेक्शन फिर से
            सक्रिय किया जा सकता है। इसके बाद व्यक्ति को फिर से कनेक्ट करना होगा।
            यह `retain_until` के बराबर है।
          format: date-time
          nullable: true
        retain_until:
          type: string
          description: >-
            पहुँच समाप्त होने पर सेट होता है: संग्रहीत डेटा कितने समय तक पढ़ने
            योग्य रहेगा, यह आपके एप्लिकेशन की रिटेंशन सेटिंग से तय होता है।
          format: date-time
          nullable: true
        ended_at:
          type: string
          format: date-time
          nullable: true
        ended_by:
          type: string
          enum:
            - end_user
            - bank
            - customer
            - system
            - unknown
            - null
          description: >-
            किसने एक्सेस समाप्त किया, यह साक्ष्य के आधार पर सेट होता है।
            `system` तब जब Didit ने इसे डिज़ाइन के अनुसार समाप्त किया: डेटा
            पढ़ना पूरा होने के बाद एकबारगी कनेक्शन। `unknown` तब जब न बैंक और न
            ही सिंक यह बताता है।
          nullable: true
      required:
        - status
        - version
        - granted_at
        - expires_at
        - days_granted
        - renewed_count
        - scopes_requested
        - scopes_granted
        - accounts_granted
        - renewal_action
        - renew_by
        - reconfirm_by
        - renewable_until
        - retain_until
        - ended_at
        - ended_by
    BankConnectionSync:
      type: object
      description: कनेक्शन की सिंक स्थिति।
      properties:
        status:
          type: string
          enum:
            - pending
            - ok
            - failing
          description: >-
            24 घंटे तक लगातार विफल प्रयासों के बाद `failing`, जिन्हें बैकऑफ़ के
            साथ दोबारा आज़माया जाता है। जो बैंक व्यक्ति से फिर से साइन इन करने
            को कहता है, वह कनेक्शन को `renewal_required` कर देता है।
        initial_status:
          type: string
          enum:
            - pending
            - succeeded
            - partial
            - failed
          description: >-
            पहले सिंक का परिणाम। `succeeded` या `partial` होने पर कनेक्शन
            `active` हो जाता है, और जब कोई भी खाता सफल न हो तब `failed`।
        initial_complete:
          type: boolean
          description: >-
            `true` केवल तब होता है जब `initial_status` `succeeded` हो: खाते,
            बैलेंस और हाल के लेन-देन पढ़े जा सकते हैं।
        history_complete:
          type: boolean
          description: >-
            `true` तब होता है जब इतिहास बैकफ़िल किसी भी कारण से समाप्त हो गया
            हो। जो अवधियाँ प्राप्त नहीं हो सकीं, वे हर खाते के
            `history_coverage.missing_ranges` में होती हैं।
        last_synced_at:
          type: string
          description: >-
            बैंक से डेटा अंतिम बार कब लाया गया था, न कि आपने उसे अंतिम बार कब
            पढ़ा था।
          format: date-time
          nullable: true
        next_sync_at:
          type: string
          description: >-
            अगला स्वचालित सिंक कब निर्धारित है। स्वचालित सिंक बैंक के आधार पर
            प्रतिदिन एक से चार बार चलता है (देखें `frequency_per_day`)।
          format: date-time
          nullable: true
        budgets:
          type: array
          items:
            $ref: '#/components/schemas/BankSyncBudget'
          description: व्यक्ति की उपस्थिति के बिना डेटा लाने पर बैंक की सीमाएँ।
        last_error:
          allOf:
            - $ref: '#/components/schemas/BankSyncError'
          nullable: true
          description: अंतिम सिंक त्रुटि, या `null`।
        frequency_per_day:
          type: integer
          minimum: 1
          maximum: 4
          description: >-
            इस कनेक्शन के लिए स्वचालित सिंक दिन में कितनी बार चलता है, बैंक के
            अनुसार एक से चार बार के बीच। जहाँ बैंक बिना उपस्थिति के अधिक रीड की
            अनुमति देता है, वहाँ भी लाइव सिंक के लिए दिन में कम से कम दो बार
            हमेशा उपलब्ध रहते हैं।
        live_syncs_left_today:
          type: integer
          minimum: 0
          description: >-
            बैंक की सीमा के भीतर आज कितने लाइव सिंक (`refresh_connection`) बचे
            हैं: सबसे सख़्त बजट का `remaining`। जहाँ बैंक कोई सीमा तय नहीं करता,
            वहाँ `null`। लाइव सिंक मासिक कीमत में शामिल हैं।
          nullable: true
      required:
        - status
        - initial_status
        - initial_complete
        - history_complete
        - last_synced_at
        - next_sync_at
        - budgets
        - last_error
        - frequency_per_day
        - live_syncs_left_today
    BankConnectionAccountSummary:
      type: object
      description: कनेक्शन के भीतर किसी खाते का संक्षिप्त रूप।
      properties:
        id:
          type: string
          description: >-
            खाता पहचानकर्ता। कनेक्शन के पूरे जीवनकाल में, नवीनीकरण सहित, स्थिर
            रहता है।
          format: uuid
        name:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - current
            - savings
            - card
            - loan
            - investment
            - other
        usage:
          type: string
          enum:
            - personal
            - business
            - unknown
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: ISO 4217 मुद्रा कोड।
        iban_last4:
          type: string
          description: खाते में IBAN हो तो उसके अंतिम चार वर्ण।
          nullable: true
        status:
          type: string
          enum:
            - open
            - closed
            - access_removed
      required:
        - id
        - name
        - type
        - usage
        - currency
        - iban_last4
        - status
    BankConnectionOwnership:
      type: object
      description: खाताधारक की किसी व्यक्ति या कंपनी के साथ वैकल्पिक तुलना।
      properties:
        compare:
          type: string
          enum:
            - none
            - person
            - business
        match:
          type: string
          enum:
            - any_holder
            - all_holders
            - null
          nullable: true
        check_id:
          type: string
          description: जब तुलना का अनुरोध किया गया हो, तब स्वामित्व परिणाम का पहचानकर्ता।
          format: uuid
          nullable: true
        result:
          type: string
          enum:
            - match
            - close_match
            - no_match
            - unknown
            - null
          description: >-
            निष्कर्ष। `unknown` जब भी धारक से संबंधित साक्ष्य न होने से परिणाम
            बदल सकता हो, और तब भी जब बैंक किसी धारक की जानकारी साझा न करे।
          nullable: true
      required:
        - compare
        - match
        - check_id
        - result
    BankConnectionBilling:
      type: object
      description: इस कनेक्शन का खर्च क्या है। सैंडबॉक्स पर कभी शुल्क नहीं लिया जाता।
      properties:
        unit:
          type: string
          description: बिलिंग इकाई, सतत पहुँच के लिए `connection_month`, अन्यथा `one_time`।
          enum:
            - connection_month
            - one_time
        price_usd:
          type: string
          description: >-
            आज के महीने के मीटर के लिए आपकी कीमत, आपके एप्लिकेशन और देश के लिए,
            USD में, 4 दशमलव स्थानों वाली दशमलव स्ट्रिंग। कनेक्शन का शुल्क तभी
            लगता है जब स्वीकृत हर दायरे ने उस महीने में कम से कम एक खाते का डेटा
            प्रकाशित किया हो। एक बार वाले कनेक्शनों और सैंडबॉक्स में `null`। सतत
            पहुँच प्रति सक्रिय कनेक्शन प्रति महीने बिल होती है; वर्तमान कीमत
            मूल्य निर्धारण पेज (https://docs.didit.me/getting-started/pricing)
            पर है। उदाहरण की राशियाँ केवल दर्शाने के लिए हैं; किसी देश की कीमत
            मूल्य निर्धारण पेज पर दिखाई गई है।
          pattern: ^-?\d+(\.\d+)?$
          nullable: true
        billed_through:
          type: string
          description: आखिरी महीने का अंत जिसका निपटान हो चुका है।
          format: date
          nullable: true
      required:
        - unit
        - price_usd
        - billed_through
    BankConnectionErasure:
      type: object
      description: >-
        आपके द्वारा माँगे गए मिटाने का रिकॉर्ड। मिटाना स्वयं तुरंत होता है:
        कनेक्शन का डेटा मिट जाता है और कॉल का रिस्पॉन्स मिलते ही वह पढ़ा नहीं जा
        सकता। `status` उसकी पुष्टि है।
      properties:
        status:
          type: string
          enum:
            - pending
            - erased
            - failed
          description: >-
            मिटाने की पुष्टि। `pending`: मिटाने की पुष्टि हो रही है, जिसमें बैंक
            पर पहुँच का समाप्त होना भी शामिल है। `erased`: पुष्टि हो गई है,
            `erased_at` के साथ। `failed`: पुष्टि अभी तक नहीं आई है और अपने आप
            दोबारा की जाती है; इसके लिए आपको कुछ नहीं करना है। तीनों में से किसी
            भी स्थिति में डेटा मिट चुका है और उसे पढ़ा नहीं जा सकता।
        requested_at:
          type: string
          format: date-time
          description: जब आपने हटाने का अनुरोध किया।
        erased_at:
          type: string
          format: date-time
          nullable: true
          description: जब हटाने की पुष्टि हुई। `status` के `erased` होने तक `null`।
      required:
        - status
        - requested_at
        - erased_at
    RateLimitBudgetError:
      type: object
      description: >-
        यह केवल रेट-लिमिट मिडलवेयर बजट अस्वीकृति के लिए लौटाया जाता है। अन्य 429
        त्रुटियाँ, जिनमें आइडेम्पोटेंसी टकराव और endpoint-विशिष्ट सीमाएँ शामिल
        हैं, इन मेटाडेटा फ़ील्ड्स की गारंटी नहीं देतीं।
      required:
        - detail
        - reference
        - limit
        - remaining
        - reset
        - window_seconds
      properties:
        detail:
          type: string
          description: मौजूदा मानव-पठनीय बजट अस्वीकृति संदेश।
        reference:
          type: string
          pattern: ^RL-[0-9a-f]{32}$
          description: >-
            अपारदर्शी सहायता संदर्भ: RL- के बाद 32 लोअरकेस UUID हेक्साडेसिमल
            अक्षर।
        limit:
          type: integer
          description: सीमा से अधिक हुए दायरे का बजट; यह X-RateLimit-Limit के बराबर है।
        remaining:
          type: integer
          minimum: 0
          description: शेष बजट, शून्य पर सीमित; X-RateLimit-Remaining के बराबर।
        reset:
          type: integer
          format: int64
          description: >-
            विंडो रीसेट का समय Unix सेकंड में; यह X-RateLimit-Reset के बराबर
            होता है।
        window_seconds:
          type: integer
          description: >-
            फ़िक्स्ड-विंडो की अवधि सेकंड में, शेष प्रतीक्षा समय नहीं। दोबारा
            प्रयास करने से पहले Retry-After का पालन करें।
      example:
        detail: >-
          Write request rate limit exceeded. You can make up to 300 requests per
          minute.
        reference: RL-00000000000040008000000000000001
        limit: 300
        remaining: 0
        reset: 1794358860
        window_seconds: 60
    BankSyncBudget:
      type: object
      description: >-
        बैंक की उस सीमा का एक हिस्सा, जो व्यक्ति के मौजूद न होने पर डेटा लाने
        (fetch) पर लागू होती है।
      properties:
        scope:
          type: string
          enum:
            - connection
            - account
          description: वह चीज़ जिसके विरुद्ध बैंक बजट गिनता है।
        resource:
          type: string
          enum:
            - all
            - accounts
            - balances
            - transactions
        account_id:
          type: string
          description: खाता, जब `scope` `account` हो।
          format: uuid
          nullable: true
        limit:
          type: integer
          description: >-
            दिन में कितनी बार Didit व्यक्ति की उपस्थिति के बिना बैंक से डेटा
            प्राप्त कर सकता है, जैसा बैंक परिभाषित करता है। यह बैंक द्वारा तय की
            गई सीमा है, कोई वादा नहीं।
        remaining:
          type: integer
          description: >-
            आपके रिफ़्रेश के लिए वर्तमान विंडो में बचे फ़ेच। स्वचालित सिंक के
            लिए रखे गए रीड पहले ही घटा दिए गए हैं, और कोई स्वचालित सिंक दिन के
            अंतिम दो रीड नहीं लेता, इसलिए मांग पर किए जाने वाले दो रिफ़्रेश
            हमेशा उपलब्ध रहते हैं।
        resets_at:
          type: string
          description: जब विंडो रीसेट होती है।
          format: date-time
      required:
        - scope
        - resource
        - limit
        - remaining
        - resets_at
    BankSyncError:
      type: object
      description: सिंक विफल होने का कारण।
      properties:
        code:
          type: string
          description: Didit एरर कोड।
        message:
          type: string
          description: सरल भाषा में स्पष्टीकरण।
        at:
          type: string
          description: यह कब हुआ। प्रति-खाता परिणाम पर `null`।
          format: date-time
          nullable: true
      required:
        - code
        - message
        - at
  responses:
    Unauthorized:
      description: अनधिकृत
      content:
        application/json:
          examples:
            Invalid API Key:
              summary: अमान्य API कुंजी
              value:
                detail: Invalid API Key.
    BankDataAccessDenied:
      description: >-
        स्कोप्ड API कुंजी अपने स्कोप में Bank data (`bank-data`) का नाम नहीं
        देती, या लाइव एप्लिकेशन में कच्चे बैंक डेटा के लिए एप्लिकेशन सेटिंग
        "Bank data in the API" बंद है। API कुंजी के बिना प्रमाणित किया गया
        अनुरोध (क्लाइंट क्रेडेंशियल, कच्चे डेटा पर) भी इसी बॉडी के साथ अस्वीकार
        किया जाता है। पूर्ण-एक्सेस कुंजी को उसके स्कोप के आधार पर अस्वीकार नहीं
        किया जाता। यह अस्वीकृति किसी भी लुकअप से पहले होती है, इसलिए यह नहीं
        बताती कि कोई ऑब्जेक्ट मौजूद है या नहीं।
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankDataError'
          examples:
            Bank data not allowed:
              summary: बैंक डेटा की अनुमति नहीं है
              value:
                code: bank_data_access_denied
                message: >-
                  Bank data calls need an API key that carries the Bank data
                  permission.
                request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                field: null
                next_action: enable_bank_data_access
                retry_after: null
    RateLimitedWrite:
      description: >-
        प्रति API कुंजी प्रति मिनट 300 अनुरोधों की साझा राइट सीमा पार हो गई।
        पुनः प्रयास से पहले `Retry-After` का पालन करें।
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitBudgetError'
          example:
            detail: >-
              Write request rate limit exceeded. You can make up to 300 requests
              per minute.
            reference: RL-00000000000040008000000000000001
            limit: 300
            remaining: 0
            reset: 1794358860
            window_seconds: 60
      headers:
        Retry-After:
          $ref: '#/components/headers/BudgetRetryAfter'
        X-RateLimit-Scope:
          $ref: '#/components/headers/BudgetXRateLimitScope'
        X-RateLimit-Limit:
          $ref: '#/components/headers/BudgetXRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/BudgetXRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/BudgetXRateLimitReset'
    BankDataInternalError:
      description: >-
        Didit की ओर से कुछ गड़बड़ हुई है। `/v3/bank/` के तहत कोई भी अप्रत्याशित
        त्रुटि बैंक त्रुटि संरचना में उत्तर देती है, कभी HTML पेज में नहीं:
        सहायता टीम को `request_id` बताएँ।
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankDataError'
          examples:
            Internal error:
              summary: एक अनपेक्षित त्रुटि
              value:
                code: internal_error
                message: >-
                  Something went wrong on our side. Quote the request_id to
                  support.
                request_id: 3f6a1c8e92b54d07a1e38c4b7f0d2e59
                field: null
                next_action: contact_support
                retry_after: null
  headers:
    BudgetRetryAfter:
      description: >-
        प्रतीक्षा के सेकंड, जिन्हें अगली विंडो तक ऊपर की ओर राउंड किया गया है।
        मिडलवेयर बजट अस्वीकृतियों पर मौजूद होता है।
      schema:
        type: integer
    BudgetXRateLimitScope:
      description: वह दायरा जिसका बजट पार हुआ। मिडलवेयर बजट अस्वीकृतियों पर मौजूद होता है।
      schema:
        type: string
    BudgetXRateLimitLimit:
      description: >-
        सीमा से अधिक हुए दायरे का बजट; यह बॉडी लिमिट के बराबर है। यह middleware
        बजट अस्वीकृतियों में मौजूद होता है।
      schema:
        type: integer
    BudgetXRateLimitRemaining:
      description: >-
        शेष बजट, शून्य पर सीमित; body remaining के बराबर। मिडलवेयर बजट
        अस्वीकृतियों पर मौजूद।
      schema:
        type: integer
    BudgetXRateLimitReset:
      description: >-
        रीसेट का समय Unix सेकंड में; यह बॉडी के reset के बराबर होता है। मिडलवेयर
        बजट अस्वीकृतियों पर मौजूद होता है।
      schema:
        type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        आपकी एप्लिकेशन की API कुंजी, जो Business Console में Developers -> API
        keys से मिलती है। प्राथमिक कुंजी के पास पूर्ण पहुँच होती है। नामित कुंजी
        को सीमित किया जा सकता है: प्रति संसाधन कोई नहीं, read या write, कुछ
        वर्कफ़्लो या केवल स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और
        समाप्ति तिथि के साथ। 401 का अर्थ है कि कुंजी गलत, रद्द या समय-सीमा
        समाप्त है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई, कुंजी को इस संसाधन
        या कार्रवाई तक पहुँच नहीं है, या अनुरोध उसकी IP सूची के बाहर के पते से
        आया; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी के वर्कफ़्लो या स्थितियों
        के बाहर है। मीडिया पहुँच के बिना कुंजी को image, video और PDF URL null
        मिलते हैं, और sessions write के बिना कुंजी को सत्र लिंक और token null
        मिलते हैं। देखें https://docs.didit.me/console/api-keys।

````

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