List memberships
List memberships of the current user.
Query parameters
Offset of the first member to return.
Maximum number of members to return.
The type of the membership resource. Possible values are:
- merchant - merchant account(s)
- organization - organization(s)
Filter memberships by resource kind.
The status of the membership.
Filter the returned memberships by the membership status.
The type of the membership resource. Possible values are:
- merchant - merchant account(s)
- organization - organization(s)
Filter memberships by resource kind.
Filter memberships by the sandbox status of the resource the membership is in.
Filter memberships by the name of the resource the membership is in.
Filter memberships by the parent of the resource the membership is in. When filtering by parent both resource.parent.id and resource.parent.type must be present. Pass explicit null to filter for resources without a parent.
The type of the membership resource. Possible values are:
- merchant - merchant account(s)
- organization - organization(s)
Filter memberships by the parent of the resource the membership is in. When filtering by parent both resource.parent.id and resource.parent.type must be present. Pass explicit null to filter for resources without a parent.
Filter the returned memberships by role.
[ "role_employee", "role_accountant" ]
Response
Returns a list of Membership objects.
Example response
{
"items": [
{
"id": "mem_WZsm7QTPhVrompscmPhoGTXXcrd58fr9MOhP",
"resource_id": "M2DDT39A",
"type": "merchant",
"roles": [
"role_admin"
],
"permissions": [
"members_read",
"members_write",
"create_moto_payments",
"full_transaction_history_view",
"refund_transactions",
"create_referral",
"developer_settings_edit",
"developer_settings_access"
],
"created_at": "2023-01-20T15:16:17Z",
"updated_at": "2023-01-20T15:16:17Z",
"invite": {
"email": "boaty.mcboatface@sumup.com",
"expires_at": "2023-01-20T15:16:17Z"
},
"metadata": {},
"attributes": {},
"resource": {
"id": "M2DDT39A",
"type": "merchant",
"name": "Acme Corp",
"logo": "https://images.sumup.com/img_2x4y6z8a0b1c2d3e4f5g6h7j8k.png",
"created_at": "2023-01-20T15:16:17Z",
"updated_at": "2023-01-20T15:16:17Z",
"attributes": {}
}
}
],
"total_count": 3
}