GET consentRequests?serviceCode={serviceCode}&serviceEditionCode={serviceEditionCode}&direction={direction}&status[0]={status[0]}&status[1]={status[1]}&continuation={continuation}

Gets all consent requests for authenticated part, optionally filtered by service or pagination

Request Information

Parameters

NameDescriptionAdditional information
queryOptions optional filter parameter for OData-filtering

None.

serviceCode optional filter parameter for serviceCode

Define this parameter in the request URI.

serviceEditionCode optional filter parameter for serviceEditionCode

Define this parameter in the request URI.

direction Optional filter parameter for directions (incoming, outgoing). If no direction is specified, both incoming and outgoing requests will be returned

Define this parameter in the request URI.

status optional filter parameter for status

Define this parameter in the request URI.

continuation optional filter parameter for continuationToken

Define this parameter in the request URI.

Response Information

A ConsentRequest with errors if any

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 93"
    }
  },
  "_embedded": {
    "sample string 4": [
      {
        "AuthorizationCode": "92c5bb08-8310-4a8f-9642-05397e888182",
        "RequestStatus": "None",
        "CoveredBy": "sample string 67",
        "OfferedBy": "sample string 53",
        "OfferedByName": "sample string 32",
        "HandledBy": "sample string 34",
        "RequiredDelegator": "sample string 64",
        "RequiredDelegatorName": "sample string 26",
        "ValidTo": "2024-04-19T16:57:14.7030713+02:00",
        "RedirectUrl": "sample string 1",
        "RequestResources": [
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          },
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          },
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          }
        ],
        "RequestMessage": {
          "sample-string-23": "sample string 60",
          "sample-string-34": "sample string 25",
          "sample-string-76": "sample string 96"
        },
        "Errors": [
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          },
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          },
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          }
        ],
        "PortalViewMode": "sample string 99",
        "_links": {
          "self": {
            "href": "sample string 81"
          }
        }
      },
      {
        "AuthorizationCode": "92c5bb08-8310-4a8f-9642-05397e888182",
        "RequestStatus": "None",
        "CoveredBy": "sample string 67",
        "OfferedBy": "sample string 53",
        "OfferedByName": "sample string 32",
        "HandledBy": "sample string 34",
        "RequiredDelegator": "sample string 64",
        "RequiredDelegatorName": "sample string 26",
        "ValidTo": "2024-04-19T16:57:14.7030713+02:00",
        "RedirectUrl": "sample string 1",
        "RequestResources": [
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          },
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          },
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          }
        ],
        "RequestMessage": {
          "sample-string-23": "sample string 60",
          "sample-string-34": "sample string 25",
          "sample-string-76": "sample string 96"
        },
        "Errors": [
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          },
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          },
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          }
        ],
        "PortalViewMode": "sample string 99",
        "_links": {
          "self": {
            "href": "sample string 81"
          }
        }
      },
      {
        "AuthorizationCode": "92c5bb08-8310-4a8f-9642-05397e888182",
        "RequestStatus": "None",
        "CoveredBy": "sample string 67",
        "OfferedBy": "sample string 53",
        "OfferedByName": "sample string 32",
        "HandledBy": "sample string 34",
        "RequiredDelegator": "sample string 64",
        "RequiredDelegatorName": "sample string 26",
        "ValidTo": "2024-04-19T16:57:14.7030713+02:00",
        "RedirectUrl": "sample string 1",
        "RequestResources": [
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          },
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          },
          {
            "ServiceCode": "sample string 62",
            "ServiceEditionCode": 2,
            "AltinnAppId": "sample string 60",
            "Operations": [
              "Read",
              "Read",
              "Read"
            ],
            "Metadata": {
              "sample-string-40": "sample string 37",
              "sample-string-67": "sample string 36"
            }
          }
        ],
        "RequestMessage": {
          "sample-string-23": "sample string 60",
          "sample-string-34": "sample string 25",
          "sample-string-76": "sample string 96"
        },
        "Errors": [
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          },
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          },
          {
            "ErrorCode": "sample string 97",
            "ErrorMessage": "sample string 15"
          }
        ],
        "PortalViewMode": "sample string 99",
        "_links": {
          "self": {
            "href": "sample string 81"
          }
        }
      }
    ]
  },
  "continuationtoken": "sample string 13"
}