I am trying to add a new customer, complete with address and contact details with the REST API and PHP. ERPnext has one table/DocType for customer, one for address, one for contact.
So far I have succeeded in adding a new customer record (no address or contact details) and a new address record separately, all via REST API, but I cannot link the two (customer and address) together.
The “Customer” DocType has the field “address_html” which does not reflect the linked address.
There is no address link table in the DocType. The “Address” DocType does not have a customer link field.
How can this be done with the REST API? How can one link two records on different DocTypes with REST API?