Data Mapper formulas
Search for [FORMULA] values in a Data Mapper and use common Order Item formulas such as line numbers and PO number.
Where to find it: In the Zoey Admin, go to Integrations > Zoey Data Mappers > Manage Connection. New to Data Mappers? Start with Set up a Data Mapper.
Formulas can export your store's data using custom logic and calculations.
Each formula is available for certain Data Mapper types, based on their Zoey Object.
What Data Mapper Formulas are available to me?
In your Zoey Value column you can search for data to export through your mapper. Type formula, or click Formulas in the group list, to see every formula available to this Data Mapper. Hover the info icon next to a formula to read what it returns. See Find a Zoey Value.

Data Mapper Formulae are added as one-off improvements.
Many of these formulas will not be useful to you as there were not created to be applicable to all situations.
Order Item Formulas
Here are some useful formulas to use in your Order Items mappers.
- [FORMULA] Order Number or PO# (if exists) (ORD00003)
Will return the PO# if one exists on the Order, otherwise returns Order Increment Number. - [FORMULA] Line Number (3 Digits) (ORD00005)
Will return three digit number representing the line number for each item being processed (001, 002, 003, etc..). - [FORMULA] Order has user comment (ORD00007)
If the order has a comment added by the customer or admin when order was placed, return value is 1. - [FORMULA] Order Payments Payment Surcharge Amount Sum (ORD00009) && [FORMULA] Order Payments Base Payment Surcharge Amount Sum (ORD00010)
These formulae will sum thepayment_surcharge_amountorbase_payment_surcharge_amountfield from all payment records for the order.
Amounts as DDDDCC (ORD00016–ORD00021)
These formulas send an order amount as 6 digits with no decimal point: the amount in cents, padded with zeros. Some ERP and EDI files need amounts in this format. They work on Orders and Order Items Data Mappers.
| Formula | Sends | Example |
|---|---|---|
| Convert order tax amount format to DDDDCC (ORD00016) | Tax, in the order's currency | Tax of $8.25 → 000825 |
| Convert order base tax amount format to DDDDCC (ORD00017) | Tax, in the store's base currency | |
| Convert order discount amount format to DDDDCC (ORD00018) | Discount, in the order's currency, without a minus sign | $12.50 off → 001250 |
| Convert order base discount amount format to DDDDCC (ORD00019) | Discount, in the store's base currency, without a minus sign | |
| Convert order shipping amount format to DDDDCC (ORD00020) | Shipping, in the order's currency | Shipping of $15 → 001500 |
| Convert order base shipping amount format to DDDDCC (ORD00021) | Shipping, in the store's base currency |
- An amount of $10,000.00 or more doesn't fit in 6 digits and is sent as it is, such as
12500.0000. - Use the base versions when the other system works in your store's base currency and you sell in more than one currency.
Related articles
Updated about 10 hours ago
