Is possible undo a mark as paid a order api post ?

I made a mistake.

I sent through make.com an API request to mark an order as paid, it worked, however I did it 2 times for the same order. Now in the order I receive this Balance (you must be a customer).

Is like the customer pay 2 times

Hey @michaelvips

You should be able to void one of the transactions.

curl -d '{"transaction":{"source":"external","kind":"void","parent_id":{PARENT_ID_HERE}, "amount":"{AMOUNT_HERE}"}}' \
-X POST "https://{SHOP_HERE}.myshopify.com/admin/api/2023-04/orders/{ORDER_ID_HERE}/transactions.json" \
-H "X-Shopify-Access-Token: {ACCESS_TOKEN_HERE}" \
-H "Content-Type: application/json"