Jump to content

Passing tax details to AP BILL


 Share

Recommended Posts

Is there a way to pass tax details on AP Bills?  And have these returned on queries?

I'm getting the following error:

{
                    "errorId": "SL-0749",
                    "code": "informationMissing",
                    "message": "Tax details are either missing or do not belong to the tax solution.",
                    "correction": "Ensure that each line item has a tax detail that belongs to the applicable tax solution.",
                    "additionalInfo": {
                        "messageId": "IA.TAX_DETAILS_ARE_EITHER_MISSING_OR_DON_T_BELONG",
                        "placeholders": {},
                        "propertySet": {}
                    }
                }
 
Request is:
{
    "billNumber": "TP-01",
    "vendor": {
        "id": "102823"
    },
    "referenceNumber": "TP-01",
    "description": "bill - 001 - vendor 1099",
    "createdDate": "2022-08-06",
    "postingDate": "2022-08-06",
    "isOnHold": false,
    "currency": {
        "baseCurrency": "GBP",
        "txnCurrency": "GBP"
    },
    "location": {"id":"500"},
    "taxSolution":{"id":"United Kingdom - VAT"},
    "lines": [
        {
            "glAccount": {
                "id": "50300"
            },
            "txnAmount": "5",
            "totalTxnAmount": "15.00",
            "dimensions": {
                "location": {"id":"500"},
                "department": {"id":"500"},
                "project": {"id":"10000"},
                "customer": {},
                "vendor": {},
                "employee": {},
                "item": {"id":"1004"},
                "class": {"id":"100"}
            },
            "memo": "bill - 001 - vendor 1099",
            "hasForm1099": "false",
            "project": {
                "isBillable": true
            }
        }
    ]
}
Link to comment
Share on other sites

It looks like you have the "tax solution" but you're not passing in the "tax detail" for each line. I believe you have to specify which tax detail is applicable. You can find the various options for tax details in the ui under Accounts Payable > Setup > Tax > Details. I found this requirement to be true as well on the standard upload templates from Intacct.

image.png.6062336d7e38d40ea641fd1d8240757e.png

Link to comment
Share on other sites

OK, thanks Louis.  This is quite a good use case, as this will be a common requirement for the UK.  I'm wondering whether it is a general issue for the REST API, or possibly because TOP LEVEL doesnt have a tax solution but the sub-entities do.  I've not tried it where the TOP LEVEL has a tax solution.

Link to comment
Share on other sites

Had the same issue using the XML gateway but at least on that, I could create my own custom object to pass it as the gateway allowed it, even though the SDK didn't provide for it. Not sure if you can do the same thing with the REST API?

Lee

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...