Customer

Get customer

get details of single customer using id

GET https://rewards-api.superassistant.io/customer

Query Parameters

NameTypeDescription

id*

Number

customer id generated by Shopify

Headers

NameTypeDescription

x-api-key*

String

API Key

{
    "customerId": 5389371506881,
    "name": "Chirag Gupta",
    "email": "wamessages220@gmail.com",
    "points": 0,
    "birth_day": null,
    "birth_month": null,
    "tierName": "bronze",
    "isCustomerBan": false,
    "referralsCompleted": 0,
    "referralLink": "https://super-neil-test.myshopify.com/?ref=SUPER5301627622632"
}

Get all customers

get details of all customers

GET https://rewards-api.superassistant.io/customer/all

Query Parameters

NameTypeDescription

page

Number

default page is 1

limit

Number

default limit is 10 and max limit is 100

Headers

NameTypeDescription

x-api-key*

String

API key

{
    "customers": [
        {
            "customerId": 5389371506881,
            "name": "Chirag Gupta",
            "email": "wamessages220@gmail.com",
            "points": 0,
            "birth_day": null,
            "birth_month": null,
            "tierName": "bronze",
            "isCustomerBan": false,
            "referralsCompleted": 0
        }
    ],
    "page": 1,
    "totalCustomers": 1268
}

Ban customer

ban customer form your rewards program

PUT https://rewards-api.superassistant.io/customer/ban

Headers

NameTypeDescription

x-api-key*

String

API key

Request Body

NameTypeDescription

id*

Number

customer id generated by Shopify

banned*

Boolean

"success"

Allot or Deduct points

Allot or deduct points manually to customer

PUT https://rewards-api.superassistant.io/customer/points

Headers

NameTypeDescription

x-api-key*

String

API Key

Request Body

NameTypeDescription

id*

String

customer id generated by Shopify

points*

Number

use - in front to deduct points

notifyCustomer*

Boolean

we'll notify user by sending email

emailBody

String

required if notifyCustomer is true

emailSubject

String

required if notifyCustomer is true.

Hello {{customer_name}} - A small Gift From Us

reason

String

"success"

Issue Gift Card

issue gift card for customer

POST https://rewards-api.superassistant.io/customer/giftcard

Headers

NameTypeDescription

x-api-key*

String

API Key

Request Body

NameTypeDescription

id*

String

customer id generated by Shopify

initial_value*

String

gift card amount

expiryDate

String

expiry date format (YYYY-MM-DD)

emailBody*

String

email body

emailSubject*

String

Hello {{customer_name}} - A small Gift From Us

reason

String

for internal use

"success"

Last updated