Zum Hauptinhalt springen

Return a list of Contracts for the given Customer

GET/customers/{customerId}/contracts/
v2
GET
contract-list-contracts

Request

  • customerIdstring
    required

    The uuid of the Customer from whom all Contracts are to be returned.

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

Return the Contracts that belong to the Customer.

  • Array[
    • *object
      • additionalItemsarray of object
        • Array[
          • *object
            • activationDatestring (date-time)
            • aggregateReferenceobject
              • aggregatestring
                required
              • domainstring
                required
              • idstring
                required
            • articlesarray of object
              required
              • Array[
                • *object
                  • amountinteger (≥ 1)
                    required
                  • articleTemplateIdstring
                    required
                  • descriptionstring
                  • idstring
                    required
                  • namestring
                    required
                  • unitPriceobject
                    required
                    • currency"EUR"
                      required
                    • valueinteger
                      required

                      The value of the price in the smallest currency unit (e.g. cents)

                ]
            • contractPeriodnumber (≥ 0)
              required
            • descriptionstring
              required
            • freeTrialDaysnumber
            • groupByProjectIdstring (uuid)
            • invoiceStopstring (date-time)

              If this attribute is set, the contract item will currently only be invoiced until this date.

            • invoicingPeriodnumber
            • isActivatedboolean
              required
            • isBaseItemboolean
              required
            • isInFreeTrialboolean
            • isInclusiveboolean
            • itemIdstring (uuid)
              required
            • nextPossibleDowngradeDatestring (date-time)

              If this attribute is not set, termination is not allowed.

            • nextPossibleTerminationDatestring (date-time)

              If this attribute is not set, a tariff change is not allowed.

            • nextPossibleUpgradeDatestring (date-time)

              If this attribute is not set, a tariff change is not allowed.

            • orderDatestring (date-time)
            • orderIdstring (uuid)
            • replacedByItemstring (uuid)
            • tariffChangeobject
              • newArticlesarray of object
                required
                • Array[
                  • *object
                    • amountinteger (≥ 1)
                      required
                    • articleTemplateIdstring
                      required
                    • descriptionstring
                    • idstring
                      required
                    • namestring
                      required
                    • unitPriceobject
                      required
                      • currency"EUR"
                        required
                      • valueinteger
                        required

                        The value of the price in the smallest currency unit (e.g. cents)

                  ]
              • scheduledAtDatestring (date-time)
                required
              • scheduledByUserIdstring
              • targetDatestring (date-time)
                required
            • terminationobject
              • cancellationForbiddenboolean

                Indicates whether the User is allowed to cancel the Termination.

              • explanationstring
              • reasonstring
              • scheduledAtDatestring (date-time)
                required
              • scheduledByUserIdstring
              • targetDatestring (date-time)
                required
            • totalPriceobject
              required
              • currency"EUR"
                required
              • valueinteger
                required

                The value of the price in the smallest currency unit (e.g. cents)

          ]
      • baseItemobject
        required
        • activationDatestring (date-time)
        • aggregateReferenceobject
          • aggregatestring
            required
          • domainstring
            required
          • idstring
            required
        • articlesarray of object
          required
          • Array[
            • *object
              • amountinteger (≥ 1)
                required
              • articleTemplateIdstring
                required
              • descriptionstring
              • idstring
                required
              • namestring
                required
              • unitPriceobject
                required
                • currency"EUR"
                  required
                • valueinteger
                  required

                  The value of the price in the smallest currency unit (e.g. cents)

            ]
        • contractPeriodnumber (≥ 0)
          required
        • descriptionstring
          required
        • freeTrialDaysnumber
        • groupByProjectIdstring (uuid)
        • invoiceStopstring (date-time)

          If this attribute is set, the contract item will currently only be invoiced until this date.

        • invoicingPeriodnumber
        • isActivatedboolean
          required
        • isBaseItemboolean
          required
        • isInFreeTrialboolean
        • isInclusiveboolean
        • itemIdstring (uuid)
          required
        • nextPossibleDowngradeDatestring (date-time)

          If this attribute is not set, termination is not allowed.

        • nextPossibleTerminationDatestring (date-time)

          If this attribute is not set, a tariff change is not allowed.

        • nextPossibleUpgradeDatestring (date-time)

          If this attribute is not set, a tariff change is not allowed.

        • orderDatestring (date-time)
        • orderIdstring (uuid)
        • replacedByItemstring (uuid)
        • tariffChangeobject
          • newArticlesarray of object
            required
            • Array[
              • *object
                • amountinteger (≥ 1)
                  required
                • articleTemplateIdstring
                  required
                • descriptionstring
                • idstring
                  required
                • namestring
                  required
                • unitPriceobject
                  required
                  • currency"EUR"
                    required
                  • valueinteger
                    required

                    The value of the price in the smallest currency unit (e.g. cents)

              ]
          • scheduledAtDatestring (date-time)
            required
          • scheduledByUserIdstring
          • targetDatestring (date-time)
            required
        • terminationobject
          • cancellationForbiddenboolean

            Indicates whether the User is allowed to cancel the Termination.

          • explanationstring
          • reasonstring
          • scheduledAtDatestring (date-time)
            required
          • scheduledByUserIdstring
          • targetDatestring (date-time)
            required
        • totalPriceobject
          required
          • currency"EUR"
            required
          • valueinteger
            required

            The value of the price in the smallest currency unit (e.g. cents)

      • contractIdstring (uuid)
        required
      • contractNumberstring
        required
      • customerIdstring
        required
      • terminationobject
        • cancellationForbiddenboolean

          Indicates whether the User is allowed to cancel the Termination.

        • explanationstring
        • reasonstring
        • scheduledAtDatestring (date-time)
          required
        • scheduledByUserIdstring
        • targetDatestring (date-time)
          required
    ]

Usage examples

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