Why isn’t my company authorized for XML transactions?

If you get an error such as the following:

This company is not authorized for XML transactions. Please subscribe to the XML Gateway.

The administrator of your company must subscribe to Web Services in the Intacct system (via Company > Subscriptions).


How do I verify/troubleshoot my API calls?

Before doing any serious XML API work, it’s strongly recommended that you become familiar with the use of Postman and the Intacct Postman API collection. With this approach, you can easily learn to use the API, and test and verify your API calls before hard coding them. See Your First XML API Calls to get started.

Also, consider adding a flag to enable debug logging in your application/integration to help as you develop.

Even better, consider using one of the Intacct SDKs, which nicely wrap the XML APIs for you:

Where can I find information about generic and/or object-specific functions?

Find the object of interest in the API documentation, then look for the functions on that page. For example, if you want to perform some action on a bill, look at the APBILL page, which includes the certified generic functions, the object-specific/legacy functions, and examples for both.

For custom objects, use the Platform Services Objects API page for functions that let you get information about fields of custom objects. You can then use this information to compose your generic function calls.

The readByQuery function lets you get unique keys (typically record numbers) for one or more main records based on a query filter. You can then supply such a key to the read function to get more information for the main record, including details about its owned and related objects.

Can I update a statistical journal entry via the API?

Yes, but be aware that the update is treated as a complete replacement of any entries. Be careful you pass every entry you want to keep so you do not clear out the whole thing, for example:

        <BATCH_TITLE>Headcount 03/31/2016</BATCH_TITLE>
                <DESCRIPTION>Headcount 03/31/2016</DESCRIPTION>

Note that GLBATCH is used for all of the types of journal entry objects, so make sure you are providing the correct RECORDNO.

What return format should I use for best results when using readByQuery and readMore?

When you usereadByQuery with the XML returnFormat, which is the recommended format for all API calls, the returned data element has attributes about how many results are available:

 <data listtype="contract" count="2" totalcount="1588" numremaining="1586" resultId="7765623331WQdg3cCoA4MAAH4trhIAAAAD5">

If you use a different return format such as JSON, this information isn’t provided - particularly the resultId.

Objects and fields

Why aren’t my ISO formatted dates working?

Dates in Intacct are textual representations of a date and have no associated timezone to them. Third-party integrators that store everything in ISO 8601 format must translate the dates to the timezone the Intacct tenant uses.

What field do I use for attachments?

In the Intacct system, the Attachments label indicates that you can provide supporting documents. However, in XML API calls, the corresponding field name is SUPDOCID.

Customization Services

Are the injections in my Smart Event condition correct?

If you are having trouble setting up a condition, it’s useful to verify that your injections are correct. You can modify the Smart Event to send you an email that provides the injections in the email body. For example, if your condition uses {!APBILL.VENDORNAME!}, include this in your email:

The vendor name is: {!APBILL.VENDORNAME!}

Why aren’t integration codes working for picklist fields on a standard object?

Using name/value pairs for picklist fields is not supported for custom picklists on standard objects. This capability is only supported on custom picklists for custom objects (Platform Services).

Can I use a smart event to pull data from the first line of the line item section into a field in the header section?

You can create an API Smart Event on the detail line, and the event criteria can include LINE_NO = 0 (the underlying data is 0-based even though the UI starts at line 1). The API call in the API event can look something like this:

<update_potransaction key="{!PODOCUMENTENTRY.PODOCUMENT.DOCID!}">

If you only need this information in the printed PDF, you can get creative with Microsoft Word merge field codes. A SET field nested in an IF statement looking for the first line does the trick. See the Microsoft documentation on merge fields for more information.

How can I restrict a record to only be created privately in an entity, instead of at the root/top level?

Try out the injection, {!USERPROFILE.CONTEXTLOCATION!}. This returns ROOT if at the top level. If slid-in privately to an entity, this returns [LOCATIONKEY]--[LOCATIONNAME] of the entity.

For example, if you wanted all bills entered privately in an entity, your smart rule condition would be: left("{!USERPROFILE.CONTEXTLOCATION!}", 4) != "ROOT". To be helpful for the user, your error message could then be: You cannot add this record at the {!USERPROFILE.CONTEXTLOCATION!} level.