---
title: "Get Virtual Debit Card"
method: GET
path: "/api/v1/payments/{paymentId}/card"
tags: ["Payments"]
---

# Get Virtual Debit Card

`GET /api/v1/payments/{paymentId}/card`

## Request

- Base URL: `https://secure-api.accruesavings.com`
- URL: `https://secure-api.accruesavings.com/api/v1/payments/{paymentId}/card`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/payments/:paymentId/card/get.ts> (a function with typed inputs; its response is checked against the schema)

The get virtual debit card endpoint can be used to fetch the card details for a payment.

  **This endpoint is available for Card Rails (Virtual Debit Cards) only**.

  Refer to the [Merchant API](/docs/payments/merchant-api/#payment-authorization-and-capture-via-card-rails-virtual-debit-cards) Guide for more information.

## Path parameters

- `paymentId` string, uuid, required: Payment ID

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Response `200`

OK

- GetVirtualDebitCardResponse
  - `data` VirtualDebitCard, required: A virtual debit card
    - `id` string, uuid, required: Unique identifier for the object.
    - `type` 'VirtualDebitCard', required
    - `attributes` object, required
      - `number` string, required: The card number.
      - `expirationMonth` string, required: The card expiration month.
      - `expirationYear` string, required: The card expiration year.
      - `cvc` string, required: The virtual card security code.
      - `billingAddress` object, required
        - `street` string, required: The billing address line 1.
        - `street2` string: The billing address line 2.
        - `city` string, required: The billing address city.
        - `state` string, required: The billing address state.
        - `postalCode` string, required: The billing address postal code.
        - `country` string, required: The billing address country.
    - `relationships` object, required
      - `payment` object, required
        - `data` object, required
          - `id` string, uuid, required
          - `type` 'Payment', required
      - `paymentIntent` object, required
        - `data` object, required
          - `id` string, uuid, required
          - `type` 'PaymentIntent', required

## Other responses

- `400`: Bad Request
- `403`: Forbidden

---

[API](https://skmtc.dev/byaccrue/apis/accrue-merchant-api.md) - [All operations](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/revisions/3e2d97ef2e6e?raw)
