Skip to main content
Use the Ometria destination to write records from your ETL pipeline to Ometria, a customer data and marketing platform for retailers. The component posts records to Ometria’s /v2/push endpoint in batches. One component writes one object type: contacts, orders, or custom events.

When to use it

Use this destination to sync customer, order, or event data from your warehouse or other systems into Ometria for segmentation and campaigns. Typical uses:
  • Load customer profiles from a warehouse table so Ometria profiles stay current.
  • Push order history so revenue-based segments and lifecycle stages update after each run.
  • Send custom events (for example, subscription renewals or support interactions) that Ometria does not capture natively.
For reading profiles, orders, products, and lists back out of Ometria, use the Ometria source instead.

Connection

Select an existing Ometria connection or create a new one. The destination uses the same connection type as the source: a single API key sent as the X-Ometria-Auth header. A key that already works for the source works here unchanged. See Connecting to Ometria for how to create the connection.

Destination properties

  • Object - the Ometria object type this component writes: contact (default), order, or custom_event. The object determines which fields you can map (see Field mapping).
  • Merge mode - when enabled, the component sends each record as a partial update. Ometria updates only the fields present in the record. When disabled, fields you do not map are overwritten to null in Ometria. Enable merge mode when your pipeline carries a subset of the fields a record already has in Ometria.

Advanced options

  • Requests per second - throttle applied to the push endpoint. Default is 8, matching Ometria’s documented push rate limit, which is double the read-endpoint limit. Maximum is 100. The component posts from a single process, so this value is the real request rate against Ometria.
  • Records per batch - number of records sent per push request. Default and maximum are both 100, the cap Ometria enforces per request.
  • Maximum failed records - the job fails once cumulative failed records exceed this value. Default is 0 (fail on the first failure). Set to -1 for unlimited failures.

Field mapping

Each object type has a fixed payload schema. Map input fields to Ometria fields by exact name. The component raises a build-time error if a required field is missing from the mapping or a mapped field is not supported for the selected object.

Contact

Ometria uses the identity fields to cluster contact records into a profile. Without one, the record cannot be matched to a customer. extra_identifiers is a JSON array of {type, value} pairs and also counts as an identity. marketing_optin is a string enum, not a boolean. The accepted values are EXPLICITLY_OPTEDIN, EXPLICITLY_OPTEDOUT, and NOT_SPECIFIED. Input is matched case-insensitively and sent to Ometria in uppercase. Any other value, including true or false, fails the row into the errors CSV. If your source stores consent as a boolean, convert it in your query and decide whether false means EXPLICITLY_OPTEDOUT or NOT_SPECIFIED. @force_optin is a boolean flag that overrides Ometria’s opt-in state. The component accepts a typed boolean column or the text true/false (case-insensitive) and emits a JSON boolean. Any other value fails the row.

Order

Orders need no identity field. The customer travels inside the nested customer object. discount, shipping, tax, and store are also mappable under their older spellings discount_total, shipping_total, tax_total, and store_id. Both spellings reach Ometria under the same name. Map one spelling per field: mapping both is rejected when you save the package. The customer and lineitems fields are JSON fields: the input column must contain a JSON document, not plain text. customer is an object and lineitems is an array of line-item objects. The component embeds these values as structure in the push payload. Ometria rejects a plain-text value in these columns.
The total fields are numeric: a value that does not parse as a number fails the row. is_valid is a boolean flag with the same coercion rule as @force_optin on contacts: a typed boolean column or the text true/false (case-insensitive) is emitted as a JSON boolean, and any other value fails the row.

Custom event

A custom event needs one identity value. profile_id alone is sufficient. identity_email, identity_account_id, and identity_phone_number are also mappable under their contact-style spellings email, customer_id, and phone_number. Both spellings reach Ometria under the identity name. Map one spelling per field: mapping both is rejected when you save the package. properties is a JSON object carrying the event’s attributes. event_type is optional here; Ometria enforces its own requirements when it processes the batch.

JSON fields

The component treats these fields as structured JSON rather than plain text. Map a column that carries a JSON document, or build one in Pig with TOMAP(...) for objects and TOBAG(...) for arrays. A plain-text value in one of these columns fails the row.
  • Objects: customer, properties, channels, subscriptions, shipping_address, billing_address.
  • Arrays: lineitems, store_ids, extra_identifiers, @add_to_lists, @remove_from_lists.
The names above are reserved on their record type. If a custom field of your own happens to share one of these names, map that column under properties or rename it before mapping. To put a custom field in properties, build the object with TOMAP('your_field', your_column) rather than mapping a single column to properties directly. The component converts a JSON document or a Pig structure the same way:
  • Maps become objects and bags become arrays, recursively. Date values are rendered as ISO 8601 strings.
  • An object field that converts to an array, or an array field that converts to an object, fails the row with a hint naming TOMAP() or TOBAG().
  • An empty object or array is omitted from the record, like a blank value.
  • Null map entries are dropped. A null array element fails the row.
  • Each bag element must be a single-field tuple, such as one TOMAP() result. A multi-field or bare tuple fails the row.
  • An untyped (bytearray) value inside the structure fails the row. Cast the source column to its type first, for example (double) total.
  • A column is capped at 20,000 elements (array items plus object entries) and 32 nesting levels. Exceeding a cap fails the row, not the job.

The id field

id is Ometria’s stable identifier for the record. It must not contain PII such as an email address or name. Use an internal key like a database primary key or order number. The component sends id as a string. A numeric column is rendered as plain digits, so a value like 100525101 in a double column is sent as "100525101", not 1.00525101E8. A float or double column that cannot hold the id exactly fails the row: absolute values of 16777216 (2^24) or more in a float column, or 9007199254740992 (2^53) or more in a double column. Cast the column to long or string to avoid this. NaN, Infinity, and non-numeric non-string values such as booleans also fail the row.

Custom fields

The documented home for your own custom fields is properties, a JSON object on all three record types. Build it in Pig with TOMAP('your_field', your_column, ...) so each custom field becomes a key inside the object. You can also map a custom field as a flat top-level column. When a mapped column is not in the documented set, the component checks it against your account’s custom fields before rejecting it. If the component cannot fetch the custom-field list (for example, during an Ometria outage), it allows the column with a warning rather than blocking the build. Ometria decides whether it reads a top-level custom field. A rejected record counts toward Maximum failed records.

Error tracking

Enable Output failed records (CSV) to write a CSV of records that failed to send, one row per failure, to a cloud storage connection and path you choose. Configure the storage connection and output path on the component. Rows that fail local validation before sending are also written to the errors CSV, with the failing field named in the error message. This covers an invalid marketing_optin value, an id that cannot be read exactly from its column type, a non-numeric value in a total field, and a JSON field with the wrong shape. Ometria’s push endpoint accepts batches asynchronously: it queues records for processing rather than confirming each one. The component tracks HTTP-level failures (4xx and 5xx responses) in the errors CSV. The Error column carries the HTTP status and Ometria’s response body. A 401 or 403 response stops the job and writes no errors row. Per-record processing outcomes after Ometria accepts a batch are not visible to the job. Check Ometria’s own import reporting for post-acceptance validation issues.

Accepted records tracking

Enable Output accepted records (CSV) to write a CSV of records Ometria accepted, one row per record, to a cloud storage connection and path you choose. Use it to reconcile what the job sent against what Ometria kept. The option is off by default. When you select the checkbox, the editor shows two more properties:
  • Accepted records output connection - the cloud storage connection that receives the CSV. Required.
  • Accepted records output path - the folder on that connection where the component writes the CSV. Required.
Integrate.io rejects the package when you save it if either property is missing or the connection no longer exists. After the job completes, you can find the file at that path as success_<component id>.csv. If you clear the checkbox and save, Integrate.io removes the saved connection and path. A record appears in this file when Ometria answers its batch with an HTTP 2xx response. Ometria processes accepted batches asynchronously, so a listed record means Ometria queued it for processing, not that Ometria stored it. Ometria can still drop it later. Records that fail validation in the component or belong to a rejected batch never appear in this file. Each row contains the following columns: Ometria returns no per-record ID. To check what happened to a batch, compare the accepted, rejected, and skipped counts in Ometria Response, or give the Ometria Request ID to Ometria support.
Accepted records tracking requires a cluster created after the feature was released. On an older cluster, a job with this option enabled fails before the component pushes any records. Recreate a long-running cluster before you enable this option, or disable the option to run the job on the existing cluster.

Example: syncing contacts from a warehouse query

A pipeline that reads recently updated customers from a warehouse and upserts them as Ometria contacts:
Set Object to contact and map each aliased column to the Ometria field of the same name. id satisfies the required field and email satisfies the identity requirement. Enable Merge mode so fields not in the query (for example phone_number) keep their current values in Ometria. Enable Output failed records (CSV) to an S3 bucket so you can review rejected rows after the run. Enable Output accepted records (CSV) to the same bucket to keep a record of every contact Ometria accepted.

Ometria Source

Trustpilot Destination

HubSpot Destination

Destinations Overview

Last modified on October 27, 2026