Delete a Checkout Session
curl --request DELETE \
--url https://api.whop.com/api/v2/checkout_sessions/{id}
{
"affiliate_code": "<string>",
"id": "<string>",
"metadata": {},
"plan_id": "<string>",
"purchase_url": "<string>",
"redirect_url": "<string>"
}
Headers
Your API key, which can be found on the Whop Business Dashboard. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************
Path Parameters
The ID of the session, which will look like ch_*************
Response
The code to apply as the affiliate for the transaction. Codes are a User object's username
field.
The ID of the session, which will look like ch_*************
The metadata that will be attached to the Membership upon successful purchase.
The ID of the plan that the checkout session is associated with, which will look like plan_*************
The URL that the customer can use to purchase with this checkout session.
The URL the user will be navigated to after successfully completing a checkout with this session
Was this page helpful?
curl --request DELETE \
--url https://api.whop.com/api/v2/checkout_sessions/{id}
{
"affiliate_code": "<string>",
"id": "<string>",
"metadata": {},
"plan_id": "<string>",
"purchase_url": "<string>",
"redirect_url": "<string>"
}