Skip to content

Agent Authorisation postcode regex incorrect #145

@ddaddy

Description

@ddaddy

The Agent Authorisation API's Get Status of a Relationship endpoint takes a knownFact param which is the clients postalCode.

It's regex pattern is ^([A-Za-z][A-Za-z]\d\d|[A-Za-z][A-Za-z]\d|[A-Za-z]\d|[A-Za-z]\d\d|[A-Za-z]\d[A-Za-z]|[A-Za-z]{2}\d[A-Za-z]) {0,1}\d[A-Za-z]{2}$ which clearly shows it accepts lowercase letters.

However if I submit the postcode a11 1aa it returns a 400 Bad Request with POSTCODE_FORMAT_INVALID

Whereas A11 1AA is successfully accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions