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

# Get Blocked Customer

> Get a blocklist entry together with its notes.



## OpenAPI

````yaml get /blocklist/customers/{entry_id}
openapi: 3.1.0
info:
  title: public
  description: ''
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 1.120.20
servers:
  - url: https://test.dodopayments.com/
    description: Test Mode Server Host
  - url: https://live.dodopayments.com/
    description: Live Mode Server Host
security: []
tags:
  - name: Products
  - name: Payments
  - name: Subscriptions
  - name: Addons
  - name: Customers
  - name: Refunds
  - name: Disputes
  - name: Events
  - name: License Keys
  - name: Entitlements
  - name: Licenses
  - name: Discounts
  - name: Meters
  - name: Credit Entitlements
  - name: Credit Entitlement Balances
  - name: Outgoing Webhooks
  - name: Checkout
  - name: Webhook Events
  - name: Payment Connector Webhooks
  - name: Moderation
  - name: Locales
paths:
  /blocklist/customers/{entry_id}:
    get:
      tags:
        - Blocklist
      operationId: get_blocked_customer
      parameters:
        - name: entry_id
          in: path
          description: Blocklist entry id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockedCustomerResponse'
        '404':
          description: No such blocklist entry
      security:
        - API_KEY: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import DodoPayments from 'dodopayments';


            const client = new DodoPayments({
              bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
            });


            const blockedCustomer = await
            client.blocklist.customers.retrieve('entry_id');


            console.log(blockedCustomer.id);
        - lang: Python
          source: |-
            import os
            from dodopayments import DodoPayments

            client = DodoPayments(
                bearer_token=os.environ.get("DODO_PAYMENTS_API_KEY"),  # This is the default and can be omitted
            )
            blocked_customer = client.blocklist.customers.retrieve(
                "entry_id",
            )
            print(blocked_customer.id)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/dodopayments/dodopayments-go\"\n\t\"github.com/dodopayments/dodopayments-go/option\"\n)\n\nfunc main() {\n\tclient := dodopayments.NewClient(\n\t\toption.WithBearerToken(\"My Bearer Token\"),\n\t)\n\tblockedCustomer, err := client.Blocklist.Customers.Get(context.TODO(), \"entry_id\")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", blockedCustomer.ID)\n}\n"
        - lang: Java
          source: >-
            package com.dodopayments.api.example;


            import com.dodopayments.api.client.DodoPaymentsClient;

            import com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient;

            import
            com.dodopayments.api.models.blocklist.customers.BlockedCustomer;

            import
            com.dodopayments.api.models.blocklist.customers.CustomerRetrieveParams;


            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    DodoPaymentsClient client = DodoPaymentsOkHttpClient.fromEnv();

                    BlockedCustomer blockedCustomer = client.blocklist().customers().retrieve("entry_id");
                }
            }
        - lang: Kotlin
          source: >-
            package com.dodopayments.api.example


            import com.dodopayments.api.client.DodoPaymentsClient

            import com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient

            import
            com.dodopayments.api.models.blocklist.customers.BlockedCustomer

            import
            com.dodopayments.api.models.blocklist.customers.CustomerRetrieveParams


            fun main() {
                val client: DodoPaymentsClient = DodoPaymentsOkHttpClient.fromEnv()

                val blockedCustomer: BlockedCustomer = client.blocklist().customers().retrieve("entry_id")
            }
        - lang: Ruby
          source: >-
            require "dodopayments"


            dodo_payments = Dodopayments::Client.new(
              bearer_token: "My Bearer Token",
              environment: "test_mode" # defaults to "live_mode"
            )


            blocked_customer =
            dodo_payments.blocklist.customers.retrieve("entry_id")


            puts(blocked_customer)
        - lang: PHP
          source: |-
            <?php

            require_once dirname(__DIR__) . '/vendor/autoload.php';

            use Dodopayments\Client;
            use Dodopayments\Core\Exceptions\APIException;

            $client = new Client(
              bearerToken: getenv('DODO_PAYMENTS_API_KEY') ?: 'My Bearer Token',
              environment: 'test_mode',
            );

            try {
              $blockedCustomer = $client->blocklist->customers->retrieve('entry_id');

              var_dump($blockedCustomer);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: C#
          source: >-
            using System;

            using DodoPayments.Client;

            using DodoPayments.Client.Models.Blocklist.Customers;


            DodoPaymentsClient client = new();


            CustomerRetrieveParams parameters = new() { EntryID = "entry_id" };


            var blockedCustomer = await
            client.Blocklist.Customers.Retrieve(parameters);


            Console.WriteLine(blockedCustomer);
        - lang: Rust
          source: |-
            use dodopayments::Client;

            #[tokio::main]
            async fn main() -> dodopayments::Result<()> {
                let client = Client::from_env()?;
                let entry_id = "entry_id";
                let result = client
                    .blocklist()
                    .customers()
                    .retrieve()
                    .entry_id(entry_id)
                    .await?;
                println!("{result:?}");
                Ok(())
            }
components:
  schemas:
    BlockedCustomerResponse:
      type: object
      required:
        - id
        - customer_id
        - customer_name
        - customer_email
        - identifier
        - source
        - created_at
      properties:
        blocked_by_email:
          type:
            - string
            - 'null'
          description: >-
            Dashboard user who blocked the customer. `null` for an API-key
            caller.
        cancelled_subscription_ids:
          type:
            - array
            - 'null'
          items:
            type: string
          description: >-
            Subscriptions this block cancelled. Present on the create response
            only.
        created_at:
          type: string
          format: date-time
        customer_email:
          type: string
        customer_id:
          type: string
        customer_name:
          type: string
        id:
          type: string
        identifier:
          type: string
          description: Customer id or email that the merchant supplied.
        notes:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/BlockedCustomerNote'
          description: Activity log. Present on the detail response only.
        reason:
          type:
            - string
            - 'null'
        remaining_subscription_ids:
          type:
            - array
            - 'null'
          items:
            type: string
          description: >-
            Subscriptions this block left live, because the cancel failed or the

            inline batch filled up. Repeat the create call to continue; the
            block

            itself is already in force.
        source:
          $ref: '#/components/schemas/BlockedCustomerSource'
        subscriptions_swept:
          type:
            - boolean
            - 'null'
          description: >-
            False when the block left live subscriptions behind, including the
            case

            where the sweep could not list them and `remaining_subscription_ids`
            is

            therefore unknown. Repeat the create call until it reads true.
        unblocked_at:
          type:
            - string
            - 'null'
          format: date-time
    BlockedCustomerNote:
      type: object
      required:
        - id
        - note
        - created_at
      properties:
        author_email:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        id:
          type: string
        note:
          type: string
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
    BlockedCustomerSource:
      type: string
      description: |-
        Where a block came from. `Api` marks an API-key caller, which carries no
        dashboard actor. The other values name the screen the merchant used.
      enum:
        - blocklist_page
        - customer_page
        - payment_page
        - dispute_page
        - api
  securitySchemes:
    API_KEY:
      type: http
      scheme: bearer

````

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