Вопрос

My task is to upload an invoice to UK QuickBooks Online.

I always get an error: "You must select a product/service or an account for each split line with either an amount or a billable $$customer$$."

My XML request:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:ns2="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:ns3="http://www.intuit.com/sb/cdm/qbo">
<Header>
    <TxnDate>2013-11-30</TxnDate>
    <CustomerId idDomain="QBO">1</CustomerId>
    <TaxAmt>6.8</TaxAmt>
    <BillAddr>
        <Line1>Alex</Line1>
        <Line2>Test</Line2>
        <Line3>Prague</Line3>
    </BillAddr>
    <ShipAddr>
        <Line1>Test</Line1>
        <Line2>Prague</Line2>
    </ShipAddr>
    <BillEmail></BillEmail>
    <DiscountTaxable>false</DiscountTaxable>
</Header>
<Line>
    <Desc>Internet connection</Desc>
    <Amount>34</Amount>
    <Taxable>true</Taxable>
    <ItemId>3</ItemId>
    <UnitPrice>34</UnitPrice>
    <Qty>1.00</Qty>
</Line>

How can I solve this problem? Thanks.

Это было полезно?

Решение

It looks like you're using the v2 APIs, which only support the USA QuickBooks Online editions.

Have you tried using the v3 APIs, which use a global tax model which supports what you're trying to do?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top