Skip to end of banner
Go to start of banner

Get list of requests

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

This API call allows you to retrieve a list of onboarding requests. The request can include various parameters to filter and sort the results according to your needs.

Endpoint

  • URL: /requests

  • Method: GET

Headers

Ensure you include the following headers in your request:

  • Accept: application/json

  • X-Api-Key: YOUR_API_KEY (replace YOUR_API_KEY with your actual API key)

Parameters

  • sort (optional): Specify the field to sort by and the order (asc or desc). Example: createdAt,desc

  • page (optional): Page number starting at 0. Example: 0

  • size (optional): Number of items per page. Example: 10

  • status (optional): Filter requests by their current status. Example: RUNNING

  • referenceId (optional): Filter requests by their reference ID. Example: order-1234-0002

Responses

  • 200 OK

    • Description: The fetched requests.

    • Example Response:

      {
        "content": [
          {
            "id": "123e4567-e89b-12d3-a456-426614174001",
            "organizationId": "123e4567-e89b-12d3-a456-426614174002",
            "status": "RUNNING",
            "referenceId": "order-1234-0002",
            "requestTypeId": "123e4567-e89b-12d3-a456-426614174000",
            "createdAt": "2024-10-29T17:42:16Z",
            "updatedAt": "2024-10-29T17:42:16Z",
            "finalizedAt": null,
            "expireAfter": "2024-11-29T17:42:16Z"
          }
        ],
        "page": {
          "size": 10,
          "totalElements": 1,
          "totalPages": 1,
          "number": 0
        }
      }
  • 400 Bad Request

    • Description: Bad Request described following Problem Details (RFC 9457).

    • Example Response:

      {
        "type": "about:blank",
        "status": 400,
        "title": "Request validation error",
        "detail": "The has a malformed query parameter.",
        "instance": "urn:uuid:123e4567-e89b-12d3-a456-426614174000?ts=1729667463",
        "retryable": false,
        "errors": [
          {
            "detail": "Parameter 'sort' is not valid.",
            "pointer": "/sort",
            "field": "sort",
            "reason": "invalid"
          }
        ]
      }

  • No labels