Solved

Refresh Token Private App

Paddy3000
Shopify Partner
16 0 2

Hello folks,

what's the refresh token for?

Do I actually need it for making requests from my own Server to the REST API?

 

Thanks a lot in advance,

all the best,

Patrick

Accepted Solution (1)

Liam
Shopify Staff
2731 302 783

This is an accepted solution.

Hi Paddy,

 

Refresh tokens are temporary tokens that you can use when rotating client credentials - you shouldn't need it for regular requests to your server. There's more info on the usecase for refresh tokens on our docs

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Liam
Shopify Staff
2731 302 783

This is an accepted solution.

Hi Paddy,

 

Refresh tokens are temporary tokens that you can use when rotating client credentials - you shouldn't need it for regular requests to your server. There's more info on the usecase for refresh tokens on our docs

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Paddy3000
Shopify Partner
16 0 2

Hey Liam, thanks a lot for your response!

Could you tell me, which credentials I need to make a POST request from my Server to my Admin API private app? GET-Requests seem to work fine, but when trying to use POST, I regularly receive a

 uploadCategoriesSFY:{
  "responseCode": 400,
  "errorResponse": "{\"errors\":{\"custom_collection\":\"Required parameter missing or invalid\"}}"
}

 ....whether I use my X-Shopify-Access-Token or Basic Authentication.

I have no clue, what's going wrong.

Thanks a lot!

All the best

Patrick