Anchor to orderCreateManualPaymentorder
order Create Manual Payment
mutation
Requires access scope. Also: The user must have mark_orders_as_paid permission. The API client must be installed on a Shopify Plus store to use the amount field.
Create a manual payment for an order. You can only create a manual payment for an order if it isn't already fully paid.
Anchor to Arguments
Arguments
- Anchor to amountamount•
The manual payment amount to be created.
- •ID!required
The ID of the order to create a manual payment for.
- Anchor to paymentMethodNamepayment•
Method Name The name of the payment method used for creating the payment. If none is provided, then the default manual payment method ('Other') will be used.
Was this section helpful?
- Anchor to orderorder•
The order recorded a manual payment.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation orderCreateManualPayment($amount: MoneyInput, $id: ID!, $paymentMethodName: String) {
orderCreateManualPayment(amount: $amount, id: $id, paymentMethodName: $paymentMethodName) {
order {
# Order fields
}
userErrors {
field
message
}
}
}
Input
{
"amount": {
"amount": "29.99",
"currencyCode": ""
},
"id": "gid://shopify/<objectName>/10079785100",
"paymentMethodName": "<your-paymentMethodName>"
}
{
"amount": {
"amount": "29.99",
"currencyCode": ""
},
"id": "gid://shopify/<objectName>/10079785100",
"paymentMethodName": "<your-paymentMethodName>"
}
input MoneyInput {
amount: Decimal!
currencyCode: CurrencyCode!
}