Hi,
I have successfully been able to write a .NET Wrapper to communicate with my shop and GET the information I need but I am struggling with POST-ing a Transaction back to my shop from my Client application.
My current situation is that I GET all Authorised Orders from my shop and now want to set each order as Paid using the following JSON String:-
{"transaction": {"kind": "capture"}}
With the following URL:-
https://<APIKey>:<APIPassword>@<MyShop>.myshopify.com/admin/orders/#360890557/transactions.json
I am using the WebRequest and HttpWebResponse classes of .NET and when I POST the above JSON data with the above URL I get a response.StatusDescription of OK from the response Object but the Response Stream returns an HTML Page asking me to Login to my Shop rather that returning the expected Transaction information that has just been POSTed to my Order? Additionally, No Paid transaction is then added to my order?
Can anyone see what’s going wrong or is there a Setting I need to change to allow me to POST Information back to my shop?
Any help would be much appreciated.
Kind regards,
Ian