cURL
curl --request GET \ --url https://api.puppetvendors.com/v2/vendors/{vendorId}/address \ --header 'x-access-token: <api-key>'
Retrieve a vendor’s address information
{ "success": true, "data": { "address": { "address1": "123 High Street", "address2": "Suite 4B", "city": "London", "state": "England", "country": "United Kingdom", "zip": "SW1A 1AA", "phone": "+44 20 7946 0958" } } }
{ "success": false, "error": { "message": "Vendor not found", "code": "NOT_FOUND" } }
curl -X GET https://api.puppetvendors.com/v2/vendors/507f1f77bcf86cd799439011/address \ -H "x-access-token: YOUR_JWT_TOKEN"