We are trying to partially fulfil the order from our integrator.
However, the Shopify payout is deducting the payment when one of the order items get fulfilled by our application.
Later on, the amount is refunded by the Shopify payout.
I am attaching the screenshot of the order history log what is happening on the order.
Suppose there is an Order having Three items.
Subtotal - $240.91
3 items - $167.95
Shipping - $59.94
Tax - $13.02
Total - $240.91
if I have Fulfilled one item and capture the payment of that item which is $69.00
but after the Payment capture then it is automatically one comment comes in order history that
($171.91 USD refund will be deducted from your Aug 17, 2023, payout.)
After that when I am trying to hit the API to capture the Payment. It is giving error that.
The authorized transaction has already been captured.
URL - " https://sbfilters-com.myshopify.com/admin/api/2023-07/orders/5524434714917/transactions.json "
JSON Data -
{“transaction”: {“currency”:“USD”,“amount”:“91.67”,“kind”:“capture”,“parent_id”:6697379201317}}
error
{
“errors”: {
“base”: [
“The authorized transaction has already been captured.”
]
}
}