We would like to confirm that you need to make sure the customer data via API should have the format as below: 

If there's anything else we can do for you, please feel free to let us know.