Zum Hauptinhalt springen

Get all customer profiles the authenticated user has access to

GET /v2/customers/
v2
GET
customer-list-customers

Request

Responses

Response-Header

  • X-Pagination-Limitnumber

    The limit used to select the resources for the response

  • X-Pagination-Skipnumber

    The number of skipped items

  • X-Pagination-Pagenumber

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

  • X-Pagination-TotalCountnumber

    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
    • executingUserRolesarray of string (one of: owner, member, accountant)
      • Array[
      • *string (one of: owner, member, accountant)

        the role within a customer

      • ]
  • isBannedboolean
  • isInDefaultOfPaymentboolean
  • 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