Skip to content

Delete a selling plan (soft delete)

API v1 is the older API. It still works, but new integrations should use API v2. Migrating from v1 to v2

DELETE/external/preorders/{id}

Costs 2 rate-limit points · Rate limits

Soft-delete a preorder selling plan by ID. The plan is discarded (its discarded_at is set) and detached from the storefront, but historical preorder data is preserved. Returns 404 if the plan does not exist and 422 if it could not be deleted.

Path parameters

  • idstringRequired

    Selling plan ID

Headers

  • X-Auth-TokenstringRequired

    API key for authentication

Returns

  • successboolean
    Example: true
  • messagestring
    Example: Selling plan deleted

Errors

401

Unauthorized

404

Selling plan not found

422

Failed to delete selling plan

DELETE/external/preorders/{id}
curl -X DELETE "https://app.stoqapp.com/api/v1/external/preorders/79b44c6c-ebc7-41d4-8a1b-573d7c693454" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
{
  "success": true,
  "message": "Selling plan deleted"
}