> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/deprecated/llms.txt)
> Source: https://docs.saleor.io/api-reference/deprecated/payments/queries/payment

# payment Query

DEPRECATED

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.

Look up a payment by ID.

Requires the MANAGE\_ORDERS permission.

```graphql
payment(
  id: ID!
): Payment @deprecated
```

Details

```graphql
type Payment implements Node, ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(
    key: String!
  ): String
  privateMetafields(
    keys: [String!]
  ): Metadata
  metadata: [MetadataItem!]!
  metafield(
    key: String!
  ): String
  metafields(
    keys: [String!]
  ): Metadata
  gateway: String!
  isActive: Boolean!
  created: DateTime!
  modified: DateTime!
  token: String!
  checkout: Checkout
  order: Order
  paymentMethodType: String!
  customerIpAddress: String
  chargeStatus: PaymentChargeStatusEnum!
  actions: [OrderAction!]!
  total: Money
  capturedAmount: Money
  transactions: [Transaction!]
  availableCaptureAmount: Money
  availableRefundAmount: Money
  creditCard: CreditCard
  pspReference: String
}
```

<a id="arguments"></a>

### Arguments

<a id="id"></a>

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of the payment.

<a id="type"></a>

### Type

<a id="payment"></a>

#### [`Payment`](/api-reference/payments/objects/payment.md)

Represents a payment of a given type.

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.
