Skip to main content

PaymentMethod Object

Description

Payment method used for a transaction, including amount, origin, and status.

Declaration

type PaymentMethod {
_id: ID
amount: Float!
origin: String
label: String
charge: JSON
added: Date
ref: ID
status: String
}

Fields

NameTypeDescription
_idIDInternal database identifier.
amountFloat!Payment amount in the shop's currency.
originStringPayment method origin. Valid values include "cash", "card", "stripe", "paypal", "cheque", "bankTransfer", or "creditNote".
labelStringDisplay label for the payment method.
chargeJSONPayment processing details in JSON format (e.g., Stripe charge object).
addedDateDate when the payment was added.
refIDReference ID for the payment (e.g., transaction ID, payment reference).
statusStringStatus of the payment. Valid values include "pending", "completed", "failed", or "refunded".