Business Members

Return all members for specific business.

Parameters
  • idpath integerRequired

    Return all members by the specific business id. You can retrieve this id from ...

  • includequery string

    Include associations (delimited with comma). Available associations: business, user.

    Example: business,user

  • pagequery integer

    Page offset to fetch.

  • per_pagequery integer

    Number of results to return per page.

GET/api/v1/businesses{id}/members

{
  const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/members`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    }});
  const data = await res.json();
}

RESPONSE

{
  "data": [
    {
      "id": "2249233b-baad-4c67-8914-947b3e5dc06e",
      "type": "members",
      "links": {
        "self": "/members/2249233b-baad-4c67-8914-947b3e5dc06e"
      },
      "attributes": {
        "business-manager": false,
        "email": "aleksandra.bochenska+TFDmember@netguru.com",
        "role": "business_member",
        "status": "pending"
      },
      "relationships": {
        "business": {
          "links": {
            "self": "/members/2249233b-baad-4c67-8914-947b3e5dc06e/relationships/business",
            "related": "/members/2249233b-baad-4c67-8914-947b3e5dc06e/business"
          }
        },
        "user": {
          "links": {
            "self": "/members/2249233b-baad-4c67-8914-947b3e5dc06e/relationships/user",
            "related": "/members/2249233b-baad-4c67-8914-947b3e5dc06e/user"
          }
        }
      }
    }
  ],
  "meta": {
    "total-count": 1,
    "total-pages": 1
  }
}