# Payment

Payment returned from create/refund/capture/cancel and the send-link/receipt mutations.

```
type Payment {

  id: ID!

  amount: Int

  amountEUR: Int

  currency: String!

  orderId: ID

  storeId: ID

  pointOfSaleId: ID

  description: String

  descriptor: String

  accountId: ID!

  authorizationCode: String

  livemode: Boolean

  status: PaymentStatus!

  statusCode: String

  statusMessage: String

  customer: Customer

  sequenceId: ID

  subscriptionId: ID

  paymentToken: String

  paymentMethod: PaymentMethod

  shop: Shop

  billingDetails: ContactDetails

  shippingDetails: ContactDetails

  refundedAmount: Int

  lastRefundAmount: Int

  lastRefundReason: RefundReason

  cancellationReason: CancellationReason

  sessionDetails: SessionDetails

  traceDetails: TraceDetails

  nextAction: NextAction

  createdAt: AWSTimestamp

  updatedAt: AWSTimestamp

  pageOpenedAt: AWSTimestamp

  metadata: [KeyValueItem!]

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`Payment.id`](#id) ● [`ID!`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) non-null scalar[​](#id "Direct link to id")

Unique identifier for the payment.

#### [`Payment.amount`](#amount) ● [`Int`](https://docs.monei.com/apis/graphql/types/scalars/int/.md) scalar[​](#amount "Direct link to amount")

Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge 1.00 USD).

#### [`Payment.amountEUR`](#amount-eur) ● [`Int`](https://docs.monei.com/apis/graphql/types/scalars/int/.md) scalar[​](#amount-eur "Direct link to amount-eur")

Amount converted to EUR, in cents.

#### [`Payment.currency`](#currency) ● [`String!`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) non-null scalar[​](#currency "Direct link to currency")

Three-letter ISO 4217 currency code, in uppercase. Must be a supported currency.

#### [`Payment.orderId`](#order-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#order-id "Direct link to order-id")

An order ID from your system. A unique identifier that can be used to reconcile the payment with your internal system.

#### [`Payment.storeId`](#store-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#store-id "Direct link to store-id")

A unique identifier of the Store. If specified the payment is attached to this Store.

#### [`Payment.pointOfSaleId`](#point-of-sale-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#point-of-sale-id "Direct link to point-of-sale-id")

A unique identifier of the Point of Sale. If specified the payment is attached to this Point of Sale.

#### [`Payment.description`](#description) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#description "Direct link to description")

An arbitrary string attached to the payment. Often useful for displaying to users.

#### [`Payment.descriptor`](#descriptor) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#descriptor "Direct link to descriptor")

Statement descriptor (max 25 chars).

#### [`Payment.accountId`](#account-id) ● [`ID!`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) non-null scalar[​](#account-id "Direct link to account-id")

Merchant account that owns the payment.

#### [`Payment.authorizationCode`](#authorization-code) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#authorization-code "Direct link to authorization-code")

Unique identifier provided by the bank performing transaction.

#### [`Payment.livemode`](#livemode) ● [`Boolean`](https://docs.monei.com/apis/graphql/types/scalars/boolean/.md) scalar[​](#livemode "Direct link to livemode")

`true` for live, `false` for test mode.

#### [`Payment.status`](#status) ● [`PaymentStatus!`](https://docs.monei.com/apis/graphql/types/enums/payment-status/.md) non-null enum[​](#status "Direct link to status")

Current lifecycle state.

#### [`Payment.statusCode`](#status-code) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#status-code "Direct link to status-code")

Payment status code. `E000` succeeded; `E1xx` request errors; `E2xx` decline; `E5xx` system.

#### [`Payment.statusMessage`](#status-message) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#status-message "Direct link to status-message")

Human readable status message, can be displayed to a user.

#### [`Payment.customer`](#customer) ● [`Customer`](https://docs.monei.com/apis/graphql/types/objects/customer/.md) object[​](#customer "Direct link to customer")

Customer identification.

#### [`Payment.sequenceId`](#sequence-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#sequence-id "Direct link to sequence-id")

A permanent identifier that refers to the initial payment of a sequence of payments.

#### [`Payment.subscriptionId`](#subscription-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#subscription-id "Direct link to subscription-id")

A unique identifier of the Subscription. If specified the payment is attached to this Subscription.

#### [`Payment.paymentToken`](#payment-token) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#payment-token "Direct link to payment-token")

Single-use token clients pass to the hosted page or `confirmPayment` to complete the payment.

#### [`Payment.paymentMethod`](#payment-method) ● [`PaymentMethod`](https://docs.monei.com/apis/graphql/types/objects/payment-method/.md) object[​](#payment-method "Direct link to payment-method")

Details about the payment method at the time of the transaction.

#### [`Payment.shop`](#shop) ● [`Shop`](https://docs.monei.com/apis/graphql/types/objects/shop/.md) object[​](#shop "Direct link to shop")

The information about the shop (used in hosted payment page).

#### [`Payment.billingDetails`](#billing-details) ● [`ContactDetails`](https://docs.monei.com/apis/graphql/types/objects/contact-details/.md) object[​](#billing-details "Direct link to billing-details")

Billing information associated with the payment method at the time of the transaction.

#### [`Payment.shippingDetails`](#shipping-details) ● [`ContactDetails`](https://docs.monei.com/apis/graphql/types/objects/contact-details/.md) object[​](#shipping-details "Direct link to shipping-details")

Shipping information associated with the payment.

#### [`Payment.refundedAmount`](#refunded-amount) ● [`Int`](https://docs.monei.com/apis/graphql/types/scalars/int/.md) scalar[​](#refunded-amount "Direct link to refunded-amount")

Amount in cents refunded (can be less than the amount attribute on the payment if a partial refund was issued).

#### [`Payment.lastRefundAmount`](#last-refund-amount) ● [`Int`](https://docs.monei.com/apis/graphql/types/scalars/int/.md) scalar[​](#last-refund-amount "Direct link to last-refund-amount")

Amount in cents refunded in the last transaction.

#### [`Payment.lastRefundReason`](#last-refund-reason) ● [`RefundReason`](https://docs.monei.com/apis/graphql/types/enums/refund-reason/.md) enum[​](#last-refund-reason "Direct link to last-refund-reason")

The reason of the last refund transaction.

#### [`Payment.cancellationReason`](#cancellation-reason) ● [`CancellationReason`](https://docs.monei.com/apis/graphql/types/enums/cancellation-reason/.md) enum[​](#cancellation-reason "Direct link to cancellation-reason")

The reason for canceling the Payment.

#### [`Payment.sessionDetails`](#session-details) ● [`SessionDetails`](https://docs.monei.com/apis/graphql/types/objects/session-details/.md) object[​](#session-details "Direct link to session-details")

Information related to the browsing session of the user who initiated the payment.

#### [`Payment.traceDetails`](#trace-details) ● [`TraceDetails`](https://docs.monei.com/apis/graphql/types/objects/trace-details/.md) object[​](#trace-details "Direct link to trace-details")

Origin metadata for dashboard-initiated actions.

#### [`Payment.nextAction`](#next-action) ● [`NextAction`](https://docs.monei.com/apis/graphql/types/objects/next-action/.md) object[​](#next-action "Direct link to next-action")

If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.

#### [`Payment.createdAt`](#created-at) ● [`AWSTimestamp`](https://docs.monei.com/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#created-at "Direct link to created-at")

Creation time as a unix timestamp (seconds).

#### [`Payment.updatedAt`](#updated-at) ● [`AWSTimestamp`](https://docs.monei.com/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#updated-at "Direct link to updated-at")

Last update time as a unix timestamp (seconds).

#### [`Payment.pageOpenedAt`](#page-opened-at) ● [`AWSTimestamp`](https://docs.monei.com/apis/graphql/types/scalars/awstimestamp/.md) scalar[​](#page-opened-at "Direct link to page-opened-at")

When the customer first opened the hosted payment page, as a unix timestamp (seconds).

#### [`Payment.metadata`](#metadata) ● [`[KeyValueItem!]`](https://docs.monei.com/apis/graphql/types/objects/key-value-item/.md) list object[​](#metadata "Direct link to metadata")

Merchant-defined metadata.

### Returned By[​](#returned-by "Direct link to Returned By")

[`activateSubscription`](https://docs.monei.com/apis/graphql/operations/mutations/activate-subscription/.md) mutation ● [`cancelPayment`](https://docs.monei.com/apis/graphql/operations/mutations/cancel-payment/.md) mutation ● [`capturePayment`](https://docs.monei.com/apis/graphql/operations/mutations/capture-payment/.md) mutation ● [`createPayment`](https://docs.monei.com/apis/graphql/operations/mutations/create-payment/.md) mutation ● [`refundPayment`](https://docs.monei.com/apis/graphql/operations/mutations/refund-payment/.md) mutation ● [`sendPaymentLink`](https://docs.monei.com/apis/graphql/operations/mutations/send-payment-link/.md) mutation ● [`sendPaymentReceipt`](https://docs.monei.com/apis/graphql/operations/mutations/send-payment-receipt/.md) mutation ● [`sendPaymentRequest`](https://docs.monei.com/apis/graphql/operations/mutations/send-payment-request/.md) mutation
