SumUp · Schema

Membership

A membership associates a user with a resource, memberships is defined by user, resource, resource type, and associated roles.

PaymentsPoint-of-SaleCard ReadersCheckoutFintechMobile PaymentsOnline Payments

Properties

Name Type Description
id string ID of the membership.
resource_id string ID of the resource the membership is in.
type object
roles array User's roles.
permissions array User's permissions.
created_at string The timestamp of when the membership was created.
updated_at string The timestamp of when the membership was last updated.
invite object
status object
metadata object
attributes object
resource object
View JSON Schema on GitHub

JSON Schema

membership.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Membership",
  "description": "A membership associates a user with a resource, memberships is defined by user, resource, resource type, and associated roles.",
  "type": "object",
  "properties": {
    "id": {
      "description": "ID of the membership.",
      "type": "string",
      "example": "mem_WZsm7QTPhVrompscmPhoGTXXcrd58fr9MOhP"
    },
    "resource_id": {
      "description": "ID of the resource the membership is in.",
      "type": "string",
      "example": "M2DDT39A"
    },
    "type": {
      "$ref": "#/components/schemas/ResourceType"
    },
    "roles": {
      "description": "User's roles.",
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "role_admin"
      ]
    },
    "permissions": {
      "description": "User's permissions.",
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "members_read",
        "members_write",
        "create_moto_payments",
        "full_transaction_history_view",
        "refund_transactions",
        "create_referral",
        "developer_settings_edit",
        "developer_settings_access"
      ],
      "deprecated": true,
      "x-deprecation-notice": "Permissions include only legacy permissions, please use roles instead. Member access is based on their roles within a given resource and the permissions these roles grant."
    },
    "created_at": {
      "description": "The timestamp of when the membership was created.",
      "type": "string",
      "format": "date-time",
      "example": "2023-01-20T15:16:17+00:00"
    },
    "updated_at": {
      "description": "The timestamp of when the membership was last updated.",
      "type": "string",
      "format": "date-time",
      "example": "2023-01-20T15:16:17+00:00"
    },
    "invite": {
      "$ref": "#/components/schemas/Invite"
    },
    "status": {
      "$ref": "#/components/schemas/MembershipStatus"
    },
    "metadata": {
      "$ref": "#/components/schemas/Metadata"
    },
    "attributes": {
      "$ref": "#/components/schemas/Attributes"
    },
    "resource": {
      "$ref": "#/components/schemas/MembershipResource"
    }
  },
  "required": [
    "id",
    "resource_id",
    "type",
    "roles",
    "permissions",
    "created_at",
    "updated_at",
    "status",
    "resource"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/membership"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.