Applications that have to work together are like puzzle pieces that do not fit by themselves. Data mapping is the interpreter that makes them understand each other, even though they speak different languages under the hood. In this article you read what data mapping is, how APIcenter handles it and how you adjust the mapping to your own workflow.
Why data mapping?
Two applications are built by different developers. They can look the same, but their data is structured very differently. Whoever builds an integration has to define which field in one application belongs to which field in the other. For one integration that is doable, for dozens of applications it is not.
Source and target
APIcenter looks at every flow from two sides: the side where data is fetched (the source) and the side it goes to (the target). In the examples below the webshop is the source and the accounting package is the target.
Dot notation
APIcenter shows the fields of both applications in dot notation: [object].[field]. The name of a customer, for example, is customer.name. You can go several levels deep: the street in a customer's address is customer.address.street.
A colon means something can occur more than once. If a customer has several contacts, you write customer.contacts:name: the field name can occur zero, one or more times.
Three kinds of mapping
APIcenter uses three kinds of data mapping: one-to-one, additive and transformative.
One-to-one
A field goes unchanged to another field. For example the name of a product:
| Webshop | Accounting |
|---|---|
| ProductName | ProductTitle |
Additive
Information is copied to extra fields, so the receiving side gets as much as possible. For example when the shipping address of a customer is missing:
| Webshop | Accounting |
|---|---|
| BillingStreet | BillingStreet |
| BillingPostalCode | BillingPostalCode |
| BillingCountry | BillingCountry |
| ShippingStreet | |
| ShippingPostalCode | |
| ShippingCountry |
Transformative
Information is added, subtracted or changed in another way. For example when the webshop gives prices including VAT and the accounting package expects them excluding VAT:
| Webshop | Accounting |
|---|---|
| TotalPriceIncludingTax | |
| TotalPriceExcludingTax | |
| TotalTax |
The fields do not match one-to-one. APIcenter therefore calculates the price excluding VAT from the price including VAT and the VAT amount. That way the accounting package gets what it needs, even when the webshop does not have that field.
How APIcenter handles it
APIcenter does not map applications onto each other one by one. Every application is mapped onto APIcenter's own data model: a fixed description of, for example, a product or a customer.
On the source side, APIcenter connects as many fields as possible to the data model, so the other side has as much information as possible:
| Webshop | APIcenter |
|---|---|
| ProductName | Name |
| TotalPriceIncludingTax | TotalInclPrice |
| TotalExclPrice | |
| TotalTax | TotalTaxAmount |
On the target side, only the information that is needed is selected:
| APIcenter | Accounting |
|---|---|
| Name | ProductTitle |
| TotalInclPrice | |
| TotalExclPrice | TotalPriceExcludingTax |
| TotalTaxAmount |
When you choose two applications, the mappings are merged. APIcenter uses the result to fetch and send data:
| Webshop | APIcenter | Accounting |
|---|---|---|
| ProductName | Name | ProductTitle |
| TotalPriceIncludingTax | TotalInclPrice | |
| TotalExclPrice | TotalPriceExcludingTax | |
| TotalTax | TotalTaxAmount |
Adjusting the mapping
You can adjust the merged mapping per flow. That is useful when a field does not fit the standard model well, or when you created your own fields in your application. If you want the product title in the field ProductDescription instead of Name, the mapping looks like this:
| Webshop | APIcenter | Accounting |
|---|---|---|
| ProductName | Name | ProductDescription |
When you start typing in the input field, APIcenter suggests matching fields. All standard fields we know are included.
Your own fields
APIcenter does not automatically know fields you created in your application. If you know the technical name of such a field (often visible in the application), you add it to the mapping.
Free fields
For data that has no place in the standard model there are free fields. With them you connect any fields on both sides:
| Webshop | APIcenter | Accounting |
|---|---|---|
| CustomField1 | CustomFields.freeStringField0 | CustomField2 |
| CustomFields.freeStringField9 | ||
| CustomFields.freeValueField0 | ||
| CustomFields.freeValueField9 |
There are two kinds of free fields: text fields (string) and number fields (value). More in the help center.
Conclusion
Data mapping makes applications understand each other. Because the fields are fixed, the same input gives the same result every time once it is set up. And if the default does not fit completely, you adjust the mapping per flow.



