useLoyalty
Api reference

Award Badge

Award a badge to a member

POST/members/{externalId}/badges

Award a badge to a member

AuthorizationBearer <token>

Use your private API key (sk_xxx) as the bearer token

In: header

Path Parameters

externalId*string

Request Body

application/json

badgeId*string
metadata?object

Response Body

application/json

curl -X POST "https://app.useloyalty.app/api/v1/members/string/badges" \  -H "Content-Type: application/json" \  -d '{    "badgeId": "string"  }'
{
  "id": "string",
  "badgeId": "string",
  "name": "string",
  "description": "string",
  "imageUrl": "http://example.com",
  "rarity": "COMMON",
  "earnedAt": "2019-08-24T14:15:22Z"
}
Empty
Empty