List memberships
Changed onList memberships of the current user.
Request
- Base URLhttps://api.sumup.com
- URLhttps://api.sumup.com/v0.1/memberships
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.sumup.com/authorizeToken URL: https://api.sumup.com/token scopes: user.profile, user.profile_readonly
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 ID of the resource the membership is in.
Filter memberships by the parent of the resource the membership is in. Omit both resource.parent.id and resource.parent.type to skip parent filtering. When filtering by parent, both parameters must be present. To select resources without a parent, set each parameter to an empty value. Otherwise, both parameters must identify 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. Omit both resource.parent.id and resource.parent.type to skip parent filtering. When filtering by parent, both parameters must be present. To select resources without a parent, set each parameter to an empty value. Otherwise, both parameters must identify 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
}Changes
- info
for the
queryrequest parameterresource.parent.type, the type was generalized from no type tostring
- info
- info
added the new optional
queryrequest parameterresource.id
- info