Ana içeriğe atla
POST
/
v1
/
accounts
/
update-subscription
Abonelik Planını Güncelle
curl --request POST \
  --url https://api.iklim.co/v1/accounts/update-subscription \
  --header 'Content-Type: application/json' \
  --data '{
  "accountId": "296ff917-9b4b-4dc1-987d-2c17bdac7133",
  "userId": "296ff917-9b4b-4dc1-987d-2c17bdac7133",
  "subscriptionPlan": "NONE/TRIAL/BASIC_MONTHLY/BASIC_YEARLY/PREMIUM_MONTHLY/PREMIUM_YEARLY/CUSTOM",
  "planDetails": {
    "subscriptionExpirationEpoch": 1767214799999,
    "details": [
      {
        "limitResetRecurrence": {
          "limitType": "DAILY/WEEKLY/MONTHLY/YEARLY/QUOTA",
          "limitResetInterval": 1
        },
        "geoBoundary": {
          "country": "Türkiye",
          "region": "All"
        },
        "apiServiceLimits": [
          {
            "version": "v1",
            "serviceName": "lightnings",
            "maxInvocation": 1000
          }
        ]
      }
    ]
  }
}'
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptionPlan": "NONE",
"subscriptionExpirationEpoch": 123,
"warnings": [
"<string>"
]
}

Body

application/json
accountId
string<uuid>
required

Aboneliği Güncellenecek Hesabın Kimlik Belirteci

Example:

"296ff917-9b4b-4dc1-987d-2c17bdac7133"

userId
string<uuid>
required

Aboneliği Güncellenecek Kullanıcının Kimlik Belirteci

Example:

"296ff917-9b4b-4dc1-987d-2c17bdac7133"

subscriptionPlan
enum<string>
required

Yeni Abonelik Planı

Mevcut seçenekler:
NONE,
TRIAL,
BASIC_MONTHLY,
BASIC_YEARLY,
PREMIUM_MONTHLY,
PREMIUM_YEARLY,
CUSTOM
Example:

"NONE/TRIAL/BASIC_MONTHLY/BASIC_YEARLY/PREMIUM_MONTHLY/PREMIUM_YEARLY/CUSTOM"

planDetails
object

Response

Abonelik planı başarıyla güncellendi

userId
string<uuid>
accountId
string<uuid>
subscriptionPlan
enum<string>
Mevcut seçenekler:
NONE,
TRIAL,
BASIC_MONTHLY,
BASIC_YEARLY,
PREMIUM_MONTHLY,
PREMIUM_YEARLY,
CUSTOM
subscriptionExpirationEpoch
integer
warnings
string[]