ItemServiceAdd qbXML example
Adds a service item: work you sell, posted to an income account.
qbXML
ItemServiceAddRq, version 16.0
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ItemServiceAddRq>
<ItemServiceAdd>
<Name>Consulting</Name>
<SalesOrPurchase>
<Desc>Consulting, per hour</Desc>
<Price>150.00</Price>
<AccountRef>
<FullName>Consulting Income</FullName>
</AccountRef>
</SalesOrPurchase>
</ItemServiceAdd>
</ItemServiceAddRq>
</QBXMLMsgsRq>
</QBXML>
Open in the validator
Check it against the qbXML 16.0 schema, edit it, and run it in your own QuickBooks.
Things to know
- A *Ref that names a record QuickBooks doesn't have answers 3120 when it gives a ListID and 3140 when it gives a FullName.
- Elements must appear in the order the schema lists them: a valid element in the wrong place fails validation.
- Use SalesOrPurchase for an item you only sell or only buy, and SalesAndPurchase for one you do both with.
The same request with QuBe Sync's API
QuBe Sync takes this JSON, writes the qbXML for you and delivers QuickBooks' answer to your webhook as JSON.
POST
/api/v2/connections/{connection_id}/item-services
{
"name": "Consulting",
"sales_or_purchase": {
"account_ref": {
"full_name": "Consulting Income"
},
"desc": "Consulting, per hour",
"price": 150.0
}
}
Every field ItemServiceAdd takes is in Intuit's reference.
More requests
Items