Skip to main content

Payment

No description

type Payment {
id: ID!
userId: Int
anonymousId: Int
paymentId: String
orderId: Int!
amount: Int!
currency: String!
method: String!
status: PaymentStatuses!
transactions: [Transaction!]
createdAt: DateTime!
createdBy: String
lastModifiedAt: DateTime!
lastModifiedBy: String
}

Fields

Payment.id ● ID! non-null scalar

Payment primary identifier

Payment.userId ● Int scalar

Logged in User ID

Payment.anonymousId ● Int scalar

Guest User ID

Payment.paymentId ● String scalar

Unique paymentId reference for the Payment - provided by the PSP

Payment.orderId ● Int! non-null scalar

Unique orderId reference for the Payment

Payment.amount ● Int! non-null scalar

Payment amount [denomination in cents]

Payment.currency ● String! non-null scalar

Payment currency - ISO 4217 currency code => https://www.xe.com/iso4217.php

Payment.method ● String! non-null scalar

Payment method used by the PSP

Payment.status ● PaymentStatuses! non-null enum

Payment status

Payment.transactions ● [Transaction!] list object

Transaction(s) related to the specified payment

Payment.createdAt ● DateTime! non-null scalar

Payment initial creation timestamp

Payment.createdBy ● String scalar

Reference to the user that created the payment initially

Payment.lastModifiedAt ● DateTime! non-null scalar

Payment last update timestamp

Payment.lastModifiedBy ● String scalar

Reference to the user that last modified the payment

Returned By

payment query ● paymentCreate mutation ● paymentDelete mutation ● paymentUpdate mutation

Member Of

PaymentsResponse object