notrab / headless-dropshipping-starter

Create your own dropshipping store with Next.js, Snipcart & Printful 👕
https://headlessdropshipping.com
723 stars 135 forks source link

Printful API Key changes #60

Closed notrab closed 2 years ago

notrab commented 2 years ago

Printful are using newer API keys now, so this is a reminder for anyone looking at past issues related to API access that you may need to create a new API key.

ariviom commented 2 years ago

Does this work with the tokens system? New API keys are disabled as of 9/30/22 and I'm getting an error trying to use a token as recommended now by Printful.

Error: {"code":401,"result":"The access token provided is invalid.","error":{"reason":"Unauthorized","message":"The access token provided is invalid."}}

raqibjs commented 2 years ago

Does this work with the tokens system? New API keys are disabled as of 9/30/22 and I'm getting an error trying to use a token as recommended now by Printful.

Error: {"code":401,"result":"The access token provided is invalid.","error":{"reason":"Unauthorized","message":"The access token provided is invalid."}}

Hi @ariviom is it working now? Got any solutions?

notrab commented 2 years ago

I've updated the main branch to use printful-request@2.0.0 which uses the new token format.