java - Quickbooks Desktop: Billable status is not applicable for the specified Account type -
i have attempted submit following request content quickbooks desktop using v3 qb rest api
<?xml version="1.0" encoding="utf-8"?> <ns0:purchase xmlns:ns0="http://schema.intuit.com/finance/v3" domain="qb"> <ns0:txndate>2014-03-10</ns0:txndate> <ns0:privatenote>report qbd</ns0:privatenote> <ns0:line> <ns0:description>60000 advertising , promotion</ns0:description> <ns0:amount>10.00</ns0:amount> <ns0:detailtype>accountbasedexpenselinedetail</ns0:detailtype> <ns0:accountbasedexpenselinedetail> <ns0:customerref name="toeic">qb:17</ns0:customerref> <ns0:accountref name="advertising , promotion">qb:7</ns0:accountref> <ns0:billablestatus>notbillable</ns0:billablestatus> <ns0:taxcoderef>non</ns0:taxcoderef> </ns0:accountbasedexpenselinedetail> </ns0:line> <ns0:line> <ns0:description>12100 inventory asset</ns0:description> <ns0:amount>4.00</ns0:amount> <ns0:detailtype>accountbasedexpenselinedetail</ns0:detailtype> <ns0:accountbasedexpenselinedetail> <ns0:customerref name="future press">qb:14</ns0:customerref> <ns0:accountref name="inventory asset">qb:31</ns0:accountref> <ns0:billablestatus>notbillable</ns0:billablestatus> <ns0:taxcoderef>non</ns0:taxcoderef> </ns0:accountbasedexpenselinedetail> </ns0:line> <ns0:line> <ns0:description>50000 cost of goods sold</ns0:description> <ns0:amount>5.00</ns0:amount> <ns0:detailtype>accountbasedexpenselinedetail</ns0:detailtype> <ns0:accountbasedexpenselinedetail> <ns0:customerref name="pawn shop chronicles">qb:19</ns0:customerref> <ns0:accountref name="automobile expense">qb:8</ns0:accountref> <ns0:billablestatus>notbillable</ns0:billablestatus> <ns0:taxcoderef>non</ns0:taxcoderef> </ns0:accountbasedexpenselinedetail> </ns0:line> <ns0:accountref name="my bank account">qb:30</ns0:accountref> <ns0:paymenttype>check</ns0:paymenttype> <ns0:entityref name="expensecloud">qb:5</ns0:entityref> <ns0:totalamt>19.00</ns0:totalamt> </ns0:purchase>
there item account=inventory asset(account type other current asset) marked notbillable. since can submit request content using java api v2 quickbooks desktop , works well. now, error operation failed errors: billable status not applicable specified account type.
however, can duplicate directly transaction in quickbooks desktop application without error. i'm trying solve nothing guess problem of qb api.
please advice. thanks
please see docs here- https://developer.intuit.com/docs/95_legacy/qbd_v3/qbd_v3_reference/030_entity_services_reference/purchase billable status applicable when there customerref passed in request , applicable specific account types: 1. expense 2. other expense 3. cost of goods sold
please check if account types match above.
Comments
Post a Comment