cURL
curl --request POST \ --url https://api.puppetvendors.com/v2/refresh-token \ --header 'x-access-token: <api-key>'
Exchange a valid merchant token for a new one with extended expiry
merchant
x-access-token
{ "success": true, "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 86400, "shopDomain": "my-store.myshopify.com" } }
{ "success": false, "error": { "message": "Invalid or expired token", "code": "UNAUTHORIZED" } }
curl -X POST https://api.puppetvendors.com/v2/refresh-token \ -H "x-access-token: YOUR_MERCHANT_TOKEN"