Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Consent Manager API provides consent statuses as codes. The codes should be normalized for display in the CMI

The table below maps a given code from a Consent Manager API status code to a CMI status code is mandated.

Consent Manager Status Code

CMI Status Code

1

Rejected (where Rejected consents are returned, as the User identifier has been patched to the consent)

Rejected

2

AwaitingAuthorisation

Awaiting

3

Authorised

Active

4

Suspended

Suspended

5

Revoked

Cancelled

6

Consumed

Consumed

7

Expired

Expired

If a code does not appear in this list it should be normalised based on the following rules:

  • Codes should be split on word boundary. For example “AwaitingAuthorization” becomes “Awaiting Authorization”.

  • Case should be maintained.

  • If the status requires truncation for display purposes the whole of the leftmost word should be returned. For example, “AwaitingAuthorization” becomes “Awaiting”.