List a member's card grants
/v1/businesses/{id}/memberships/{membershipId}/card-grantsRequires an API client bearer token.
Lists the membership's card grants, oldest first, each with its card's id once a card is issued under it. An API client names its acting person in X-Rigid-Acting-Person (400 acting_person_required without it); the person must hold an active membership of the business and be the member, or hold can_view_all_cards, else 403 acting_person_not_permitted; reading another member's grants also re-checks that admin's KYC (403 admin_kyc_not_complete once it no longer holds). Every read writes one business.read audit intent with the decision. While the `business-cards` release flag is off for the caller's mode this route answers 404, as if absent.
Parameters
Path parameters
| Name | Required | Description |
|---|---|---|
| id | required | |
| membershipId | required |
Query parameters
| Name | Required | Description |
|---|---|---|
| limit | optional | |
| starting_after | optional |
Header parameters
| Name | Required | Description |
|---|---|---|
| X-Rigid-Acting-Person | optional |
Example
curl https://api.rigid.fi/v1/businesses/{id}/memberships/{membershipId}/card-grants \
-H "Authorization: Bearer $RIGID_API_TOKEN"Responses
200The membership's grants.
+ show properties− hide properties
+ show properties− hide properties
One of
Option 1
{
"type": "string",
"enum": [
"revoked",
"expired",
"membership_removed",
"business_closed"
]
}Option 2
{
"type": "null"
}Option 3
{
"type": "null"
}400Validation error
401Authentication required
403The acting person is not permitted (acting_person_not_permitted), or an admin whose KYC no longer holds reads another member's grants (admin_kyc_not_complete)
404Business or membership not found, or the business routes are not released
500Internal server error