vellTRDocs

Aboneliği İptal Et

POST/v1/subscriptions/{id}/cancelOptional

Aboneliği hemen (atPeriodEnd=false) veya mevcut dönemin sonunda (atPeriodEnd=true) iptal eder.

Kimlik Doğrulama

İmza Deseni

HMAC-SHA256(secretKey, "{timestamp}\nPOST\n/v1/subscriptions/{id}/cancel\n{sha256(body)}")
BaşlıkDeğerAçıklama
X-Api-Keypk_live_a1b2c3d4e5f6g7h8Merchant public API key
X-Signature{hmac_sha256_hex}Hex HMAC-SHA256 request signature
X-Timestamp2026-04-13T10:00:00ZISO 8601 UTC request time (±5 min)

İstek Parametreleri

AdTürZorunluAçıklama
atPeriodEndbooleanZorunluCancel now (false) or at period end (true)
reasonstringİsteğe BağlıCancellation reason

İstek Örneği

JSONİstek Gövdesi
{
  "atPeriodEnd": true,
  "reason": "Customer requested"
}

Yanıt Parametreleri

AlanTürÖrnek
idstring"sub_5e6f70819a2b"
statusstring"active"
cancelAtPeriodEndbooleantrue

Yanıt Örneği

JSONYanıt
{
  "id": "sub_5e6f70819a2b",
  "status": "active",
  "cancelAtPeriodEnd": true
}

Durum Kodları

200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
DeneSahte
POSThttps://api.pay.sandbox.kvell.group