Skip to main content
DELETE
/
promotional-codes
Delete a promotional code
curl --request DELETE \
  --url https://www.pushlapgrowth.com/api/v1/promotional-codes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "promotionalCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "message": "<string>",
  "deletedCode": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "code": "<string>"
  }
}

Deleting Promotional Codes

Delete a promotional code from your affiliate program. This removes the code but does not affect the parent coupon or other promotional codes.
Deleting a promotional code is permanent. Consider deactivating the code instead if you want to preserve historical data while preventing future use.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Promotional code delete details

promotionalCodeId
string<uuid>
required

The promotional code ID to delete

Response

Promotional code deleted successfully

message
string
deletedCode
object
I