Skip to content

Commit

Permalink
add SSO id to get user request
Browse files Browse the repository at this point in the history
  • Loading branch information
otothea committed Nov 8, 2022
1 parent c030a41 commit 4ee5ef3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/loyalty/admin-documentation/user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ Request
=========== ======== =============================================================================================================
Field Type Description
=========== ======== =============================================================================================================
email string The email address of the user
id [string] The SSO identifier of the user, usually an internal ID from your system (required if no ``email`` included)
email [string] The email address of the user (required if no ``id`` included)
tags string Comma separated list of tag IDs
=========== ======== =============================================================================================================

.. code-block:: js
const response = await axios.get('https://botisimo.com/api/v1/loyalty/admin/user', {
params: {
id: '1234567890',
email: 'joe.someone@example.com',
},
headers: {
Expand All @@ -44,6 +46,7 @@ user.gold number Number of loyalty points the user cur
user.goldTotal number Number of loyalty points the user has earned all time
user.goldSpent number Number of loyalty points the user has spent
user.id number The ID of the user
user.ssoId [string] The SSO identifier of the user
user.loyaltyMembership [object] The membership the user is subscribed to
user.loyaltyMembership.id number The ID of the membership
user.loyaltyMembership.name string The name of the membership
Expand Down

0 comments on commit 4ee5ef3

Please sign in to comment.