Delete Code

Delete Code API endpoint for Sweeppea. DELETE /codes/{id}. Complete documentation with code examples in cURL, JavaScript, and Python.

DELETE /api/v3/codes/{id}

Description

This endpoint allows you to delete code. Use this to manage your code/coupons data programmatically through the Sweeppea API.

Code Examples

curl -X DELETE "https://api-v3.sweeppea.com/codes/{id}" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"

Response

200 OK

{ "success": true, "data": {}, "message": "Operation completed successfully" }