Sub-resources of points

All available methods for the sub-resources of the resource points.


Get a collection of purchases

Get information about all purchases by points resource
[badge-blue GET] /points/{point_id}/purchases

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
purchases Purchase[] List of purchases
total_items integer Count of all found purchases

Example Request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/points/80c8c7649d5e136f8a30a482d9/purchases
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: BasZW50ZXJwcmlzZVcmZhY2U6YmVlZDA2ZjBmYhTEyUwOWIzNzk2ZjMODEEyZTIxNmVkMM5NDE5Zj2NzMwZmRj2wmYw==

Example response

HTTP/1.1 200 OK
Date: Tue, 29 Sep 2020 14:53:23 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "purchases": [],
    "total_items": 0
  }
}