Skip to main content

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.

Request
mutation {
sellerDataUpdate(id: "U2VsbGVyOjI2",
input: { status: "APPROVED" }) {
ok
seller {
id
companyName
status
}
sellerErrors {
field
message
}
}
}

Was this page helpful?