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 vendor API key for a JWT token
vk_
vendor
my-store.myshopify.com
{ "success": true, "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 86400, "scope": "vendor", "permissions": [], "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": "vk_x9y8z7w6v5u4..." }'