---
title: PaymentDetails - Customer API
description: Payment details related to a transaction.
api_version: 2026-01
api_name: customer
type: union
api_type: graphql
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/unions/PaymentDetails'
  md: 'https://shopify.dev/docs/api/customer/latest/unions/PaymentDetails.md'
---

# Payment​Details

union

Payment details related to a transaction.

## Possible types

* [Card​Payment​Details](https://shopify.dev/docs/api/customer/latest/objects/CardPaymentDetails)

  OBJECT

  The card payment details related to a transaction.

  * card​Brand

    [String!](https://shopify.dev/docs/api/customer/latest/scalars/String)

    non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api)

    The brand of the credit card used.

  * last4

    [String](https://shopify.dev/docs/api/customer/latest/scalars/String)

    [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api)

    The last four digits of the credit card used.

***

## Fields with this union

* [Order​Transaction.paymentDetails](https://shopify.dev/docs/api/customer/latest/objects/OrderTransaction#field-OrderTransaction.fields.paymentDetails)

  OBJECT

  A payment transaction within an order context.

***

```graphql
union PaymentDetails = CardPaymentDetails
```
