Skip to main content
POST
Create or Update a Transaction
This method searches Omneo for existing transactions, if found the payload is used to update the existing transaction. If no transactions are found, a new transaction is created instead. The search for a existing transaction first looks for a transaction with a matching external_id If one is found, the transaction is updated. If the external_id is not provided, or not found in Omneo, the search will look for a transaction matching the id parameter provided. If a matching transaction is found, the payload will be used to update the existing transaction. If no transactions are found with a matching external_id or id a new transaction is created. This method is often preferable if a reliable external_id or id can be provided to Omneo during the creation. This saves the need to call the Add Transaction and Edit Transaction separately.

Body

application/json
total
number
required
transacted_at
string<date-time>
required
timezone
string
required
id
integer | null
profile_id
string | null
profile_id_handle
string | null
redemption_id
integer | null
external_id
string | null
location_id
string | null
currency
string | null
total_original
number | null
rounding
number | null
tender
string | null
is_void
boolean | null
margin
number | null
meta
string[] | null
staff_id
string | null
payments
string[]
receipt_is_email
boolean | null
receipt_ref
string | null
linked_receipt_ref
string | null
receipt_email
string<email> | null
need_action
boolean | null
tags
string[]
systems
string[]
items
object[] | null

Response

Transaction

data
Transaction · object
required