Capturing payment manually
To capture payment for an order, call the orderPaymentCapture mutation, passing the orderId as an input parameter.
1
mutation manualCapture {2
orderPaymentCapture(3
input: { orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc" }4
) {5
id6
charges {7
id8
paymentStatus9
}10
}11
}Verifying payment status
An order can have one of the following statuses:
- UNPAID
- PAID
- PARTIALLY_REFUNDED
- REFUNDED
- VOIDED
After you have called to capture payment, you can query the order to see that the payment status for the order has changed to PAID.
1
query order {2
order(orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc") {3
id4
charges {5
id6
paymentStatus7
}8
}9
}GraphQL API ReferenceTypes, inputs, and operations used in this guide
MUTATIONS
Manual payment capture
Capture payments on demand when fulfilling orders outside of the Zonos Dashboard.
When delayed payment capture is enabled, Zonos automatically captures payment three days after an order is placed or until the order is shipped from the Zonos Dashboard.
If you're fulfilling orders outside of the Dashboard, you can use our
orderPaymentCapturemutation to capture payment before the 3 day delay period or before the order is shipped, whichever comes first.