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
added: Date
}
Fields
| Name | Type | Description |
|---|---|---|
origin | String! | Payment method origin. Valid values include "cash", "card", "stripe", "paypal", "cheque", "bankTransfer", or "creditNote". |
amount | Float! | Payment or refund amount in the shop's currency. |
ref | ID | Optional reference ID for the payment method (e.g., transaction ID, payment reference). |
added | Date | Date when the payment was added. Defaults to the current date if not specified. |