SupplierAccount endpoint - Exposed subaccount pairing into the response for every AccountID given

API Version 10.15

Endpoint provides the possibility for integrations to fetch the GL accounts & subaccounts based on the company configuration. Followed similarly as they would be inserted in the invoicelines for this supplier. The subaccount following the “Combine expense sub. from” setting in AP101000 -window.

SupplierID (Mandatory String for URL path)

vatRegistrationId (Parameter) used to determine what location to pick the values from. In the response content the AccountID & subaccount matching the result from this Supplier will be given under the SupplierAccount.

linesNonTaxable (Parameter) By default set to false. Expense account will be picked matching the class type from the supplier. Instead of the class type of supplier with this parameter can be used to give in the response “Expense non-taxable account” instead, when set to true.

supplierItemId (Parameter) Will verify if there is a match from this “Vendor Inventory ID” within the Inventory ID’s. Value is linked to the Item in the Vendor Details -tab in the field “Vendor Inventory ID”. If Item ID is found corresponding to the Vendor Inventory ID for the Supplier the GL Account & subaccount match from the configuration will be given into response under SupplierItemAccounts. Multiple supplierItemId:s can be fetched during the same call.

Response content summary:
Response always provides the default values from this supplier into the content. They are under the “SupplierAccount”. When items are fetched together with it – They will be listed afterwards individually under the “supplierItemAccounts”.

Remark:
Some of the subaccount combinations are not available to this endpoint, if using subaccount combinations requiring deeper line level input such as branch, project and project task which are not available in this endpoint.