Search code examples
postmanetsy

Making Etsy OAuth2.0 call via Postman


I am new to Etsy API development and I have been stuck on it for days. I have tried going through the doucmentation to find some resource so that I can make a simple API call (I plan to convert it to code but I want to get it running via Postman to see if it even works).

Please let me know if this is not the right platform and where should I post this? THANK YOU in advance.

Link to docs: https://developers.etsy.com/documentation/reference

I have tried adding headers but it still does not work. What am I doing wrong?

Postman Call


Solution

  • https://developers.etsy.com/documentation/essentials/oauth2

    steps:

    1. First create the app : https://www.etsy.com/developers/register

    2. Now add call back URL by editing the app: https://www.etsy.com/developers/your-apps , go here and click the app name then scroll down and edit call back url :

    enter image description here

    and add below url: https://oauth.pstmn.io/v1/callback

    If you cannot access the page to edit, look at the URL. If it reads "etsy.com/au/%20/developers/edit..." then delete "/%20" and retry.

    1. now add below informations:
    Token Name : any name
    Grant Type: Authorization COde PKE
    Callback URL : https://oauth.pstmn.io/v1/callback ( keep authroize using browser unchecked)
    auth url: https://www.etsy.com/oauth/connect
    Access Token URL: https://api.etsy.com/v3/public/oauth/token
    Client ID: Your appi KEYSTRING
    Client Secret: YOUR app secret
    Code Challenge Method: SHA256
    Code Verifier: leave blank
    Scope: scope eg: transactions_r (if using multiple scopes, separate each with a space, not with "%20" as the documentation says)
    State: superstate
    Client Authentication: Send Client Credentials in body
    

    secret and keystring :

    enter image description here

    Final configuration:

    enter image description here