Okendo

App · 25 actions

Moderate and reply to product reviews, read survey and quiz responses, and manage loyalty points with Okendo.

Actions

ActionWhat it does
Add tags to reviewTag a review, such as Support Needed or Favorite.
Adjust pointsAdd points to or take points from a shopper's balance, recorded as a transaction.
Award points for custom actionAward points for an action you track yourself, using a custom way to earn set up in Okendo.
Enroll shopper in loyaltyEnroll a shopper in your loyalty program, recording which version of its terms they accepted.
Find customer by emailFind a customer's Okendo ID from their email address.
Get customerGet a customer's name, email address, location and when they were last active.
Get loyalty memberGet a shopper's loyalty status, points balance and VIP tier.
Get loyalty termsGet your loyalty program's current terms: their version, links and the sentence shoppers agree to.
Get reviewGet a review with its rating, text, reviewer, product, tags and reply.
List customer activityList what a customer has done, such as writing reviews or earning points, newest first.
List customer profile dataList what Okendo knows about a customer, grouped by source, such as answers to profile questions.
List loyalty couponsList the unused coupons a shopper has from the loyalty program.
List quiz responsesList the responses to a quiz, with each answer and the products it recommended, newest first.
List quizzesList your product quizzes, with their status and how many responses each has.
List reviewsList your store's reviews, newest first, by moderation status and tag.
List rewardsList the rewards shoppers can spend points on, optionally with one shopper's amounts.
List survey responsesList the responses to a survey, with each answer and who gave it, newest first.
List surveysList your surveys, including archived ones, with how many responses each has.
List tagsList the tags you can put on reviews.
List ways to earnList the ways shoppers earn points or rewards, optionally as one shopper sees them.
Moderate reviewPublish or reject a review, or send it back to waiting for moderation.
Redeem points for rewardSpend a shopper's points on a reward, such as a coupon or store credit.
Remove tags from reviewTake tags off a review.
Reply to reviewReply to a review, publicly or privately, and optionally email the reviewer.
Set minimum VIP tierKeep a shopper in at least this VIP tier, until a date or for good.

Add tags to review

Tag a review, such as Support Needed or Favorite. Returns all of its tags.

Inputs

Reviewreview_idtextRequired
The review.
TagstagslistRequired
The tags, such as Support Needed. New tags are created as they are added.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "tags": [
      "example"
    ]
  }
}

Adjust points

Add points to or take points from a shopper's balance, recorded as a transaction.

Inputs

Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.
PointspointsnumberRequired
How many points to add. Use a negative number, such as -50, to take points away.
Reason (for your team)internal_reasontext
Why, as your team sees it in Okendo.
Note for the shoppershopper_notetext
Why, as the shopper sees it in their points history.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "loyaltyCustomer": {
      "points": {
        "balance": 1
      }
    }
  }
}

Award points for custom action

Award points for an action you track yourself, using a custom way to earn set up in Okendo.

Inputs

Action IDaction_codetextRequired
The custom way to earn's action ID, shown on it in Okendo.
Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.
Valuevaluenumber
For a points-per-value rule: the value to multiply by its points, such as an amount spent.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "loyaltyCustomer": {
      "loyaltyCustomerId": "example",
      "points": {
        "balance": 1
      }
    },
    "pointsEarned": 1
  }
}

Enroll shopper in loyalty

Enroll a shopper in your loyalty program, recording which version of its terms they accepted.

Inputs

Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.
Terms version acceptedterms_versiontextRequired
The version of the loyalty terms the shopper accepted. Get loyalty terms returns the current one.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "dateEnrolled": "example",
    "loyaltyCustomerId": "example",
    "points": {
      "balance": 1
    },
    "status": "example",
    "vipTierId": "example"
  }
}

Find customer by email

Find a customer's Okendo ID from their email address.

Inputs

EmailemailtextRequired
The customer's email address.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "customerId": "example"
  }
}

Get customer

Get a customer's name, email address, location and when they were last active.

Inputs

Customer IDcustomer_idtextRequired
The customer's Okendo ID. Use Find customer by email to get it.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "avatarUrl": "example",
    "dateFirstActive": "example",
    "dateLastActive": "example",
    "email": "example",
    "familyName": "example",
    "givenName": "example",
    "location": {
      "country": "example",
      "zoneCode": "example"
    }
  }
}

Get loyalty member

Get a shopper's loyalty status, points balance and VIP tier.

Inputs

Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "dateMinimumVipTierExpires": "example",
    "loyaltyCustomerId": "example",
    "minimumVipTierName": "example",
    "points": {
      "balance": 1
    },
    "status": "example",
    "vipTierName": "example"
  }
}

Get loyalty terms

Get your loyalty program's current terms: their version, links and the sentence shoppers agree to.

Inputs

None.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "acceptTermsAndJoinProgramButtonText": "example",
    "policySentence": {
      "html": "example",
      "template": "example"
    },
    "privacyPolicyUrl": "example",
    "termsAndConditionsUrl": "example",
    "version": "example"
  }
}

Get review

Get a review with its rating, text, reviewer, product, tags and reply.

Inputs

Reviewreview_idtextRequired
The review.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "attributesWithRating": [
      {
        "maxLabel": "example",
        "minLabel": "example",
        "title": "example",
        "type": "example",
        "value": 1
      }
    ],
    "body": "example",
    "containsProfanity": true,
    "dateCreated": "example",
    "helpfulCount": 1,
    "isIncentivized": true,
    "isRecommended": true,
    "media": [
      {
        "fullSizeUrl": "example",
        "isHidden": true,
        "largeUrl": "example",
        "streamId": "example",
        "thumbnailUrl": "example",
        "type": "example"
      }
    ],
    "order": {
      "orderId": "example",
      "orderNumber": "example"
    },
    "productAttributes": [
      {
        "title": "example",
        "type": "example",
        "value": "example"
      }
    ],
    "productId": "example",
    "productName": "example",
    "rating": 1,
    "reply": {
      "body": "example",
      "dateCreated": "example",
      "isPrivate": true,
      "rawBody": "example"
    },
    "reviewId": "example",
    "reviewer": {
      "avatarUrl": "example",
      "displayName": "example",
      "email": "example",
      "isVerified": true,
      "location": {
        "country": {
          "code": "example",
          "name": "example"
        },
        "zoneCode": "example"
      },
      "name": "example",
      "verifiedStatus": "example"
    },
    "reward": {
      "description": "example",
      "type": "example",
      "value": "example"
    },
    "sentiment": "example",
    "source": "example",
    "status": "example",
    "subscriberId": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "unhelpfulCount": 1,
    "variantId": "example",
    "variantName": "example"
  }
}

List customer activity

List what a customer has done, such as writing reviews or earning points, newest first.

Inputs

Customer IDcustomer_idtextRequired
The customer's Okendo ID. Use Find customer by email to get it.
Namespacenamespacetext
Only data from this source, such as reviews or loyalty. Leave empty for all.
Limitlimitnumber
How many activities to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "activityId": "example",
        "date": "example",
        "namespace": "example",
        "title": "example"
      }
    ],
    "next_page": "example"
  }
}

List customer profile data

List what Okendo knows about a customer, grouped by source, such as answers to profile questions.

Inputs

Customer IDcustomer_idtextRequired
The customer's Okendo ID. Use Find customer by email to get it.
Namespacenamespacetext
Only data from this source, such as reviews or loyalty. Leave empty for all.
Limitlimitnumber
How many profiles to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "namespace": "example",
        "properties": [
          {
            "date": "example",
            "name": "example",
            "value": "example",
            "valueType": "example"
          }
        ]
      }
    ],
    "next_page": "example"
  }
}

List loyalty coupons

List the unused coupons a shopper has from the loyalty program.

Inputs

Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.
Limitlimitnumber
How many coupons to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "appliesToCollectionIds": [
          "example"
        ],
        "appliesToProductIds": [
          "example"
        ],
        "code": "example",
        "description": "example",
        "displayType": "example",
        "expiryDate": "example",
        "maximumShipping": 1,
        "minimumPurchase": 1,
        "purchaseType": "example",
        "recurringCycleLimit": 1,
        "value": 1,
        "valueType": "example"
      }
    ],
    "next_page": "example"
  }
}

List quiz responses

List the responses to a quiz, with each answer and the products it recommended, newest first.

Inputs

Quizquiz_idtextRequired
The quiz.
Orderorder_bytext
Newest responses first (the default) or oldest first.One of: date desc (Newest first), date asc (Oldest first).
Limitlimitnumber
How many responses to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "answeredQuestions": [
          {
            "answer": "example",
            "id": "example",
            "text": "example",
            "type": "example"
          }
        ],
        "channel": "example",
        "customer": {
          "customerId": "example",
          "email": "example"
        },
        "dateCreated": "example",
        "emailMarketingOptIn": true,
        "order": {
          "remoteOrderId": "example"
        },
        "quizId": "example",
        "quizName": "example",
        "quizResponseId": "example",
        "recommendation": {},
        "reward": {
          "description": "example",
          "type": "example",
          "value": "example"
        }
      }
    ],
    "next_page": "example"
  }
}

List quizzes

List your product quizzes, with their status and how many responses each has.

Inputs

Orderorder_bytext
Newest quizzes first (the default) or oldest first.One of: date desc (Newest first), date asc (Oldest first).
Limitlimitnumber
How many quizzes to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "dateCreated": "example",
        "dateUpdated": "example",
        "name": "example",
        "quizId": "example",
        "responseCount": 1,
        "status": "example"
      }
    ],
    "next_page": "example"
  }
}

List reviews

List your store's reviews, newest first, by moderation status and tag.

Inputs

Statusstatustext
Only reviews with this moderation status. Okendo's default is published reviews.One of: approved (Published), pending (Waiting for moderation), rejected.
Tagstagslist
Only reviews with any of these tags, up to 10.
Orderorder_bytext
Newest first (the default), oldest first, or by star rating.One of: date desc (Newest first), date asc (Oldest first), rating desc (Highest rating first), rating asc (Lowest rating first).
Limitlimitnumber
How many reviews to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "attributesWithRating": [
          {
            "maxLabel": "example",
            "minLabel": "example",
            "title": "example",
            "type": "example",
            "value": 1
          }
        ],
        "body": "example",
        "containsProfanity": true,
        "dateCreated": "example",
        "helpfulCount": 1,
        "isIncentivized": true,
        "isRecommended": true,
        "media": [
          {
            "fullSizeUrl": "example",
            "isHidden": true,
            "largeUrl": "example",
            "streamId": "example",
            "thumbnailUrl": "example",
            "type": "example"
          }
        ],
        "order": {
          "orderId": "example",
          "orderNumber": "example"
        },
        "productAttributes": [
          {
            "title": "example",
            "type": "example",
            "value": "example"
          }
        ],
        "productId": "example",
        "productName": "example",
        "rating": 1,
        "reply": {
          "body": "example",
          "dateCreated": "example",
          "isPrivate": true,
          "rawBody": "example"
        },
        "reviewId": "example",
        "reviewer": {
          "avatarUrl": "example",
          "displayName": "example",
          "email": "example",
          "isVerified": true,
          "location": {
            "country": {
              "code": "example",
              "name": "example"
            },
            "zoneCode": "example"
          },
          "name": "example",
          "verifiedStatus": "example"
        },
        "reward": {
          "description": "example",
          "type": "example",
          "value": "example"
        },
        "sentiment": "example",
        "source": "example",
        "status": "example",
        "subscriberId": "example",
        "tags": [
          "example"
        ],
        "title": "example",
        "unhelpfulCount": 1,
        "variantId": "example",
        "variantName": "example"
      }
    ],
    "next_page": "example"
  }
}

List rewards

List the rewards shoppers can spend points on, optionally with one shopper's amounts.

Inputs

Emailemailtext
The shopper's email address. Leave empty for none.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "expiresAfterDays": 1,
        "minimumPurchase": 1,
        "purchaseType": "example",
        "recurringCycleLimit": 1,
        "redemptionRuleId": "example",
        "reward": {
          "awardVia": "example",
          "points": 1,
          "value": 1
        },
        "type": "example"
      }
    ]
  }
}

List survey responses

List the responses to a survey, with each answer and who gave it, newest first.

Inputs

Surveysurvey_idtextRequired
The survey.
Orderorder_bytext
Newest responses first (the default) or oldest first.One of: date desc (Newest first), date asc (Oldest first).
Limitlimitnumber
How many responses to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "answeredQuestions": [
          {
            "answer": "example",
            "id": "example",
            "text": "example",
            "type": "example"
          }
        ],
        "channel": "example",
        "customer": {
          "customerId": "example",
          "email": "example"
        },
        "dateCreated": "example",
        "emailMarketingOptIn": true,
        "isArchived": true,
        "order": {
          "remoteOrderId": "example"
        },
        "reward": {
          "description": "example",
          "type": "example",
          "value": "example"
        },
        "surveyId": "example",
        "surveyName": "example",
        "surveyResponseId": "example"
      }
    ],
    "next_page": "example"
  }
}

List surveys

List your surveys, including archived ones, with how many responses each has.

Inputs

Orderorder_bytext
Newest surveys first (the default) or oldest first.One of: date desc (Newest first), date asc (Oldest first).
Limitlimitnumber
How many surveys to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "dateCreated": "example",
        "dateLastResponse": "example",
        "dateUpdated": "example",
        "isArchived": true,
        "name": "example",
        "responseCount": 1,
        "surveyId": "example"
      }
    ],
    "next_page": "example"
  }
}

List tags

List the tags you can put on reviews.

Inputs

Starts withprefixtext
Only tags that start with this text.
Limitlimitnumber
How many tags to return, from 1 to 100. Okendo's default is 25.From 1 to 100.
Next pagenext_pagetext
To read the next page, the next_page value a previous list step returned.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      "example"
    ],
    "next_page": "example"
  }
}

List ways to earn

List the ways shoppers earn points or rewards, optionally as one shopper sees them.

Inputs

Emailemailtext
The shopper's email address. Leave empty for none.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "amount": 1,
        "awardVia": "example",
        "expiresAfterDays": 1,
        "minimumPurchase": 1,
        "purchaseType": "example",
        "type": "example",
        "value": 1,
        "waitTimeDays": 1
      }
    ]
  }
}

Moderate review

Publish or reject a review, or send it back to waiting for moderation.

Inputs

Reviewreview_idtextRequired
The review.
StatusstatustextRequired
The review's new moderation status.One of: approved (Published), pending (Waiting for moderation), rejected.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "attributesWithRating": [
      {
        "maxLabel": "example",
        "minLabel": "example",
        "title": "example",
        "type": "example",
        "value": 1
      }
    ],
    "body": "example",
    "containsProfanity": true,
    "dateCreated": "example",
    "helpfulCount": 1,
    "isIncentivized": true,
    "isRecommended": true,
    "media": [
      {
        "fullSizeUrl": "example",
        "isHidden": true,
        "largeUrl": "example",
        "streamId": "example",
        "thumbnailUrl": "example",
        "type": "example"
      }
    ],
    "order": {
      "orderId": "example",
      "orderNumber": "example"
    },
    "productAttributes": [
      {
        "title": "example",
        "type": "example",
        "value": "example"
      }
    ],
    "productId": "example",
    "productName": "example",
    "rating": 1,
    "reply": {
      "body": "example",
      "dateCreated": "example",
      "isPrivate": true,
      "rawBody": "example"
    },
    "reviewId": "example",
    "reviewer": {
      "avatarUrl": "example",
      "displayName": "example",
      "email": "example",
      "isVerified": true,
      "location": {
        "country": {
          "code": "example",
          "name": "example"
        },
        "zoneCode": "example"
      },
      "name": "example",
      "verifiedStatus": "example"
    },
    "reward": {
      "description": "example",
      "type": "example",
      "value": "example"
    },
    "sentiment": "example",
    "source": "example",
    "status": "example",
    "subscriberId": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "unhelpfulCount": 1,
    "variantId": "example",
    "variantName": "example"
  }
}

Redeem points for reward

Spend a shopper's points on a reward, such as a coupon or store credit.

Inputs

Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.
Rewardreward_idtextRequired
The reward to redeem.
Points to spendvariable_pointsnumber
For a reward of variable value: how many points to spend.At least 1.
Reward valuevariable_valuenumber
For a reward of variable value: the value those points buy.At least 0.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "loyaltyCustomer": {
      "points": {
        "balance": 1
      }
    },
    "reward": {
      "code": "example",
      "status": "example",
      "storeCredit": {
        "balanceAmount": "example",
        "transactionAmount": "example"
      },
      "type": "example"
    },
    "transactionDetails": {
      "amount": 1
    }
  }
}

Remove tags from review

Take tags off a review. Returns the tags it still has.

Inputs

Reviewreview_idtextRequired
The review.
TagstagslistRequired
The tags to take off. Tags the review doesn't have are ignored.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "tags": [
      "example"
    ]
  }
}

Reply to review

Reply to a review, publicly or privately, and optionally email the reviewer.

Inputs

Reviewreview_idtextRequired
The review.
ReplyreplytextRequired
What to reply. You can use Markdown.
Private replyis_privatetrue/false
Keep the reply private instead of showing it under the review.
Email the revieweremail_reviewertrue/false
Email the reply to the reviewer.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "attributesWithRating": [
      {
        "maxLabel": "example",
        "minLabel": "example",
        "title": "example",
        "type": "example",
        "value": 1
      }
    ],
    "body": "example",
    "containsProfanity": true,
    "dateCreated": "example",
    "helpfulCount": 1,
    "isIncentivized": true,
    "isRecommended": true,
    "media": [
      {
        "fullSizeUrl": "example",
        "isHidden": true,
        "largeUrl": "example",
        "streamId": "example",
        "thumbnailUrl": "example",
        "type": "example"
      }
    ],
    "order": {
      "orderId": "example",
      "orderNumber": "example"
    },
    "productAttributes": [
      {
        "title": "example",
        "type": "example",
        "value": "example"
      }
    ],
    "productId": "example",
    "productName": "example",
    "rating": 1,
    "reply": {
      "body": "example",
      "dateCreated": "example",
      "isPrivate": true,
      "rawBody": "example"
    },
    "reviewId": "example",
    "reviewer": {
      "avatarUrl": "example",
      "displayName": "example",
      "email": "example",
      "isVerified": true,
      "location": {
        "country": {
          "code": "example",
          "name": "example"
        },
        "zoneCode": "example"
      },
      "name": "example",
      "verifiedStatus": "example"
    },
    "reward": {
      "description": "example",
      "type": "example",
      "value": "example"
    },
    "sentiment": "example",
    "source": "example",
    "status": "example",
    "subscriberId": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "unhelpfulCount": 1,
    "variantId": "example",
    "variantName": "example"
  }
}

Set minimum VIP tier

Keep a shopper in at least this VIP tier, until a date or for good.

Inputs

Emailemailtext
The shopper's email address. Give this or the loyalty ID.
Loyalty IDloyalty_customer_idtext
The shopper's loyalty ID, instead of their email address.
VIP tiertier_nametextRequired
The VIP tier's name, exactly as in Okendo, such as Gold.
Untilexpiresdate and time
When the minimum tier ends. Leave empty to keep it for good.

Outputs

dataobject
The response from Okendo.
Example output
{
  "data": {
    "dateMinimumVipTierExpires": "example",
    "minimumVipTierName": "example",
    "vipTierName": "example"
  }
}

On this page