import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const entry = await client.entries.deny('entry_xxxxxxxxxxxx');
console.log(entry.id);{
"id": "entry_xxxxxxxxxxxx",
"plan": {
"id": "plan_xxxxxxxxxxxxx"
},
"product": {
"id": "prod_xxxxxxxxxxxxx",
"title": "Pickaxe Analytics"
},
"status": "drafted",
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42",
"email": "john.doe@example.com"
},
"created_at": "2023-12-01T05:00:00.401Z",
"custom_field_responses": [
{
"id": "cfrp_xxxxxxxxxxxxx",
"question": "<string>",
"answer": "<string>"
}
]
}Deny a pending waitlist entry, preventing the user from gaining access to the plan.
Required permissions:
plan:waitlist:manageplan:basic:readmember:email:readimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const entry = await client.entries.deny('entry_xxxxxxxxxxxx');
console.log(entry.id);{
"id": "entry_xxxxxxxxxxxx",
"plan": {
"id": "plan_xxxxxxxxxxxxx"
},
"product": {
"id": "prod_xxxxxxxxxxxxx",
"title": "Pickaxe Analytics"
},
"status": "drafted",
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42",
"email": "john.doe@example.com"
},
"created_at": "2023-12-01T05:00:00.401Z",
"custom_field_responses": [
{
"id": "cfrp_xxxxxxxxxxxxx",
"question": "<string>",
"answer": "<string>"
}
]
}A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the waitlist entry to deny.
"entry_xxxxxxxxxxxx"
A successful response
An entry represents a user's signup for a waitlisted plan.
The unique identifier for the entry.
"entry_xxxxxxxxxxxx"
The waitlisted plan that this entry is a signup for.
Show child attributes
The product associated with this entry's waitlisted plan. Null if the plan is not tied to a product.
Show child attributes
The current status of the waitlist entry (e.g., drafted, pending, approved, denied).
drafted, pending, approved, denied, any The user who submitted this waitlist entry.
Show child attributes
The datetime the entry was created.
"2023-12-01T05:00:00.401Z"
The list of responses collected from the user when submitting their waitlist entry.
Show child attributes
Was this page helpful?