Anchor to orderCreateMandatePaymentorder
orderCreateMandatePayment
mutation
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.
Anchor to Arguments
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.
Was this section helpful?
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.
Was this section helpful?
Mutation Reference
1mutation orderCreateMandatePayment($amount: MoneyInput, $autoCapture: Boolean, $id: ID!, $idempotencyKey: String!, $mandateId: ID!, $paymentScheduleId: ID) {2 orderCreateMandatePayment(amount: $amount, autoCapture: $autoCapture, id: $id, idempotencyKey: $idempotencyKey, mandateId: $mandateId, paymentScheduleId: $paymentScheduleId) {3 job {4 # Job fields5 }6 paymentReferenceId7 userErrors {8 field9 message10 }11 }12}
Input
1{2 "amount": {3 "amount": "29.99",4 "currencyCode": ""5 },6 "autoCapture": true,7 "id": "gid://shopify/<objectName>/10079785100",8 "idempotencyKey": "<your-idempotencyKey>",9 "mandateId": "gid://shopify/<objectName>/10079785100",10 "paymentScheduleId": "gid://shopify/<objectName>/10079785100"11}
{
"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!
}