Create or replace an accounting mapping
Changed onAutomatically code one dimension for everything from a source, such as a card or merchant. Replaces any existing mapping for the same source and dimension. Set applyToExistingEntries to also recode entries still in review. On platforms that keep account mappings per subsidiary, such as NetSuite, an account mapping for an account or accounts_payable source applies to the connection's default subsidiary; every other mapping applies to the whole connection.
put/v2/accounting/mappings
Request
- Base URLhttps://api.slash.com
- URLhttps://api.slash.com/v2/accounting/mappings
- AuthAPI key in header X-API-Key
Request body
Example request
{
"connectionId": "accounting_connection_2rj4l7hmrrrcv",
"source": {
"id": "c_2rj4l7hmrrrcv"
},
"dimensionKey": "account",
"valueId": "accounting_account_2rj4l7hmrrrcv"
}Response
The mapping as stored.
Example response
{
"id": "accounting_mapping_2rj4l7hmrrrcv",
"connectionId": "accounting_connection_2rj4l7hmrrrcv",
"source": {
"id": "c_2rj4l7hmrrrcv"
},
"dimensionKey": "account",
"valueId": "accounting_account_2rj4l7hmrrrcv"
}Changes
- info
endpoint added
- info