Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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
Solved! Go to the solution
This is an accepted solution.
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"
Scott | Developer Advocate @ Shopify
This is an accepted solution.
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"
Scott | Developer Advocate @ Shopify