POST
/
rewards_programs
/
{id}
/
members
Create a member
curl --request POST \
  --url https://api.pocketflows.com/rewards_programs/{id}/members \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "<string>"
}'
{
  "id": "<string>",
  "user": "<string>",
  "rewards_program": "<string>",
  "point_total": 123,
  "point_balance": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the rewards program

Body

application/json
user_id
string
required

The ID of the user to associate with the new member

Response

200 - application/json

The created Member object

id
string
required

The ID of the member

user
required

The user associated with the member

rewards_program
required

The member's rewards program

point_total
integer
required

The total number of points the member has earned in their lifetime

point_balance
integer
required

The number of points the member currently has