Skip to main content
DELETE
/
products
/
{id}
Delete a product
curl --request DELETE \
  --url https://api.fyatu.com/api/v3.20/products/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "status": 200,
  "message": "Product deleted",
  "data": {
    "action": "deleted"
  },
  "meta": {
    "requestId": "req_a1b2c3d4e5f6a7b8c9d0e1f2",
    "platform": "Fyatu CaaS",
    "timestamp": "2026-05-26T11:30:00Z"
  }
}

Overview

Smart delete: a single DELETE call handles both cases automatically.
ConditionWhat happensdata.action
Product has no active cardsPermanently deleted — cannot be recovered"deleted"
Product has active cardsArchived — no new cards can be issued, existing cards unaffected"archived"
Check data.action in the response to know what was done. Archived products can be restored with POST /products/{id}/activate.

Path Parameters

ParameterTypeDescription
idstringThe product ID (prefix prd_)

Example

curl -X DELETE https://api.fyatu.com/api/v3.20/products/prd_01HXYZ1111ABCDEF0002 \
  -H "Authorization: Bearer $FYATU_API_KEY"

Success Response (200) — Permanently Deleted

{
  "success": true,
  "status":  200,
  "message": "Product deleted",
  "data":    { "action": "deleted" },
  "meta": {
    "requestId": "req_01HXY123456ABCDEF",
    "platform":  "Fyatu CaaS",
    "timestamp": "2026-05-26T11:30:00Z"
  }
}

Success Response (200) — Archived (Has Active Cards)

{
  "success": true,
  "status":  200,
  "message": "Product archived — has active cards",
  "data":    { "action": "archived" },
  "meta": {
    "requestId": "req_01HXY123456ABCDEF",
    "platform":  "Fyatu CaaS",
    "timestamp": "2026-05-26T11:30:00Z"
  }
}

Error Codes

CodeHTTPCause
PRODUCT_NOT_FOUND404Product does not exist or belongs to another business
INSUFFICIENT_SCOPE403Key lacks accounts:write scope
INTERNAL_ERROR500Server error

Authorizations

Authorization
string
header
required

API key from the FYATU CaaS portal. Pass as Authorization: Bearer <key>.

Path Parameters

id
string
required

Product ID (prefix prd_)

Response

Product deleted or archived

success
boolean
Example:

true

status
integer
Example:

200

message
string
data
object
meta
object