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

# Transaction Object

An object representing a single payment.

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

```graphql
type Transaction implements Node {
  id: ID!
  created: DateTime!
  payment: Payment!
  token: String!
  kind: TransactionKind!
  isSuccess: Boolean!
  error: String
  gatewayResponse: JSONString! @deprecated
  amount: Money
}
```

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

### Fields

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

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

ID of the transaction.

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

#### [`created`](#created) ● [`DateTime!`](/api-reference/miscellaneous/scalars/date-time.md)

Date and time at which transaction was created.

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

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

Determines the payment associated with a transaction.

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

#### [`token`](#token) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Unique token associated with a transaction.

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

#### [`kind`](#kind) ● [`TransactionKind!`](/api-reference/payments/enums/transaction-kind.md)

Determines the type of transaction.

<a id="is-success"></a>

#### [`isSuccess`](#is-success) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

Determines if the transaction was successful.

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

#### [`error`](#error) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Error associated with transaction, if any.

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

#### [`amount`](#amount) ● [`Money`](/api-reference/miscellaneous/objects/money.md)

Total amount of the transaction.

Show deprecatedHide deprecated

<a id="gateway-response"></a>

#### [`gatewayResponse`](#gateway-response) ● [`JSONString!`](/api-reference/miscellaneous/scalars/jsonstring.md)

DEPRECATED

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

Response returned by payment gateway.

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

### Interfaces

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

#### [`Node`](/api-reference/miscellaneous/interfaces/node.md)

An object with an ID

<a id="member-of"></a>

### Member Of

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