LoyaltyLion
App · 11 actions
Read loyalty customers, orders, rewards and activity in LoyaltyLion.
Actions
| Action | What it does |
|---|---|
| Get identity | Get identity. |
| Get order | Get order. |
| List activities | List activities. |
| List available rewards | List available rewards. |
| List customer transactions | List customer transactions. |
| List customers | List customers. |
| List email unsubscribes | List email unsubscribes. |
| List orders | List orders. |
| List sites | List sites. |
| List transactions | List transactions. |
| List webhooks | List webhooks. |
Get identity
Get identity.
Inputs
None.
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"identity": {}
}
}Get order
Get order.
Inputs
- Order
order_idtextRequired - The ID of the order in your platform or ecommerce store
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"cancellation_status": "cancelled",
"merchant_created_at": "example",
"merchant_id": "example",
"merchant_updated_at": "example",
"payment_status": "not_paid",
"payments": [],
"refund_status": "not_refunded",
"refunds": [],
"total": "example",
"total_paid": "example",
"total_shipping": "example"
}
}List activities
List activities.
Inputs
- Since id
since_idnumber - Return only resources whose id is after the specified idAt least 0.
- Limit
limitnumber - Max number of resources to return per requestFrom 1 to 500.
- Page
pagenumber - Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination insteadAt least 1.
- Cursor
cursortext - Fetch another page of results using a cursor returned in a previous response
- Created at min
created_at_mindate and time - Return only activities created on or after the specified `ISO 8601` datetime string
- Created at max
created_at_maxdate and time - Return only activities created before the specified `ISO 8601` datetime string
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"activities": [],
"cursor": {
"next": "example",
"prev": "example"
}
}
}List available rewards
List available rewards.
Inputs
- Customer
customer_idtextRequired - The ID of the customer in your platform or ecommerce store
- Site id
site_idnumber - By default this endpoint will return rewards across all sites in your program. If you have a multi-site program, you can specify a site ID here to return only rewards for that site
- Country
countrytext - An ISO 3166-1 alpha-2 country code. When provided, only rewards available in this country are returned. Rewards with no country restriction are always included.
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"rewards": []
}
}List customer transactions
List customer transactions.
Inputs
- Customer
customer_idtextRequired - The ID of the customer in your platform or ecommerce store
- Type
typetext - The format of the responseOne of:
csv,json. - Since id
since_idnumber - Return only resources whose id is after the specified idAt least 0.
- Limit
limitnumber - Max number of resources to return per requestFrom 1 to 500.
- Cursor
cursortext - Fetch another page of results using a cursor returned in a previous response
- Created at min
created_at_mindate and time - Return only transactions created on or after the specified `ISO 8601` datetime string
- Created at max
created_at_maxdate and time - Return only transactions created before the specified `ISO 8601` datetime string
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {}
}List customers
List customers.
Inputs
- Since id
since_idnumber - Return only resources whose id is after the specified idAt least 0.
- Limit
limitnumber - Max number of resources to return per requestFrom 1 to 500.
- Page
pagenumber - Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination insteadAt least 1.
- Sort field
sort_fieldtext - Sort field.One of:
id,updated_at(Updated at). - Sort direction
sort_directiontext - Sort direction.One of:
asc,desc. - Cursor
cursortext - Fetch another page of results using a cursor returned in a previous response
- Email
emailtext - Return only customers whose email contains the specified string
- Created at min
created_at_mindate and time - Return only customers created on or after the specified `ISO 8601` datetime string
- Created at max
created_at_maxdate and time - Return only customers created before the specified `ISO 8601` datetime string
- Updated at min
updated_at_mindate and time - Return only customers updated on or after the specified `ISO 8601` datetime string
- Updated at max
updated_at_maxdate and time - Return only customers updated before the specified `ISO 8601` datetime string
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"cursor": {
"next": "example",
"prev": "example"
},
"customers": []
}
}List email unsubscribes
List email unsubscribes.
Inputs
- Limit
limitnumber - Max number of resources to return per requestFrom 1 to 500.
- Page
pagenumber - Fetch another page of resultsAt least 1.
Outputs
datalist- The response from LoyaltyLion.
Example output
{
"data": []
}List orders
List orders.
Inputs
- Since id
since_idnumber - Return only resources whose id is after the specified idAt least 0.
- Limit
limitnumber - Max number of resources to return per requestFrom 1 to 500.
- Page
pagenumber - Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination insteadAt least 1.
- Cursor
cursortext - Fetch another page of results using a cursor returned in a previous response
- Created at min
created_at_mindate and time - Created at min.
- Created at max
created_at_maxdate and time - Created at max.
- Updated at min
updated_at_mindate and time - Updated at min.
- Updated at max
updated_at_maxdate and time - Updated at max.
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"cursor": {
"next": "example",
"prev": "example"
},
"orders": []
}
}List sites
List sites.
Inputs
None.
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"sites": []
}
}List transactions
List transactions.
Inputs
- Type
typetext - The format of the responseOne of:
csv,json. - Since id
since_idnumber - Return only resources whose id is after the specified idAt least 0.
- Limit
limitnumber - Max number of resources to return per requestFrom 1 to 500.
- Cursor
cursortext - Fetch another page of results using a cursor returned in a previous response
- Customer id
customer_idnumber - Return only transactions for this LoyaltyLion customer ID
- Created at min
created_at_mindate and time - Return only transactions created on or after the specified `ISO 8601` datetime string
- Created at max
created_at_maxdate and time - Return only transactions created before the specified `ISO 8601` datetime string
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {}
}List webhooks
List webhooks.
Inputs
None.
Outputs
dataobject- The response from LoyaltyLion.
Example output
{
"data": {
"webhooks": []
}
}