Feedback

All endpoints related to Feedback

Supported Endpoints

  • getAllFeedback(): Returns a list of all the feedback received.

  • getFeedback(id): Retrieves a feedback by the entered ID.

  • replyFeedback(id, replyMessage): Responds to a given feedback by the entered ID.


getAllFeedback()

Parameters
Type
Required
Description

limit

integer

Limit the number of feedback returned

page

integer

The page number you are attempting to access.

with_trashed

boolean

Include deleted feedback in the results

only_trashed

boolean

Limit the results to only deleted feedback

Usage
const Sellapp = require("sellapp-node");
const API = new Sellapp.API("YOUR_API_KEY");

API.feedback.getAllFeedback().then((res) => {
    console.log(res)
});

getFeedback()

Type
Required
Description

id

string

✔️

ID of a Blacklist

Usage
const Sellapp = require("sellapp-node");
const API = new Sellapp.API("YOUR_API_KEY");

API.feedback.getFeedback("666").then((res) => {
    console.log(res)
})


replyFeedback()

Parameters
Type
Required
Description

id

string

✔️

ID of the coupon you want to update

replyMessage

string

✔️

A reply message that was left by the store owner who received this rating

Usage
const Sellapp = require("sellapp-node");
const API = new Sellapp.API("YOUR_API_KEY");

API.feedback.replyFeedback("666", "Thanks for the positive feedback!").then((res) => {
    console.log(res); // blacklisting the said user with the string "evil user" as description
});

Last updated