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
intentId: 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".
intentIdStringIdentifier of the transaction at the payment processor, as its own dashboard knows it — a Stripe payment intent (pi_…) or a Paypal capture id. Used to link straight to the payment. Paypal payments taken before August 2026 hold the Paypal order id instead, which does not resolve there.