orderCreateMandatePayment
Requires access scope. Also: The user must have
permission. The API client must be installed on a Shopify Plus store to use the amount field.
Creates a payment for an order by mandate.
Arguments
- Anchor to amountamount•
The payment amount to collect.
- Anchor to autoCaptureauto•
Capture BooleanDefault:true Whether the payment should be authorized or captured. If
false
, then the authorization of the payment is triggered.- •ID!required
The ID of the order to collect the balance for.
- Anchor to idempotencyKeyidempotency•
Key String!required A unique key to identify the payment request.
- Anchor to mandateIdmandate•
Id ID!required The mandate ID used for payment.
- Anchor to paymentScheduleIdpayment•
Schedule Id The ID of the payment schedule to collect the balance for.
Anchor to OrderCreateMandatePaymentPayload returnsOrderCreateMandatePaymentPayload returns
- •
The async job used for charging the payment.
- Anchor to paymentReferenceIdpayment•
Reference Id The Unique ID for the created payment.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Mutation Reference
Input
{
"amount": {
"amount": "29.99",
"currencyCode": ""
},
"autoCapture": true,
"id": "gid://shopify/<objectName>/10079785100",
"idempotencyKey": "<your-idempotencyKey>",
"mandateId": "gid://shopify/<objectName>/10079785100",
"paymentScheduleId": "gid://shopify/<objectName>/10079785100"
}
input MoneyInput {
amount: Decimal!
currencyCode: CurrencyCode!
}