Skip to content

Retrieve a users redemption stats

Request

Security
BearerAuth
Path
identifierstringrequired
Enum:"id""UID""email"
Example:UID
identifier_valuestringrequired
Example:ABC1234
Bodyapplication/json

If accessing via an organisation level token you will need to provide an organisation_group_id in order to indicate which group the user belongs to.

redemption_created_fromstring
Example:"1970-01-30T00:00:00.000000Z"
redemption_created_tostring
Example:"1970-01-30T00:00:00.000000Z"
curl -i -X POST \
  https://propello-cloud.redocly.app/_mock/openapi/v3/user/stats/UID/ABC1234 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "redemption_created_from": "1970-01-30T00:00:00.000000Z",
    "redemption_created_to": "1970-01-30T00:00:00.000000Z"
  }'

Responses

OK

Bodyapplication/json
statusinteger
Example:200
timestampstring
Example:"1970-01-30T00:00:00.000000Z"
dataobject
Response
{ "status": 200, "timestamp": "1970-01-30T00:00:00.000000Z", "data": { "all_redemptions_count": 5, "egift_face_value": 5, "egift_cost": 5, "order_credit": 5, "egift_savings": 5 } }