When I insert an order for the final consumer, I enter the name and address of the client in that document ie based on C # code using your API and from what I could understand it should be something like
GcpBEDocumentoVenda invoice = new GcpBEDocumentoVenda();
try
{
invoice.set_Tipodoc(<DocumentoEncomenda>);
invoice.set_Entidade(<ClientID>);
invoice.set_TipoEntidade("C");
invoice.set_Serie(<DocumentoSerie>);
invoice.set_DataDescarga(<CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")>);
invoice.set_Observacoes(order.Observations);
invoice.set_MoradaEntrega(<order.ShipToInfo.Address1>);
invoice.set_DataDoc(DateTime.Parse(String.Format("{0:yyyy-MM-dd HH:mm:ss}", CreatedOn)));
invoice.set_Morada(<Address>);
invoice.set_NomeEntrega(<Name>);
invoice.set_Localidade(<City>);
invoice.set_CodigoPostal(<ZipCode>);
invoice.set_LocalidadeCodigoPostal(<City>);
Engine.Comercial.Vendas.PreencheDadosRelacionados(invoice);
If you put the parameter invoice.set_NomeEntrega(<Name>);
the function gives an error stating that the
All other parameters do not make any results in the order
If after this call the methods get always returns a null
If you create the order directly in the spring this lets you enter this data as you would create a final consumer order with data.