Skip to main content
POST
/
cards
/
{id}
/
terminate
Terminate a card
curl --request POST \
  --url https://api.fyatu.com/api/v3.20/cards/{id}/terminate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "confirm": "TERMINATE_CARD"
}
'
{
  "success": true,
  "status": 200,
  "message": "Card terminated",
  "data": {
    "id": "crd_01HXYZ5555ABCDEF1111",
    "cardholderId": "chl_01HXYZ1234ABCDEF5678",
    "programId": "prg_01HXYZ9876ABCDEF0000",
    "status": "TERMINATED",
    "cardBrand": "VISA",
    "maskedPan": "**** **** **** 4242",
    "last4": "4242",
    "expiresAt": "2029-05-31T23:59:59Z",
    "frozenAt": null,
    "terminatedAt": "2026-05-22T10:00:00Z",
    "environment": "LIVE",
    "createdAt": "2026-05-22T09:00:00Z",
    "updatedAt": "2026-05-22T10:00:00Z"
  },
  "meta": {
    "requestId": "req_a1b2c3d4e5f6a7b8c9d0e1f2",
    "platform": "Fyatu CaaS",
    "timestamp": "2026-05-22T10:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Permanently terminates a card. Once terminated:
  • All future transactions are declined immediately
  • Any remaining card balance is returned to the program ledger
  • The card cannot be reactivated — issue a new card if needed
Termination is irreversible. To temporarily block a card, use POST /cards/{id}/freeze instead. Only terminate when you are certain the card should never transact again.

Safety Confirmation

To prevent accidental termination, the request body must include:
{ "confirm": "TERMINATE_CARD" }
Omitting this field or using any other value returns 400 CONFIRMATION_REQUIRED.

Path Parameters

ParameterTypeDescription
idstringThe card ID (prefix crd_)

Request Body

FieldTypeRequiredValue
confirmstringYesMust be exactly "TERMINATE_CARD"

Example

curl -X POST https://api.fyatu.com/api/v3.20/cards/crd_01HXYZ5555ABCDEF1111/terminate \
  -H "Authorization: Bearer $FYATU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "confirm": "TERMINATE_CARD" }'

Success Response (200)

Returns the updated card object with status: TERMINATED:
{
  "success": true,
  "status": 200,
  "message": "Card terminated",
  "data": {
    "id":           "crd_01HXYZ5555ABCDEF1111",
    "cardholderId": "chl_01HXYZ1234ABCDEF5678",
    "programId":    "prg_01HXYZ9876ABCDEF0000",
    "status":       "TERMINATED",
    "cardBrand":    "VISA",
    "maskedPan":    "**** **** **** 4242",
    "last4":        "4242",
    "expiryMonth":  5,
    "expiryYear":   2029,
    "currency":     "USD",
    "terminatedAt": "2026-05-22T10:00:00Z",
    "environment":  "LIVE",
    "createdAt":    "2026-05-22T09:00:00Z",
    "updatedAt":    "2026-05-22T10:00:00Z"
  },
  "meta": {
    "requestId": "req_01HXY123456ABCDEF",
    "platform": "Fyatu CaaS",
    "timestamp": "2026-05-22T10:00:00Z"
  }
}

Webhook

A CARD_TERMINATED event fires after successful termination:
{
  "event":      "CARD_TERMINATED",
  "eventId":    "evt_01HXY123456ABCDEF",
  "businessId": "BUS1A2B3C4D5E6F",
  "environment": "LIVE",
  "timestamp":  "2026-05-22T10:00:00Z",
  "data": {
    "cardId":                "crd_01HXYZ5555ABCDEF1111",
    "cardholderId":          "chl_01HXYZ1234ABCDEF5678",
    "programId":             "prg_01HXYZ9876ABCDEF0000",
    "status":                "TERMINATED",
    "remainingCents":        0,
    "refundedToProgramCents": 0
  }
}

Error Codes

CodeHTTPCause
CONFIRMATION_REQUIRED400confirm field is missing or not "TERMINATE_CARD"
CARD_NOT_FOUND404Card does not exist or belongs to another business/environment
CARD_ALREADY_TERMINATED409Card is already terminated
CARD_HAS_PENDING_TRANSACTIONS409Pending authorizations must clear before termination (typically 24–72 hours)
INSUFFICIENT_SCOPE403Key lacks cards:write scope

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
confirm
enum<string>
required
Available options:
TERMINATE_CARD

Response

Card terminated

success
boolean
Example:

true

status
integer
Example:

200

message
string
Example:

"Card retrieved"

data
object
meta
object