Customer
Get customer
get details of single customer using id
GET
https://rewards-api.superassistant.io/customer
Query Parameters
Name | Type | Description |
---|---|---|
id* | Number | customer id generated by Shopify |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | API Key |
Get all customers
get details of all customers
GET
https://rewards-api.superassistant.io/customer/all
Query Parameters
Name | Type | Description |
---|---|---|
page | Number | default page is 1 |
limit | Number | default limit is 10 and max limit is 100 |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | API key |
Ban customer
ban customer form your rewards program
PUT
https://rewards-api.superassistant.io/customer/ban
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | API key |
Request Body
Name | Type | Description |
---|---|---|
id* | Number | customer id generated by Shopify |
banned* | Boolean |
Allot or Deduct points
Allot or deduct points manually to customer
PUT
https://rewards-api.superassistant.io/customer/points
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | API Key |
Request Body
Name | Type | Description |
---|---|---|
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 |
Issue Gift Card
issue gift card for customer
POST
https://rewards-api.superassistant.io/customer/giftcard
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | API Key |
Request Body
Name | Type | Description |
---|---|---|
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 |
Last updated