Zum Hauptinhalt springen

List Memberships belonging to a Customer

GET/customers/{customerId}/memberships/
v2
GET
customer-list-memberships-for-customer

Request

  • customerIdstring
    required

    Customer to list memberships for.

Responses

Response-Header

  • X-Pagination-Limitinteger
  • X-Pagination-Skipinteger
  • X-Pagination-TotalCountinteger
application/json

OK

  • Array[
    • *object
      • avatarRefstring (uuid)

        Avatar file reference id of the user.

      • customerIdstring (uuid)
        required

        ID of the Customer the CustomerMembership is for.

      • emailstring (email)
        required

        Email used by the invited user.

      • expiresAtstring (date-time)

        Time the CustomerMembership should expire at.

      • firstNamestring
        required

        First name of the user.

      • idstring (uuid)
        required

        ID of the CustomerMembership.

      • inviteIdstring (uuid)

        ID of the CustomerInvite the membership was created from.

      • lastNamestring
        required

        Last name of the user.

      • memberSincestring (date-time)

        Date the CustomerMembership was created at.

      • mfaboolean
        required

        MFA activated by the user.

      • rolestring (one of: notset, owner, member, accountant)
        required
      • userIdstring (uuid)
        required

        ID of the user the CustomerMembership is for.

    ]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/customers/string/memberships?limit=50&hasExpiry=true&role=notset