Menu
orderCapture
Captures payment for an authorized transaction on an order. Use this mutation to claim the money that was previously reserved by an authorization transaction.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the orderCapture action (under Order).
- Fill in the fields below, then reference the result from later steps as
{{ordercapture.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation OrderCapture($input: OrderCaptureInput!) {
orderCapture(input: $input) {
transaction {
accountNumber
amount
amountRoundingSet {
presentmentMoney
shopMoney
}
amountSet {
presentmentMoney
shopMoney
}
amountV2 {
amount
currencyCode
}
authorizationCode
authorizationExpiresAt
createdAt
currencyExchangeAdjustment {
adjustment
finalAmountSet
id
originalAmountSet
}
device {
activePaymentSession
cashDrawer
id
}
errorCode
fees {
amount
flatFee
flatFeeName
id
rate
rateName
taxAmount
type
}
formattedGateway
gateway
id
kind
location {
activatable
address
addressVerified
createdAt
deactivatable
deactivatedAt
deletable
fulfillmentService
fulfillsOnlineOrders
hasActiveInventory
hasUnfulfilledOrders
id
isActive
isFulfillmentService
isPrimary
legacyResourceId
localPickupSettingsV2
name
shipsInventory
suggestedAddresses
updatedAt
}
manualPaymentGateway
manuallyCapturable
maximumRefundable
maximumRefundableV2 {
amount
currencyCode
}
multiCapturable
order {
additionalFees
alerts
app
attribution
billingAddress
billingAddressMatchesShippingAddress
canMarkAsPaid
canNotifyCustomer
cancelReason
cancellation
cancelledAt
capturable
cartDiscountAmount
cartDiscountAmountSet
cartToken
channel
channelInformation
checkoutToken
clientIp
closed
closedAt
confirmationNumber
confirmed
createdAt
currencyCode
currentCartDiscountAmountSet
currentShippingPriceSet
currentSubtotalLineItemsQuantity
currentSubtotalPriceSet
currentTaxLines
currentTotalAdditionalFeesSet
currentTotalDiscountsSet
currentTotalDutiesSet
currentTotalPriceSet
currentTotalTaxSet
currentTotalWeight
customAttributes
customer
customerAcceptsMarketing
customerJourney
customerJourneySummary
customerLocale
discountCode
discountCodes
displayAddress
displayFinancialStatus
displayFulfillmentStatus
disputes
dutiesIncluded
edited
email
estimatedTaxes
fulfillable
fulfillmentsCount
fullyPaid
hasTimelineComment
id
landingPageDisplayText
landingPageUrl
legacyResourceId
merchantBusinessEntity
merchantEditable
merchantEditableErrors
merchantOfRecordApp
name
netPayment
netPaymentSet
note
number
originalTotalAdditionalFeesSet
originalTotalDutiesSet
originalTotalPriceSet
paymentCollectionDetails
paymentGatewayNames
paymentTerms
phone
physicalLocation
poNumber
presentmentCurrencyCode
processedAt
productNetwork
publication
purchasingEntity
referralCode
referrerDisplayText
referrerUrl
refundDiscrepancySet
refundable
registeredSourceUrl
requiresShipping
restockable
retailLocation
returnStatus
risk
riskLevel
shippingAddress
shippingLine
shopifyProtect
sourceIdentifier
sourceName
staffMember
subtotalLineItemsQuantity
subtotalPrice
subtotalPriceSet
tags
taxExempt
taxLines
taxesIncluded
test
totalCapturable
totalCapturableSet
totalCashRoundingAdjustment
totalDiscounts
totalDiscountsSet
totalOutstandingSet
totalPrice
totalPriceSet
totalReceived
totalReceivedSet
totalRefunded
totalRefundedSet
totalRefundedShippingSet
totalShippingPrice
totalShippingPriceSet
totalTax
totalTaxSet
totalTipReceived
totalTipReceivedSet
totalWeight
transactionsCount
unpaid
updatedAt
}
parentTransaction
paymentDetails
paymentId
paymentMethod
processedAt
receiptJson
settlementCurrency
settlementCurrencyRate
shopifyPaymentsSet {
extendedAuthorizationSet
refundSet
}
status
test
totalUnsettled
totalUnsettledSet {
presentmentMoney
shopMoney
}
totalUnsettledV2 {
amount
currencyCode
}
user {
accountType
active
email
exists
firstName
id
initials
isShopOwner
lastName
locale
name
phone
privateData
}
}
userErrors {
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"input": {
"id": "string",
"parentTransactionId": "string",
"amount": "string",
"currency": "USD",
"finalCapture": false
}
}
Response
Read the result with {{ordercapture.response.data.data.orderCapture}}. If the API returns errors, the step fails and they are at {{ordercapture.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?