PPylon Developers
ApiStore Credit Administration

List credits for user

Returns a paginated list of store credits for a specific user.

GET
/api/organizer/v1/credits/user/{userId}
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

userId*string
Formatuuid

Query Parameters

page?integer
Default1
Formatint32
pageSize?integer
Default20
Formatint32

Response Body

application/json

application/json

curl -X GET "https://loading/api/organizer/v1/credits/user/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
      "originalAmount": 0.1,
      "remainingBalance": 0.1,
      "currency": "string",
      "source": "string",
      "status": "string",
      "sourceReferenceId": null,
      "expiresAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "lastUsedAt": "2019-08-24T14:15:22Z",
      "issuedBy": null,
      "issueReason": null,
      "revokedReason": null,
      "revokedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "meta": {
    "totalCount": 0,
    "page": 0,
    "pageSize": 0,
    "totalPages": 0,
    "hasNext": true,
    "hasPrevious": true
  },
  "links": null
}
{
  "code": "string",
  "message": "string"
}