On this page

    1. Home
    2. API
    3. API Reference
    4. Account
    5. Account Points

    Account Points

    This endpoint allows you to view the ledger of reward points earned by your network account. Points are typically awarded for activities such as referral signups or sharing provider resources.


    GET /account/points

    Retrieve a list of all point-earning events associated with the authenticated network.

    Request

    GET /account/points

    Headers:

    {
      "Host": "api.bringyour.com",
      "Authorization": "Bearer YOUR_JWT_TOKEN",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    A successful response returns an object containing an array of point records.

    {
      "network_points": [
        {
          "network_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
          "event": "referral_signup",
          "point_value": 100,
          "create_time": "2025-01-15T08:30:00Z"
        }
      ]
    }

    Fields

    FieldTypeDescription
    network_pointsarrayList of point transactions.
    network_points[].network_idstringUnique identifier (UUID) of the network.
    network_points[].eventstringThe type of activity that earned points.
    network_points[].point_valueintegerThe number of points awarded for this event.
    network_points[].create_timestringISO 8601 timestamp of when the points were awarded.

    Example

    HTTP Request

    GET /account/points HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "network_points": [
        {
          "network_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
          "event": "referral_signup",
          "point_value": 500,
          "create_time": "2025-01-15T08:30:00Z"
        }
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents