Jump to content

Getting taxes in the API


MarkvanDalen

Recommended Posts

Hi,

 

I'm trying to send an order using the API.

Does anyone know how i can get the taxes to calculate the total price of an order?

 

What i can do now:
- create a customer
- create an address
- create a cart
 

I need to return the total price of the order including taxes and different shipping costs.

Can anyone help me with this? 

 

This is all the information i have to place an order
<Order>
    <customer>
        <email>[email protected]</email>
        <firstname>name</firstname>
        <lastname>lastname</lastname>
        <billingAddress>
            <line>somewhere 11</line>
            <city>city</city>
            <county>country</county>
            <zip>1234aa</zip>
            <country>The Netherlands</country>
            <countryCode>NL</countryCode>
        </billingAddress>
        <deliveryAddress>
            <line>somewhere 11</line>
            <city>city</city>
            <county>country</county>
            <zip>1234aa</zip>
            <country>The Netherlands</country>
            <countryCode>NL</countryCode>
        </deliveryAddress>
    </customer>
    <Orderlines>
        <Orderline>
            <productID>2</productID>
            <variantID>10</variantID>
            <quantity>4</quantity>
        </Orderline>
        <Orderline>
            <productID>4</productID>
            <variantID>20</variantID>
            <quantity>3</quantity>
        </Orderline>
    </Orderlines>
<Order>
 
I can get the prices without taxes from the products and calculate the total order costs without taxes. But i can not find a way to couple the taxes to the country where the customer is registered.
 
Can someone please help me with this problem?
I am already trying for hours but i cannot find a request that couple the taxes to a country.
 
Sorry for my bad english :)
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...