Solved! Go to Solution.
Hi @lorigergely,
I've made a test with a vanilla installation.
Customer without TaxVatAs you can see my customer doesn't have the TaxVat.
I've made a SOAP request and this was the response.
SOAP API response without taxvat
Customer without TaxVat.
Then I've edited my customer and I've added some TaxVat value.
Customer with TaxVat
The new response was:
SOAP API response with taxvat
Then I've checked addresses.
For example, the default billing address of that customer.
Address without TaxVat
As you can see, the response came without taxvat (and that was right).
SOAP API response without taxvat
Then I've edited the address and I've added some value on the TaxVat attribute.
Address with TaxVat
And the new api response was correct.
SOAP API response with taxvat
Finally, this is my current Customer configuration. Is default.
Customer configuration
And the code was:
<?php ini_set('max_execution_time','1000'); set_time_limit(0); $client = new SoapClient("http://www.yourdomain.com/index.php/api/?wsdl"); try { //Login $session = $client->login("username", "password"); //Listado de países //1 is the customer address ID $result = $client->call($session, 'customer_address.info', '1'); echo "<pre>"; print_r($result); echo "</pre>"; } catch (SoapFault $exception) { echo "There were an error on your request\n\n"; echo "Code: " . $exception->faultcode . "\n"; echo "Message: " . $exception->faultstring . "\n"; } //Logout $client->endSession($session);
(Of course, this is dummy code just for test)
Thank you for your reply.
How we can check if the taxvat field is enabled? or how we can enable?
Here's a screenshot about the field we can't find.
Hi @lorigergely,
I've made a test with a vanilla installation.
Customer without TaxVatAs you can see my customer doesn't have the TaxVat.
I've made a SOAP request and this was the response.
SOAP API response without taxvat
Customer without TaxVat.
Then I've edited my customer and I've added some TaxVat value.
Customer with TaxVat
The new response was:
SOAP API response with taxvat
Then I've checked addresses.
For example, the default billing address of that customer.
Address without TaxVat
As you can see, the response came without taxvat (and that was right).
SOAP API response without taxvat
Then I've edited the address and I've added some value on the TaxVat attribute.
Address with TaxVat
And the new api response was correct.
SOAP API response with taxvat
Finally, this is my current Customer configuration. Is default.
Customer configuration
And the code was:
<?php ini_set('max_execution_time','1000'); set_time_limit(0); $client = new SoapClient("http://www.yourdomain.com/index.php/api/?wsdl"); try { //Login $session = $client->login("username", "password"); //Listado de países //1 is the customer address ID $result = $client->call($session, 'customer_address.info', '1'); echo "<pre>"; print_r($result); echo "</pre>"; } catch (SoapFault $exception) { echo "There were an error on your request\n\n"; echo "Code: " . $exception->faultcode . "\n"; echo "Message: " . $exception->faultstring . "\n"; } //Logout $client->endSession($session);
(Of course, this is dummy code just for test)
Thank you very much for your reply! It helped a lot.