With the move from the old Moneybird to the new Moneybird, all ids of entities in an administration have changed. Some API developers
might have saved old ids in their database. In order for them to keep querying our API with the right ids, we have added an API for the
import mappings. By querying the import mapping API, you can transform old ids to new ids in the new Moneybird. This should be a one-time
conversion, this API will not be indefinitely available.
List all import mappings for the given type
GET/import_mappings/:type(.:format)
Returns a list of mappings from old ids to new ids for the given type.
Type should be any of: financial_account bank_mutation contact document_attachment general_journal identity
incoming_invoice attachment payment history invoice_attachment transaction ledger_account
tax_rate product print_invoice recurring_template invoice workflow document_style
Parameters
Parameter
Type
Description
type
Symbol
Required
Example: returns all import mappings of an administration for the given type
Returns the import mapping for the given type and id
GET/import_mappings/:type/:id(.:format)
Returns a single mapping from the given type and id to a new id in the new MoneyBird. The given id
can be both an old id or a new id, in both cases the correct mapping will be returned.
Type should be any of: financial_account bank_mutation contact document_attachment general_journal identity
incoming_invoice attachment payment history invoice_attachment transaction ledger_account
tax_rate product print_invoice recurring_template invoice workflow document_style
Parameters
Parameter
Type
Description
type
Symbol
Required
Example: returns the import mapping of the given id, given an old id