Zum Hauptinhalt springen

Get all customer profiles the authenticated user has access to

GET/customers/
v2
GET
customer-list-customers

Request

Responses

Response-Header

  • X-Pagination-Limitinteger

    The limit used to select the resources for the response

  • X-Pagination-Skipinteger

    The number of skipped items

  • X-Pagination-Pagenumber

    The calculate page of the list response. Refer to parameters to learn more.

  • X-Pagination-TotalCountinteger

    The total amount of items available in the remote ressource. Use this value in combination with the limit to calculate the available pages.

application/json

The list of customers the authenticated user is a member for

  • Array[
    • *object
      • activeSuspensionobject
        • createdAtstring (date-time)
          required
      • avatarRefIdstring
      • categoryIdstring
      • creationDatestring (date-time)
        required
      • customerIdstring
        required
      • customerNumberstring
        required
      • deletionProhibitedByarray of string (one of: hasOpenInvoices, hasActiveContracts, hasActiveExtensionSubscriptions, isActiveContributor)
        • Array[
          • *string (one of: hasOpenInvoices, hasActiveContracts, hasActiveExtensionSubscriptions, isActiveContributor)
          ]
      • executingUserRolesarray of string (one of: owner, member, accountant)
        • Array[

          the role within a customer

          • *string (one of: owner, member, accountant)

            the role within a customer

          ]
      • flagsarray of string (one of: agency, employee)
        • Array[
          • *string (one of: agency, employee)
          ]
      • isAllowedToPlaceOrdersboolean
      • isBannedboolean
      • isInDefaultOfPaymentboolean
      • levelOfUndeliverableDunningNoticestring (one of: first, second)
      • memberCountinteger (≥ 0)
        required
      • namestring
        required
      • ownerobject
        • addressobject
          required
          • streetstring
            required
          • houseNumberstring
            required
          • citystring
            required
          • zipstring
            required
          • countryCodestring
            required

            ISO 3166-1 alpha-2 country code

          • addressPrefixstring
        • companystring
        • emailAddressstring (email)
        • firstNamestring
        • lastNamestring
        • phoneNumbersarray of string
          • Array[
            • *string
            ]
        • salutationstring (one of: mr, ms, other)
          required
        • titlestring
        • useFormalTermboolean
      • projectCountinteger (≥ 0)
        required
      • vatIdstring
      • vatIdValidationStatestring (one of: valid, invalid, pending, unspecified)
    ]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/customers?role=string&search=string&limit=50&page=1