API Documentation
Tokens
Member API
Campaign API
- Campaigns
- CampaignTemplates
- Triggers
Reward API
- Transactions
Webhooks
Users
Get a single user by ID
GET
/
users
/
{id}
curl --request GET \
--url https://userservice-staging.withbenji.com/users/{id} \
--header 'Authorization: Bearer <token>'
{
"user": {
"id": 2,
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"partner_status_tiers": [
{
"id": 2,
"user_id": 2,
"partner_id": 2,
"partner_status_tier_id": 2,
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"total_rewards": 1,
"total_rewards_earned": 1,
"total_rewards_redeemed": 1,
"created_date": "2023-11-07T05:31:56Z"
}
],
"merchants": [
{
"id": 2,
"user_id": 2,
"merchant_id": 2,
"external_id": "<string>",
"total_rewards_earned": 1,
"total_rewards_redeemed": 1,
"created_date": "2023-11-07T05:31:56Z"
}
]
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://userservice-staging.withbenji.com/users/{id} \
--header 'Authorization: Bearer <token>'
{
"user": {
"id": 2,
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"partner_status_tiers": [
{
"id": 2,
"user_id": 2,
"partner_id": 2,
"partner_status_tier_id": 2,
"external_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"total_rewards": 1,
"total_rewards_earned": 1,
"total_rewards_redeemed": 1,
"created_date": "2023-11-07T05:31:56Z"
}
],
"merchants": [
{
"id": 2,
"user_id": 2,
"merchant_id": 2,
"external_id": "<string>",
"total_rewards_earned": 1,
"total_rewards_redeemed": 1,
"created_date": "2023-11-07T05:31:56Z"
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.