REST API | American Express

Formatting IP Addresses for Custom Rules

If you create a custom rule using the customer IP address, the IP address requires special formatting.
Decision Manager
normalizes the customer IP address in the API request as follows:
  • For Internet Protocol version 4 (IPv4): by removing leading zeros in any of the octets.
  • For Internet Protocol version 6 (IPv6): by including all eight groups of hexadecimal digits, by removing leading zeros in any of the groups, and by converting all letters to lowercase.
    • Before:
      123A:45cd:0067:89::EF
    • After:
      123a:45cd:67:89:0:0:0:ef
If you create a custom rule using the customer IP address, make sure that you enter it in the custom value field as described above.