---
title: "Retrieve a customer"
method: GET
path: "/api/external/v2/customers/{id}"
tags: ["Customers"]
---

# Retrieve a customer

`GET /api/external/v2/customers/{id}`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/v2/customers/{id}`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `customers:all`, `customers:readonly`

This endpoint returns a customer.

> ℹ️
> This endpoint requires one of the following scopes: `customers:all`, `customers:readonly`

## Path parameters

- `id` integer, required

## Headers

- `X-Company-Id` string

## Response `200`

Returns a company customer

- union
  - object
    - `id` integer, required
    - `name` string, required
    - `billing_iban` string, nullable, required
    - `payment_conditions` 'upon_receipt' | 'custom' | '7_days' | '15_days' | '30_days' | '30_days_end_of_month' | '45_days' | '45_days_end_of_month' | '60_days', required: Note that the `custom` option is only used on Pennylane's web app to avoid pre-filling the deadline when creating an invoice. On the API it has no effect and you will still have to provide a deadline when creating an invoice.
    - `recipient` string, required: The name of the person to whom the invoice is addressed
    - `phone` string, required
    - `reference` string, nullable, required
    - `notes` string, nullable, required
    - `vat_number` string, required
    - `reg_no` string, required
    - `electronic_billing_address` string, nullable, required: The electronic billing address of the company customer used for e-invoicing routing. Based on the customer's SIREN or SIRET.
    - `public_administration` boolean, required: Whether the company customer is a French public administration. Based on the public administration check when available, otherwise on the customer's SIREN.
    - `ledger_account` object, nullable, required
      - `id` integer, required
    - `emails` string[], required
    - `billing_address` object, required
      - `address` string, required
      - `postal_code` string, required
      - `city` string, required
      - `country_alpha2` string, required
    - `delivery_address` object, required
      - `address` string, required
      - `postal_code` string, required
      - `city` string, required
      - `country_alpha2` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `customer_type` 'company', required
    - `external_reference` string, required: The unique external reference assigned to this customer, assigned on creation either by you or Pennylane.
    - `billing_language` 'fr_FR' | 'en_GB' | 'de_DE' | 'es_ES', required: The language in which the customer will receive invoices. Default is `fr_FR`
    - `mandates` object, required: GoCardless mandates associated with this customer
      - `url` string, required: URL to list GoCardless mandates associated with this customer
    - `pro_account_mandates` object, required: Pro Account mandates associated with this customer
      - `url` string, required: URL to list Pro Account mandates associated with this customer
    - `contacts` object, required
      - `url` string, required: URL to get the contacts of the customer.
  - object
    - `id` integer, required
    - `name` string, required
    - `billing_iban` string, nullable, required
    - `payment_conditions` 'upon_receipt' | 'custom' | '7_days' | '15_days' | '30_days' | '30_days_end_of_month' | '45_days' | '45_days_end_of_month' | '60_days', required: Note that the `custom` option is only used on Pennylane's web app to avoid pre-filling the deadline when creating an invoice. On the API it has no effect and you will still have to provide a deadline when creating an invoice.
    - `recipient` string, required
    - `phone` string, required
    - `reference` string, nullable, required
    - `notes` string, nullable, required
    - `first_name` string, required
    - `last_name` string, required
    - `ledger_account` object, nullable, required
      - `id` integer, required
    - `emails` string[], required
    - `billing_address` object, required
      - `address` string, required
      - `postal_code` string, required
      - `city` string, required
      - `country_alpha2` string, required
    - `delivery_address` object, required
      - `address` string, required
      - `postal_code` string, required
      - `city` string, required
      - `country_alpha2` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `customer_type` 'individual', required
    - `external_reference` string, required: The unique external reference assigned to this customer, assigned on creation either by you or Pennylane. (Same attribute as `source_id` in the API v1)
    - `billing_language` 'fr_FR' | 'en_GB' | 'de_DE' | 'es_ES', required: The language in which the customer will receive invoices. Default is `fr_FR`
    - `mandates` object, required: GoCardless mandates associated with this customer
      - `url` string, required: URL to list GoCardless mandates associated with this customer
    - `pro_account_mandates` object, required: Pro Account mandates associated with this customer
      - `url` string, required: URL to list Pro Account mandates associated with this customer
    - `contacts` object, required
      - `url` string, required: URL to get the contacts of the customer.

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found

## Changes

- **2026-11-03** `871f863307e5`: 2 warning, 3 info
  - added the new `es_ES` enum value to the `oneOf[subschema #1: Company customer]/billing_language` response property for the response status `200`
  - added the new `es_ES` enum value to the `oneOf[subschema #2: Individual customer]/billing_language` response property for the response status `200`
  - added the new optional `header` request parameter `X-Company-Id`
  - added the required property `oneOf[subschema #1: Company customer]/electronic_billing_address` to the response with the `200` status
  - …1 more

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/customers/:id/get.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
