JTSmith Posted November 10, 2017 Posted November 10, 2017 OK, I'm using FM16 and trying to figure out an API call. I'm not an expert when it comes to APIs. I have a shopify store, and I can use Insert from URL to get the JSON info on each order. I want to be able to "PUT" and upload parts of the order. Every order has a "Note" field that I can add notes. Per the shopify API documentation, to add an order note, you do the following: Add Note to order PUT /admin/orders/#{id}.json { "order": { "id": 450789469, "note": "Customer contacted us about a custom engraving on this iPod" } } Can someone help me with what I put in the cURL options area? Any help would be appreciated. I think I have the URL and Target figured out. Thank you!!
dansmith65 Posted November 10, 2017 Posted November 10, 2017 Save your json to a variable, like $requestData, then add this curl option: --data @$requestData Here is a useful post on the topic: https://community.filemaker.com/docs/DOC-8025 1
Recommended Posts
This topic is 2835 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now