> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# Get credit card information

GET https://demo.docusign.net/restapi/v2.1/accounts/{accountId}/billing_plan/credit_card

This method returns information about a credit card associated with an account.

Reference: https://developers.docusign.com/docs/esign-rest-api/reference/billing/billingplans/getcreditcard

## Authentication

- `Authorization` header (required) (prefixed with ` Bearer  `) — OAuth 2.0 access token (JWT or auth-code grant). Sent as `Authorization: Bearer <token>` on every request except `GET /v2.1` and `GET /service_information`, which are public discovery endpoints.

## Servers

- `https://demo.docusign.net/restapi` (Demo, default)
- `https://www.docusign.net/restapi` (Production)

## Request

### Path parameters

- `accountId` (string, required) — The external account number (int) or account ID Guid.

## Response

### 200

Successful response.

- `address` (addressInformation, optional) — Contains address information.
- `cardLastDigits` (string, optional)
- `cardNumber` (string, optional) — The credit card number.
- `cardType` (string, optional) — The type of credit card. Valid values are: - `visa` - `mastercard` - `amex`
- `cvNumber` (string, optional) — The 3 or 4-digit card verification value (CVV) number associated with the credit card. CVV numbers are also referred to as card security codes (CSCs).
- `expirationMonth` (string, optional) — The month that the credit card expires, expressed as a number from 1 to 12.
- `expirationYear` (string, optional) — The year in which the credit card expires, in 4-digit format.
- `nameOnCard` (string, optional) — The exact name as it appears on the credit card.
- `tokenizedCard` (string, optional)

## Errors

### 400 Bad Request Error

Error encountered.

- `errorCode` (string, optional) — The code associated with the error condition.
- `message` (string, optional) — A brief message describing the error condition.

## Types

### addressInformation

Contains address information.

- `address1` (string, optional) — The first line of the user's address. Maximum length: 100 characters.
- `address2` (string, optional) — The second line of the user's address. Maximum length: 100 characters.
- `city` (string, optional) — The user's city. Maximum length: 40 characters.
- `country` (string, optional) — The user's country. Maximum length: 50 characters.
- `fax` (string, optional) — A Fax number associated with the address if one is available.
- `phone` (string, optional) — A phone number associated with the address.
- `postalCode` (string, optional) — The user's postal code. Maximum length: 20 characters.
- `stateOrProvince` (string, optional) — The user's state or province. Maximum length: 40 characters.
- `zipPlus4` (string, optional)

## Examples

**Response**

```json
{
  "address": {
    "address1": "sample string 1",
    "address2": "sample string 2",
    "city": "sample string 3",
    "country": "sample string 4",
    "fax": "sample string 5",
    "phone": "sample string 6",
    "postalCode": "sample string 7",
    "stateOrProvince": "sample string 8",
    "zipPlus4": "sample string 9"
  },
  "cardLastDigits": "sample string 1",
  "cardNumber": "sample string 2",
  "cardType": "sample string 3",
  "cvNumber": "sample string 4",
  "expirationMonth": "sample string 5",
  "expirationYear": "sample string 6",
  "nameOnCard": "sample string 7",
  "tokenizedCard": "sample string 8"
}
```