Address POST with multiple address lines

Looking at the POST address API endpoint, there is a request property called address_lines with a description of “The address lines” limit 150. If I have an address with multiple lines, what is the format for this field? There are plenty of examples for things like 15 West Market St., but what if I have 21 West Market St., Apt. 21, City, State and I want Apt. 21 to show up on the second line.

The UI gives me a box where I can enter multiple lines separated by a line break.

Comments

  • I believe you use the newline character “\\n” to specify a new line. So Line 1\\nLine 2 becomes:

    Line 1

    Line 2

  • Thanks!


    I did a GET of an address for one that had a line break and it was formatted as line1\\r\\nline2 but I wasn't sure if that was just an encoding on the way out.