Promo Codes

Delete Promo Code

Changed on

Archives a promo code so it cannot be used in future checkouts.

delete/promo_codes/{id}

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/promo_codes/{id}
  • Auth: HTTP bearer

Response

promo code deleted

deletedboolean required
idstring required

Example response

{
  "deleted": true,
  "id": "promo_xxxxxxxxxxxxxx"
}

Changes

    • breaking

      the response's body type changed from boolean to object for status

    • warning

      deleted the path request parameter id

    • info

      api tag Promo Codes added

    • info

      api tag Promo codes removed

    • info

      added the new optional header request parameter Api-Version-Date to all path's operations

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status