Approve a Pending Seller
New sellers are created in the PENDING
state. A marketplace operator must approve these sellers before they get access to the system.
1
Query pending sellers
The following query returns the first 10 sellers in the pending state, ordered by the most recently created sellers first:
Request
query {
sellers(
first: 10
filter: { status: PENDING }
sortBy: { field: CREATED, direction: DESC }
) {
edges {
node {
id
companyName
status
created
}
}
}
}
2
Approve or decline a seller
Using the seller id
retrieved from the sellers
query, you can either approve or decline the seller.
- Approve a seller
- Decline a seller
Request
mutation {
sellerDataUpdate(id: "U2VsbGVyOjI2",
input: { status: "APPROVED" }) {
ok
seller {
id
companyName
status
}
sellerErrors {
field
message
}
}
}
Request
mutation {
sellerDataUpdate(id: "U2VsbGVyOjI3",
input: { status: "DECLINED" }) {
ok
seller {
id
companyName
status
}
sellerErrors {
field
message
}
}
}