LoyaltyLion

App · 11 actions

Read loyalty customers, orders, rewards and activity in LoyaltyLion.

Actions

ActionWhat it does
Get identityGet identity.
Get orderGet order.
List activitiesList activities.
List available rewardsList available rewards.
List customer transactionsList customer transactions.
List customersList customers.
List email unsubscribesList email unsubscribes.
List ordersList orders.
List sitesList sites.
List transactionsList transactions.
List webhooksList webhooks.

Get identity

Get identity.

Inputs

None.

Outputs

dataobject
The response from LoyaltyLion.
Example output
{
  "data": {
    "identity": {}
  }
}

Get order

Get order.

Inputs

Orderorder_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 idsince_idnumber
Return only resources whose id is after the specified idAt least 0.
Limitlimitnumber
Max number of resources to return per requestFrom 1 to 500.
Pagepagenumber
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.
Cursorcursortext
Fetch another page of results using a cursor returned in a previous response
Created at mincreated_at_mindate and time
Return only activities created on or after the specified `ISO 8601` datetime string
Created at maxcreated_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

Customercustomer_idtextRequired
The ID of the customer in your platform or ecommerce store
Site idsite_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
Countrycountrytext
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

Customercustomer_idtextRequired
The ID of the customer in your platform or ecommerce store
Typetypetext
The format of the responseOne of: csv, json.
Since idsince_idnumber
Return only resources whose id is after the specified idAt least 0.
Limitlimitnumber
Max number of resources to return per requestFrom 1 to 500.
Cursorcursortext
Fetch another page of results using a cursor returned in a previous response
Created at mincreated_at_mindate and time
Return only transactions created on or after the specified `ISO 8601` datetime string
Created at maxcreated_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 idsince_idnumber
Return only resources whose id is after the specified idAt least 0.
Limitlimitnumber
Max number of resources to return per requestFrom 1 to 500.
Pagepagenumber
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 fieldsort_fieldtext
Sort field.One of: id, updated_at (Updated at).
Sort directionsort_directiontext
Sort direction.One of: asc, desc.
Cursorcursortext
Fetch another page of results using a cursor returned in a previous response
Emailemailtext
Return only customers whose email contains the specified string
Created at mincreated_at_mindate and time
Return only customers created on or after the specified `ISO 8601` datetime string
Created at maxcreated_at_maxdate and time
Return only customers created before the specified `ISO 8601` datetime string
Updated at minupdated_at_mindate and time
Return only customers updated on or after the specified `ISO 8601` datetime string
Updated at maxupdated_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

Limitlimitnumber
Max number of resources to return per requestFrom 1 to 500.
Pagepagenumber
Fetch another page of resultsAt least 1.

Outputs

datalist
The response from LoyaltyLion.
Example output
{
  "data": []
}

List orders

List orders.

Inputs

Since idsince_idnumber
Return only resources whose id is after the specified idAt least 0.
Limitlimitnumber
Max number of resources to return per requestFrom 1 to 500.
Pagepagenumber
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.
Cursorcursortext
Fetch another page of results using a cursor returned in a previous response
Created at mincreated_at_mindate and time
Created at min.
Created at maxcreated_at_maxdate and time
Created at max.
Updated at minupdated_at_mindate and time
Updated at min.
Updated at maxupdated_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

Typetypetext
The format of the responseOne of: csv, json.
Since idsince_idnumber
Return only resources whose id is after the specified idAt least 0.
Limitlimitnumber
Max number of resources to return per requestFrom 1 to 500.
Cursorcursortext
Fetch another page of results using a cursor returned in a previous response
Customer idcustomer_idnumber
Return only transactions for this LoyaltyLion customer ID
Created at mincreated_at_mindate and time
Return only transactions created on or after the specified `ISO 8601` datetime string
Created at maxcreated_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": []
  }
}

On this page