Post New Contact: Xero changes name field when contains 2 spaces

43 Views Asked by At

When posting a new contact to the Api Endpoint for Contacts (repeated in the API Explorer), Xero changes the name field when it contains two consecutive spaces.

This appears to be unexpected behaviour. Is this a bug?

Steps to repeat in API Explorer:

POST Payload: { "Contacts": [ { "Name": "Bagels - Hawthorn" } ] }

RESPONSE Payload: { ... "Contacts": [ { "Name": "Bagels - Hawthorn", } ] }

(Note the two spaces are now only one space.)

0

There are 0 best solutions below