List all active Orders

GET /v1/Orders/customers/{customerId}

Returns a list of this customers active orders. This includes all orders that do not have the status Completed. The orders are returned sorted by the specified created date, with the most recent orders appearing first.

Headers

  • X-Tenant string Required

    The domain used to access the portal.

  • Authorization string Required

    JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

    Default value is Bearer eyJ0eXAiO....

  • X-Correlation-Id string(UUID)

    This header is optional and by setting it you can correlate the audit logs made by this request.

Path parameters

  • customerId string(uuid) Required

    The GUID identifier for the customer.

Query parameters

  • pageNumber integer(int32)

    A cursor for pagination across multiple pages of results. The default value is 1.

  • pageSize integer(int32)

    The number of objects to be returned at each page. The size can range between 1 and 2000, and the default is 25.

  • The name of the property to sort the orders by. Currently no possible values.

  • if set to true [ascending order].

  • resellerId string(uuid)

    The GUID identifier for the reseller.

Responses

GET /v1/Orders/customers/{customerId}
curl \
 -X GET https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/Orders/customers/{customerId} \
 -H "X-Tenant: portal.cloudcockpit.com" \
 -H "Authorization: Bearer eyJ0eXAiO..." \
 -H "X-Correlation-Id: string"
Response examples (200)
{
  "items": [
    {
      "id": "string",
      "offerId": "string",
      "customerId": "string",
      "resellerId": "string",
      "providerInstanceId": "string",
      "subscriptionName": "string",
      "termDuration": {
        "name": "string"
      },
      "billingFrequency": {
        "name": "string"
      },
      "segment": {
        "name": "string"
      },
      "operation": {
        "name": "string"
      },
      "quantity": 42,
      "subscriptionMargin": {
        "marginRule": {
          "name": "string"
        },
        "value": 8
      },
      "subscriptionInternalId": "string",
      "poNumber": "string",
      "autoRenewEnabled": true,
      "status": {
        "name": "string"
      },
      "createdDate": "2024-05-04T09:42:00+00:00",
      "providerData": "string",
      "parentSubscriptionId": "string",
      "errorMessage": "string"
    }
  ],
  "paginationParameters": {
    "pageNumber": 42,
    "pageSize": 42
  },
  "totalPages": 42,
  "totalCount": 42,
  "hasPreviousPage": true,
  "hasNextPage": true,
  "continuationToken": "string"
}
Response examples (200)
{
  "items": [
    {
      "id": "string",
      "offerId": "string",
      "customerId": "string",
      "resellerId": "string",
      "providerInstanceId": "string",
      "subscriptionName": "string",
      "termDuration": {
        "name": "string"
      },
      "billingFrequency": {
        "name": "string"
      },
      "segment": {
        "name": "string"
      },
      "operation": {
        "name": "string"
      },
      "quantity": 42,
      "subscriptionMargin": {
        "marginRule": {
          "name": "string"
        },
        "value": 8
      },
      "subscriptionInternalId": "string",
      "poNumber": "string",
      "autoRenewEnabled": true,
      "status": {
        "name": "string"
      },
      "createdDate": "2024-05-04T09:42:00+00:00",
      "providerData": "string",
      "parentSubscriptionId": "string",
      "errorMessage": "string"
    }
  ],
  "paginationParameters": {
    "pageNumber": 42,
    "pageSize": 42
  },
  "totalPages": 42,
  "totalCount": 42,
  "hasPreviousPage": true,
  "hasNextPage": true,
  "continuationToken": "string"
}
Response examples (400)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (400)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}