Documentation Index
Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
Use this file to discover all available pages before exploring further.
Use these endpoints for integration work or bulk operations across all profiles. When accessing transactions for a specific customer (for example in a loyalty app or POS lookup) use Profile Transactions instead.
What is a transaction?
A transaction contains key information about a customer purchase, such as the Items, sale price, date and time stamps, and payment methods. Transactions influence different areas of Omneo such as Profile aggregations. Anonymous transactions can be claimed at a later date using Claim Transaction. This allows the customer to attribute sales to their brand profile at a later date if they forgot to log in.Transaction Properties
Meta Fields
For any custom data required for your Omneo integrations,meta can be used to store your custom data as an object. These key value pairs can be modified as needed, and there is no limit to their naming or quantity.
| Attribute | Description |
|---|---|
id READ-ONLY INTEGER | A read only identifier for the transaction |
profile_id STRING | The profile_id of the linked Profile * or email/identity value when profile_id_handle specified |
profile_id_handle STRING | Specify to search a profile by email or identity. Further information onprofile_id_handle in below section |
external_id STRING | An 3rd party reference for the transaction. Usually the transaction reference as it appears in the client system |
redemption OBJECT | The redemption object returned from the specified redemption_id provided during the Add Transaction request. |
redemption_id INTEGER | The id of the redemption created using Add Reward or Point Redemption. Used to attach the redemption to a transaction. |
location OBJECT | The Location where the transaction was placed |
location_id STRING | Omneo first looks for a location with matching id If not found, Omneo will search for a location with a matching external_id if not found, Omneo will create a new transaction with matching external_id |
currency STRING | The currency of the transaction Must be a valid currency configured in your Omneo portal |
total FLOAT | The total value of the sale |
rounding FLOAT | a $ value used when rounding the total value, this is usually cents and is can be used to round the total up to the nearest whole number. |
tender STRING | A simple string displaying the tender used on the transaction. |
margin FLOAT | The gross profit across the entire transaction. |
deliver_at DATE-TIME | The delivery date and time |
transacted_at DATE-TIME | The Date and time of the transaction |
tags ARRAY | An array of customised tags against the transaction |
systems ARRAY | An array of systems against the transaction e.g [‘pos’,‘eftpos’] |
| staff_id | The staff_id responsible for handling the transaction |
payments ARRAY | An array of payments used against this transaction. example: [ { “eftpos” : 100, “cash”: 20 } ][ { “eftpos” : 100, “cash”: 20 } ] |
total_original FLOAT | The total original price of the transaction |
timezone STRING | The timezone the transaction was placed in |
items OBJECT | Transaction line items attached to this transaction |
receipt_is_email BOOLEAN | A boolean denoting whether the receipt was sent as an email |
receipt_ref STRING | The customer reference for the receipt. This is usually the customers primary identifier for the transaction, and is printed on their receipt. |
claimed_at DATE-TIME | Date the transaction was claimed (if applicable) |
receipt_email EMAIL | The customer email address the receipt will be sent. |
meta OBJECT | All custom data to your Omneo implementation can go here. This can contain key value pairs. Some examples might be {“connote”: 123, “shipping_date”: “12-1-2022”} |
Attaching Profile to transaction using Email or Identity.
In many cases, the external client system will have no knowledge of the omneoid.
attaching a profile_id_handle to the transaction payload, changes the way Omneo searches for profiles.
This field can be set to search by Profile Identity, or by profile email.
By setting theprofile_id_handle to ‘email’
Specify the “email” of the Omneo Profile you wish to attach the sale to
in the profile_id field. Omneo will now search for a profile matching that email, and attach the transaction to it.
As part of your payload, this may look like:
profile_id_handle to anything else
If this field is set to any other string, Omneo will look for a Profile with a Profile Identity handle of the value you’ve put in profile_id_handle, and with an identify value of the string you’ve specified in profile_id.
An example of this in action may look like:
identities or if the profile email is unique between systems, this method can be used.