# Stamped

> Manage Stamped reviews, questions and review requests, read NPS responses, and manage loyalty customers, points and VIP tiers, with triggers for new reviews, questions, customers and loyalty activity.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/stamped

## Actions

### Adjust loyalty points

Add points to a customer's loyalty balance, or take them away with a negative number.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's Stamped ID, from List customers or Find customer.
- Points (`points`, number, required): How many points to add. Use a negative number, such as -50, to take points away.
- Reason (`reason`, text, required): Why the points changed, kept in the customer's activity.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activity": {
      "event": "example",
      "orderId": "example",
      "pointsCredit": 1,
      "pointsDebit": 1
    },
    "activityId": "example",
    "customerId": "example",
    "dateCreated": "example",
    "rule": {
      "category": "example",
      "description": "example",
      "title": "example",
      "type": "example"
    }
  }
}
```

### Answer question

Post the store's answer to a customer's question.

**Inputs**

- Question ID (`question_id`, number, required): The question's ID, from List questions. At least 1.
- Answer (`reply`, text, required): The answer.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Award custom activity

Give a customer the points of a custom earning rule you set up in Stamped, such as attending an event.

**Inputs**

- Customer email (`email`, text, required): The customer's email address.
- Custom activity rule ID (`rule_id`, text, required): The custom activity rule's ID, from its page in Stamped.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activityId": "example",
    "customerId": "example",
    "pointsAdded": 1,
    "ruleId": "example"
  }
}
```

### Change VIP tier

Move a customer to another VIP tier.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's Stamped ID, from List customers or Find customer.
- VIP tier (`tier_name`, text, required): The tier's name, exactly as it is in Stamped.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activity": {
      "event": "example",
      "orderId": "example",
      "pointsCredit": 1,
      "pointsDebit": 1
    },
    "activityId": "example",
    "customerId": "example",
    "dateCreated": "example",
    "rule": {
      "category": "example",
      "description": "example",
      "title": "example",
      "type": "example"
    }
  }
}
```

### Create customer

Add a customer, for stores not on Shopify or BigCommerce, which sync customers themselves.

**Inputs**

- Email (`email`, text): The customer's email address.
- Your customer ID (`custom_customer_id`, text): Your system's ID for the customer, for stores not on Shopify or BigCommerce.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Date of birth (`date_of_birth`, date): The customer's birthday.
- Tags (`tags`, list): Tags for the customer.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activity": {
      "totalAffiliateOrders": "example",
      "totalPoints": "example",
      "totalReviews": "example",
      "vipTier": "example"
    },
    "bigcommerceId": "example",
    "customCustomerId": "example",
    "customerId": "example",
    "dateOfBirth": "example",
    "datePlatformCreated": "example",
    "datePlatformUpdated": "example",
    "dateStampedCreated": "example",
    "dateStampedUpdated": "example",
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "referralCode": "example",
    "shopId": "example",
    "shopifyId": "example",
    "tags": [
      "example"
    ],
    "unsubscribed": [
      "example"
    ]
  }
}
```

### Create question

Add a customer's question about a product.

**Inputs**

- Product ID (`product_id`, text, required): The product's ID in your store.
- Name (`name`, text, required): The name of the person asking.
- Email (`email`, text, required): The email address of the person asking.
- Question (`question`, text, required): The question.
- Product name (`product_name`, text): The product's name.
- Product SKU (`product_sku`, text): The product's SKU.
- Product URL (`product_url`, text): The product's page on your store.
- Product image URL (`product_image_url`, text): The product's image.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Create review

Add a product review, such as one collected in a shop or another system.

**Inputs**

- Product ID (`product_id`, text, required): The product's ID in your store, matching your Stamped product catalog.
- Reviewer name (`author`, text, required): The reviewer's name.
- Reviewer email (`email`, text, required): The reviewer's email address.
- Rating (`rating`, text, required): The star rating. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- Title (`title`, text): The review's title.
- Review (`message`, text, required): The review's text.
- Product name (`product_name`, text): The product's name as your store shows it.
- Product URL (`product_url`, text): The product's page on your store.
- Product image URL (`product_image_url`, text): The product's image.
- Product SKU (`product_sku`, text): The product's SKU.
- Product type (`product_type`, text): The product's type.
- Reviewer location (`location`, text): Where the reviewer is.
- Recommends the product (`recommends`, true/false): Whether the reviewer recommends the product.
- Reviewer reference (`user_reference`, text): Your own reference for the reviewer.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Create review request

Schedule a review request email for an order, asking the customer to review what they bought.

**Inputs**

- Customer email (`email`, text, required): The customer's email address.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Location (`location`, text): Where the customer is, such as United States.
- Order number (`order_number`, text, required): The order number customers see, such as 1045.
- Order ID (`order_id`, text, required): Your system's ID for the order.
- Currency (`currency`, text): The order's three-letter currency code, such as USD.
- Order total (`total`, number): The order's total price.
- Order source (`source`, text): Where the order was placed, such as web or pos.
- Order date (`order_date`, date and time): When the order was placed.
- Send at (`send_at`, date and time): When to send the review request. Leave empty to follow your Stamped schedule.
- Products (`items`, list, required): The products in the order, each with its productId and productTitle; add productURL and productImageURL so the request shows them. A plain product ID works too.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "created": true,
    "email": "example",
    "response": {}
  }
}
```

### Delete customer

Delete a customer.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's Stamped ID, from List customers or Find customer.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "softDelete": true
  }
}
```

### Delete review request

Delete a review request so it is never sent.

**Inputs**

- Review request ID (`request_id`, number, required): The review request's ID, from List review requests. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Find customer

Find a customer by email address or by their ID in your store.

**Inputs**

- Email (`email`, text): The customer's email address.
- Your customer ID (`custom_customer_id`, text): Your system's ID for the customer.
- Shopify customer ID (`shopify_id`, text): The customer's Shopify ID.
- BigCommerce customer ID (`bigcommerce_id`, text): The customer's BigCommerce ID.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activity": {
      "totalAffiliateOrders": "example",
      "totalPoints": "example",
      "totalReviews": "example",
      "vipTier": "example"
    },
    "bigcommerceId": "example",
    "customCustomerId": "example",
    "customerId": "example",
    "dateOfBirth": "example",
    "datePlatformCreated": "example",
    "datePlatformUpdated": "example",
    "dateStampedCreated": "example",
    "dateStampedUpdated": "example",
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "referralCode": "example",
    "shopId": "example",
    "shopifyId": "example",
    "tags": [
      "example"
    ],
    "unsubscribed": [
      "example"
    ]
  }
}
```

### Get customer

Get a customer with their points, VIP tier and review count.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's Stamped ID, from List customers or Find customer.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activity": {
      "totalAffiliateOrders": "example",
      "totalPoints": "example",
      "totalReviews": "example",
      "vipTier": "example"
    },
    "bigcommerceId": "example",
    "customCustomerId": "example",
    "customerId": "example",
    "dateOfBirth": "example",
    "datePlatformCreated": "example",
    "datePlatformUpdated": "example",
    "dateStampedCreated": "example",
    "dateStampedUpdated": "example",
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "referralCode": "example",
    "shopId": "example",
    "shopifyId": "example",
    "tags": [
      "example"
    ],
    "unsubscribed": [
      "example"
    ]
  }
}
```

### Get review request

Get a review request: who it goes to, for which order and products, and when.

**Inputs**

- Review request ID (`request_id`, number, required): The review request's ID, from List review requests. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "dateScheduled": "example",
    "email": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "orderId": "example",
    "orderNumber": "example"
  }
}
```

### List customers

List customers, filtered by email, name, points, reviews, VIP tier, tags or sign-up date.

**Inputs**

- Email starts with (`email`, text): Only customers whose email address starts with this.
- First name starts with (`first_name`, text): Only customers whose first name starts with this.
- Last name starts with (`last_name`, text): Only customers whose last name starts with this.
- Created since (`created_since`, date and time): Only customers created at or after this time.
- Created until (`created_until`, date and time): Only customers created at or before this time.
- Minimum points (`points_min`, number): Only customers with at least this many points. At least 0.
- Maximum points (`points_max`, number): Only customers with at most this many points. At least 0.
- Minimum reviews (`reviews_min`, number): Only customers with at least this many reviews. At least 0.
- VIP tier (`vip_tier`, text): Only customers in this VIP tier.
- Tags (`tags`, list): Only customers with these tags.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "customers": [
      {
        "activity": {
          "totalAffiliateOrders": "example",
          "totalPoints": "example",
          "totalReviews": "example",
          "vipTier": "example"
        },
        "bigcommerceId": "example",
        "customCustomerId": "example",
        "customerId": "example",
        "dateOfBirth": "example",
        "datePlatformCreated": "example",
        "datePlatformUpdated": "example",
        "dateStampedCreated": "example",
        "dateStampedUpdated": "example",
        "email": "example",
        "firstName": "example",
        "lastName": "example",
        "referralCode": "example",
        "shopId": "example",
        "shopifyId": "example",
        "tags": [
          "example"
        ],
        "unsubscribed": [
          "example"
        ]
      }
    ],
    "limit": 1,
    "morePages": true,
    "page": 1
  }
}
```

### List loyalty activities

List the program's loyalty activities: points earned, spent and adjusted.

**Inputs**

- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`limit`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activities": [
      {
        "activity": {
          "event": "example",
          "orderId": "example",
          "pointsCredit": 1,
          "pointsDebit": 1
        },
        "activityId": "example",
        "customerId": "example",
        "dateCreated": "example",
        "rule": {
          "category": "example",
          "description": "example",
          "title": "example",
          "type": "example"
        }
      }
    ],
    "limit": 1,
    "morePages": true,
    "page": 1
  }
}
```

### List loyalty rewards

List the rewards customers have redeemed, with their coupon codes and status.

**Inputs**

- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`limit`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "limit": 1,
    "morePages": true,
    "page": 1,
    "rewards": [
      {
        "activityId": "example",
        "category": "example",
        "couponCode": "example",
        "customerId": "example",
        "dateCreated": "example",
        "dateOfExpiry": "example",
        "description": "example",
        "rewardId": "example",
        "status": "example",
        "title": "example",
        "type": "example",
        "value": "example"
      }
    ]
  }
}
```

### List NPS responses

List Net Promoter Score responses: how likely customers are to recommend you, from 0 to 10.

**Inputs**

- Search (`search`, text): Only responses containing these words.
- Score (`rating`, number): Only responses with this score, from 0 to 10. From 0 to 10.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### List questions

List the questions customers have asked about your products.

**Inputs**

- Search (`search`, text): Only questions containing these words.
- State (`state`, text): Only published, unpublished or archived questions. One of: `published`, `unpublished`, `archived`.
- Asked from (`date_from`, date): Only questions asked on or after this date.
- Asked until (`date_to`, date): Only questions asked on or before this date.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### List review requests

List the review request emails scheduled and sent for orders.

**Inputs**

- Search (`search`, text): Only requests matching this email address, name or order number.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "dateScheduled": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "orderId": "example",
        "orderNumber": "example"
      }
    ],
    "total": 1,
    "totalPages": 1
  }
}
```

### List reviews

List the store's reviews, newest first, with filters for rating, state, reviewer and words in the review.

**Inputs**

- Search (`search`, text): Only reviews containing these words.
- Rating (`rating`, text): Only reviews with this rating. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- State (`state`, text): Only published, unpublished or archived reviews. One of: `published`, `unpublished`, `archived`.
- Reviewer email (`email`, text): Only reviews by this email address.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "customer": {
          "email": "example",
          "id": 1,
          "name": "example"
        },
        "orderId": "example",
        "review": {
          "author": "example",
          "body": "example",
          "dateCreated": "example",
          "dateUpdated": "example",
          "email": "example",
          "id": 1,
          "isRecommend": "example",
          "location": "example",
          "productId": 1,
          "productImageUrl": "example",
          "productTitle": "example",
          "productUrl": "example",
          "rating": 1,
          "reply": "example",
          "reviewState": 1,
          "title": "example"
        },
        "tags": [
          "example"
        ],
        "voteDown": 1,
        "voteUp": 1
      }
    ],
    "total": 1,
    "totalPages": 1
  }
}
```

### Publish review

Publish a review so it shows on your store.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID, from List reviews or the New review trigger. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Send review request now

Send a scheduled review request straight away.

**Inputs**

- Review request ID (`request_id`, number, required): The review request's ID, from List review requests. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Unpublish review

Hide a review from your store.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID, from List reviews or the New review trigger. At least 1.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```

### Update customer

Change a customer's details. Only the fields filled in change.

**Inputs**

- Customer ID (`customer_id`, text, required): The customer's Stamped ID, from List customers or Find customer.
- Email (`email`, text): The customer's email address.
- Your customer ID (`custom_customer_id`, text): Your system's ID for the customer, for stores not on Shopify or BigCommerce.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Date of birth (`date_of_birth`, date): The customer's birthday.
- Tags (`tags`, list): Tags for the customer.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {
    "activity": {
      "totalAffiliateOrders": "example",
      "totalPoints": "example",
      "totalReviews": "example",
      "vipTier": "example"
    },
    "bigcommerceId": "example",
    "customCustomerId": "example",
    "customerId": "example",
    "dateOfBirth": "example",
    "datePlatformCreated": "example",
    "datePlatformUpdated": "example",
    "dateStampedCreated": "example",
    "dateStampedUpdated": "example",
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "referralCode": "example",
    "shopId": "example",
    "shopifyId": "example",
    "tags": [
      "example"
    ],
    "unsubscribed": [
      "example"
    ]
  }
}
```

### Update review request

Change a scheduled review request: the customer, the order or when it is sent.

**Inputs**

- Review request ID (`request_id`, number, required): The review request's ID, from List review requests. At least 1.
- Customer email (`email`, text): The customer's email address.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Location (`location`, text): Where the customer is, such as United States.
- Order number (`order_number`, text): The order number customers see, such as 1045.
- Order ID (`order_id`, text): Your system's ID for the order.
- Currency (`currency`, text): The order's three-letter currency code, such as USD.
- Order total (`total`, number): The order's total price.
- Order source (`source`, text): Where the order was placed, such as web or pos.
- Order date (`order_date`, date and time): When the order was placed.
- Send at (`send_at`, date and time): When to send the review request. Leave empty to follow your Stamped schedule.
- Products (`items`, list): The products in the order, each with its productId and productTitle; add productURL and productImageURL so the request shows them. A plain product ID works too.

**Outputs**

- `data` (object): The response from Stamped.

**Example output**

```json
{
  "data": {}
}
```
