cURL
curl --request POST \ --url https://api.puppetvendors.com/v2/authenticate \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "apiKey": "<string>", "shopDomain": "<string>" } '
Exchange your merchant API key for a JWT token
merchant
my-store.myshopify.com
{ "success": true, "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 86400, "scope": "merchant", "permissions": ["admin:users", "admin:vendors"], "shopDomain": "my-store.myshopify.com" } }
{ "success": false, "error": { "message": "Invalid API key", "code": "UNAUTHORIZED" } }
curl -X POST https://api.puppetvendors.com/v2/authenticate \ -H "Content-Type: application/json" \ -d '{ "apiKey": "a1b2c3d4e5f6..." }'