Skip to main content

OrderPaymentMethodInput Input

Description​

Input fields for adding a payment or refund method to an order. The origin specifies the payment method type, and the amount is the payment or refund value.

Declaration​

input OrderPaymentMethodInput {
origin: String!
amount: Float!
ref: ID
intentId: String
added: Date
}

Fields​

NameTypeDescription
originString!Payment method origin. Valid values include "cash", "card", "stripe", "paypal", "cheque", "bankTransfer", or "creditNote".
amountFloat!Payment or refund amount in the shop's currency.
refIDReference to another document the payment draws on — currently the credit note being spent. Not a processor reference; use intentId for that.
intentIdStringIdentifier of the transaction at the payment processor, for a payment recorded by hand: a Stripe payment intent (pi_…) or a Paypal capture id. Links the payment method through to the processor's own dashboard, the same way an automatic one does.
addedDateDate when the payment was added. Defaults to the current date if not specified.