HTTP status 422. An API key request can get this code.
PerfectRx cannot print a character in the practice name or address, the practice name exceeds 100 characters, the combined address lines exceed 70 characters, or address.line2 is see notes, TBD or unknown.
Recovery
The message names each affected field and its problem, such as name: PerfectRx requires practice names to be 100 characters or fewer. issues lists the same fields. For a name over 100 characters, shorten the name to 100 characters or fewer. For address.line1 or address.line2, the length message is: PerfectRx requires address lines 1 and 2 to total 70 characters or fewer. Shorten the combined address lines to meet this limit. For address.line2 of see notes, TBD or unknown, send the suite or omit line2. For an unsupported character, use Windows-1252 text. Replace raw < and > with words. Affinity normalizes the transmission copy to NFC and keeps stored text unchanged. Correct the practice details and retry.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.