Print

Set Request Method

API Connector supports the following HTTP request methods: GET, POST, PUT, PATCH, and DELETE. Not all APIs strictly follow this usage, but in general, request methods are defined as follows:

  • GET: retrieve data
  • POST: create data
  • PUT: fully update (i.e. replace) an existing record
  • PATCH: update part of an existing record
  • DELETE: delete records

Each API's technical documentation will tell you which method you need for your request.

When creating a request through the API directory, the request method will be set automatically. When running a custom request, set your request method manually through the dropdown Method menu.

The POST, PUT, and PATCH methods will open up a window where you can enter a request body.


2 thoughts on “Set Request Method”

  1. Hi, we recently installed your app after watching one of your online videos on how to get shopify data sent to Google Sheets. I then learnt that we can also filter the exact data needed and that was very good. So, even though we have not done it yet, we believe that there is a way to create an automation, every day around midnight to retrieve all the orders which have been paid and not fulfilled and display the request fields in a new row.

    Would like to ask it there is any chance to add lines of code that would format it slightly. For example, between every day we leave 2 empty row, and on the third one, the A cell has the date (eg: 09/01/22), then under it the daily orders should be added. Is this possible?

    Also, doesn't seem to be much information about sending data to shopify at given point. We would like a 24hr delay to be created and then request Shopify to ship the order (without the tracking). Is that possible as well?

    Thank you very much!

    Reply
    • Hey Joao, the tool itself is basically just a pipe to the API, so it doesn't provide much in the way of formatting functionality. However, Google Sheets itself is designed for this kind of data transformation. So you can pull your data into one sheet, then do all your custom formatting and arranging in a second sheet, using Sheets functions like VLOOKUP that pull in data exactly the way you like.

      As for sending data, you would need to check Shopify's documentation for the request URL you want. We have a lot of users who send data to Shopify to, say, update product specs. I'm not sure about the 24 hour delay, though, since we don't offer that type of logic around timing. Please feel free to reach out to support to discuss further.

      Reply

Leave a Comment

Jump To