Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

How can I add new transcation to Order or update existing one by using API from C#? by Erinc Erol

$
0
0

Hi,

So, I'm creating an order using shopify API from C# with one transaction. After that, I want to add new transaction or update the existing one. I guess updating is not an option but adding new one is also solves my problems. But while I'm trying to add new one to order I get 422 Unprocessible error.

What I do is, I get the order id, create new transaction json, "{\"transaction\":{\"kind\":\"capture\"}}" like this and try to post it to the shopUrl/admin/orders/#{id}/transactions.json.

I'm creating json data same as in the documentations, using application/json header and everything and been stuck at this problem almost 3 days now. I really can use some help.

 

Thanks.


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>