Skip to main content

Delete Promo Code

Delete an existing promotional code.

Endpointโ€‹

DELETE /v1/promo-codes/{id}

Authenticationโ€‹

Requires an API key with the promotions:write scope.

Path Parametersโ€‹

ParameterTypeDescription
idintegerThe promo code ID

Example Requestโ€‹

curl -X DELETE "https://app.equipdash.com/api/v1/promo-codes/1" \
-H "Authorization: Bearer YOUR_API_KEY"

Responseโ€‹

Returns 204 No Content on success.

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
403insufficient_scopeAPI key lacks promotions:write scope
403forbiddenPromo code belongs to different supplier
404resource_not_foundPromo code does not exist

Notesโ€‹

  • Deleting a promo code is permanent and cannot be undone
  • Historical usage records are preserved for reporting purposes
  • Consider setting the status to inactive instead if you want to preserve the promo code