Customer API
Integrate your existing platforms with the Tallymarks Customer API to make your customer information available for the assessment of customer events.
Also see Swagger based Customer API documentation
Get a Customer
Get a Customers details including their email address and contact phone.
GET
Request (Route)
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
Response: 200
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
tenantId
guid/uuid
A unique identifier for the tenant
firstName
string
First Name
lastName
string
Last Name
displayName
string
Display Name
emailAddress
string
Email Address
isAccountLocked
bool
A flag indicated that the account is locked (if true)
mobileNumber
string
A customer mobile number
optinSms
bool
Flags that the Customer has been opted in for Sms
optinEmail
bool
Flags that the Customer has been opted in for Email
acceptTerms
bool
Flags that the Customer has been accepted program terms and conditions
attributes[]
array
A list of attributes
attributes[]key
string
Attribute Key
attributes[]value
string
Attribute Value
dateOfBirth
datetime
Date of Birth
createdAt
datetime
The customer creation date/time. This also represents the Customers Anniversary Date
changedAt
datetime
The last date/time the customer entity was modified
contactPhone
string
Contact Phone Number
externalReference
string
An external reference for the customer
externalStatus
string
An external status for the customer, for example "active", "delinquent"
Update a Customer
This method allows customers to be updated in the TallyMarks system on an individual basis. Email address must be unique to each TallyMarks Account.
PATCH
Request
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
tenantId
guid/uuid
A unique identifier for the tenant
firstName
string
First Name
lastName
string
Last Name
displayName
string
Display Name
emailAddress
string
emailAddress
isAccountLocked
bool
A flag indicated that the account is locked (if true)
mobileNumber
string
A customer mobile number
optinSms
bool
Flags that the Customer has been opted in for Sms
optinEmail
bool
Flags that the Customer has been opted in for Email
acceptTerms
bool
Flags that the Customer has been accepted program terms and conditions
attributes[]
Array
A list of attributes
attributes[]key
string
Attribute Key
attributes[]value
string
Attribute Value
dateOfBirth
datetime
Date of Birth
contactPhone
string
Contact Phone Number
externalReference
string
An external reference for the customer
externalStatus
string
An external status for the customer, for example "active", "delinquent"
Response: 200 - Customer Updated
Response: 400 - Email Aleady Exists
Response: 400 - Customer Not Found
Search for Customers
Support the searching of customers.
GET
Request (Query String)
Element
Type
Description
keyword
decimal
Represents an amount related to the action
limit
integer
A unique identifier for the event
offsetKey
string
A unique identifier for the next set of paged results
Response: 200
Event
Type
Description
customers[]
array
Array of customer results
customers[].customerId
guid/uuid
A unique identifier for the customer
customers[].tenantId
guid/uuid
A unique identifier for the tenant
customers[].firstName
string
First Name
customers[].lastName
string
Last Name
customers[].displayName
string
Display Name
customers[].emailAddress
string
emailAddress
customers[].contactPhone
string
Contact Phone Number
customers[].externalReference
string
An external reference for the customer
customers[].externalStatus
string
An external status for the customer, for example "active", "delinquent"
offsetKey
string
key for next page of results
Create Customer
This method allows customers to be created in the TallyMarks system on an individual basis. Once created a customer can receive events for assessment and fufilment. Email address must be unique to each TallyMarks Account.
POST
Request
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
firstName
string
First Name
lastName
string
Last Name
displayName
string
Display Name
emailAddress
string
emailAddress
mobileNumber
string
A customer mobile number
optinSms
bool
Flags that the Customer has been opted in for Sms
optinEmail
bool
Flags that the Customer has been opted in for Email
acceptTerms
bool
Flags that the Customer has been accepted program terms and conditions
attributes[]
Array
A list of attributes
attributes[]key
string
Attribute Key
attributes[]value
string
Attribute Value
dateOfBirth
datetime
Date of Birth
contactPhone
string
Contact Phone Number
externalReference
string
An external reference for the customer
externalStatus
string
An external status for the customer, for example "active", "delinquent"
Response: 200 - Customer Registered
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
firstName
string
First Name
lastName
string
Last Name
displayName
string
Display Name
emailAddress
string
emailAddress
isAccountLocked
bool
A flag indicated that the account is locked (if true)
mobileNumber
string
A customer mobile number
optinSms
bool
Flags that the Customer has been opted in for Sms
optinEmail
bool
Flags that the Customer has been opted in for Email
acceptTerms
bool
Flags that the Customer has been accepted program terms and conditions
attributes[]
Array
A list of attributes
attributes[]key
string
Attribute Key
attributes[]value
string
Attribute Value
dateOfBirth
datetime
Date of Birth
createdAt
datetime
The customer creation date/time. This also represents the Customers Anniversary Date
changedAt
datetime
The last date/time the customer entity was modified
contactPhone
string
Contact Phone Number
externalReference
string
An external reference for the customer
externalStatus
string
An external status for the customer, for example "active", "delinquent"
Response: 400 - Email Already Registered
Get a Customer's Points Balance
This method supports the retrieval of the customers current points balance.
GET
Request (Route Parameter)
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
Response: 200
Event
Type
Description
tenantId
guid/uuid
A unique identifier for the tenant
customerId
guid/uuid
A unique identifier for the customer
tenantId
guid/uuid
pointsSegment
string
A points segment, currently "base" (reserved for future use)
amount
int
Points Balance
changedAt
datetime
Last date/time the Points Balance was updated.
Search for a Customer's Events
This method supports the searching of events relating to a customer. Results are paged, with a maximum (limit) of 100 records.
GET
Request (Query String)
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
eventId
uid/uuid
A unique identifier for the event
eventType
string
An event type: action, order, transaction, redemption, points, error, anniversary
keyword
string
Keyword search of event namespace or reference
fromAt
datetime
Event date/time (from)
toAt
datetime
Event date/time (to)
Response: 200
Event
Type
Description
events[]
array
Array of events results
events[].eventId
guid/uuid
A unique identifier for the event
events[].tenantId
guid/uuid
A unique identifier for the tenant
events[].customerId
guid/uuid
A unique identifier for the customer
events[].createdAt
string
Date/Time the event was created.
events[].eventType
string
An event type: action, order, transaction, redemption, points, error, anniversary
events[].nameSpace
string
NameSpace of event
events[].reference
string
Reference
Search for a Customer's Transactions
This method supports the searching of points transactions relating to a customer’s in response to the assessment of their events. Results are paged, with a maximum (limit) of 100 records.
GET
Request (Query String)
Element
Type
Description
customerId
guid/uuid
A unique identifier for the customer
eventId
uid/uuid
A unique identifier for the event
eventType
string
An event type: action, order, transaction, redemption, points, error, anniversary
keyword
string
Keyword search of event namespace or reference
fromAt
datetime
Event date/time (from)
toAt
datetime
Event date/time (to)
limit
int
limit number of results
offsetKey
string
key for next page of results
Response: 200
Event
Type
Description
customerTransactions[]
array
Array of Customer Transactions
customerTransactions[].transactionId
guid/uuid
A unique identifier for the event
customerTransactions[].eventId
guid/uuid
A unique identifier for the event
customerTransactions[].tenantId
guid/uuid
A unique identifier for the tenant
customerTransactions[].customerId
guid/uuid
A unique identifier for the customer
customerTransactions[].assessmentRuleId
guid/uuid
A unique identifier for the assessment rule that was matched to create the transaction
customerTransactions[].createdAt
string
Date/Time the event was created.
customerTransactions[].checkSum
string
A unique identifier for the transaction
customerTransactions[].nameSpace
string
NameSpace of event
customerTransactions[].description
string
Description of the event
customerTransactions[].amount
int
Points Transaction
customerTransactions[].externalReference
string
Reference
Search for Customer's Segments
This method supports the retrieval of all lists that a customer is a member of.
GET
Request (Query String)
Element
Type
Description
limit
integer
limit number of results
offsetKey
string
key for next page of results
Response: 200
Event
Type
Description
segments[]
array
Array of segments
segments[].tenantId
guid/uuid
A unique identifier for the tenant
segments[].name
string
Name of Segment
segments[].description
string
Description of Segment
segments[].displayName
string
Display Name
segments[].createdAt
datetime
Date/time customer was assigned to segment
segments[].changedAt
datetime
Date/time customer configuration related to segment was updated
segments[].sourceEventId
guid/uuid
The Event Id that resulted in the Customer being assigned to the segment
segments[].expiryDateTime
datetime
Date/time that the customer's membership of the segment will automatically expire
offsetKey
string
key for next page of results
Add Customer to Segment
This method supports the retrieval of all lists that a customer is a member of.
PUT
Request (Body)
Element
Type
Description
segmentId
guid/uuid
A unique identifier for the segment
Response: 200
Event
Type
Description
tenantId
guid/uuid
A unique identifier for the tenant
segmentId
guid/uuid
A unique identifier for the segment
name
string
Name of Segment
description
string
Description of Segment
displayName
string
Display Name
createdAt
datetime
Date/time customer was assigned to segment
changedAt
datetime
Date/time customer configuration related to segment was updated
sourceEventId
guid/uuid
The Event Id that resulted in the Customer being assigned to the segment
expiryDateTime
datetime
Date/time that the customer's membership of the segment will automatically expire
Delete Customer from Segment
This method supports the retrieval of all lists that a customer is a member of.
DELETE
Request (Query String)
None
Response: 200
Last updated