Subscription Transactions

Activate Subscription

post

A subscription that was started as pending can be activated via this service.

Path parameters
subscriptionReferenceCodestringRequired

Reference code of the subscription that was started as pending.

Example: a2077643-bab7-4b73-85a5-7676c78d7c66
Header parameters
AuthorizationstringRequired

Authorization header; a Base64-encoded signed hash value that begins with IYZWSv2.

Content-TypestringRequired

Request body content type.

Example: application/json
Body
subscriptionReferenceCodestringOptional

Reference code of the subscription that was started as pending.

Example: a2077643-bab7-4b73-85a5-7676c78d7c66
Responses
200

Successful response

application/json
post
/v2/subscription/subscriptions/{subscriptionReferenceCode}/activate

Cancel Subscription

post

Cancels an active subscription.

Path parameters
subscriptionReferenceCodestringRequired

Reference code of the subscription to cancel.

Example: 009dac1a-00dc-41e8-a92f-2c24b18e27b9
Header parameters
AuthorizationstringRequired

Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Content-TypestringRequired

Content format of the request.

Example: application/json
Body
subscriptionReferenceCodestringOptional

Subscription reference code. Can optionally be sent in the request body.

Example: a2077643-bab7-4b73-85a5-7676c78d7c66
Responses
200

Successful response

application/json
post
/v2/subscription/subscriptions/{subscriptionReferenceCode}/cancel

Retry Subscription Payment

post

If a recurring payment fails for a subscription, use this service to retry the charge and collect the payment.

Header parameters
AuthorizationstringRequired

Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Content-TypestringRequired

Content format of the request.

Example: application/json
Body
referenceCodestringRequired

Reference code of the failed payment. This is the orderReferenceCode value provided in the webhook notification for the failed subscription payment.

Example: 009dac1a-00dc-41e8-a92f-2c24b18e27b9
Responses
200

Successful response

application/json
post
/v2/subscription/operation/retry

After the retry operation is successfully triggered, an additional webhook notification is sent for the newly created payment transaction.

Upgrade Subscription

post

You can change or upgrade the plan during the subscription, provided that the new plan belongs to the same product and the billing interval (paymentInterval and paymentIntervalCount) remains the same. Use this service for price changes.

Path parameters
subscriptionReferenceCodestringRequired

Reference code of the subscription to upgrade.

Example: 97fb885d-69e3-49ac-8590-9d05c9c6016e
Header parameters
AuthorizationstringRequired

Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Content-TypestringRequired

Content format of the request.

Example: application/json
Body
upgradePeriodstring · enumRequired

When the upgrade will take effect. Values:

  • NOW: Apply the change immediately.
  • NEXT_PERIOD: Apply the change at the next billing period.
Example: NOWPossible values:
newPricingPlanReferenceCodestringRequired

Reference code of the target pricing plan.

Example: dbffa857-40f5-48d1-9179-e9326ffb942d
useTrialbooleanOptional

If true, includes the trial period of the upgraded plan.

Example: false
resetRecurrenceCountbooleanOptional
  • true: Recalculates the subscription end date according to the new plan’s recurrenceCount.
  • false: Keeps the current plan’s end date and transfers it to the new plan.
Example: true
Responses
200

Successful response

application/json
post
/v2/subscription/subscriptions/{subscriptionReferenceCode}/upgrade

Subscription Card Update (Checkout Form)

post

Updates the credit card used in a subscription. In cases like payment failure or card expiry, merchants can prompt customers to update their card. The update can only be performed through the iyzico Checkout Form. A ₺1 validation charge is taken and immediately refunded to validate the updated card.

Header parameters
AuthorizationstringRequired

Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Content-TypestringRequired

Content format of the request.

Example: application/json
Body
callbackUrlstringRequired

Callback URL where the update result will be posted.

Example: https://www.merchant.com/callback
customerReferenceCodestringRequired

Reference code of the customer whose card will be updated.

Example: 279bb493-6fda-45e9-9368-2373ea43ff8d
subscriptionReferenceCodestringOptional

If updating on a specific subscription, the subscription reference code (optional).

Example: 52c732ba-b449-460b-b553-ab21f9074300
localestring · enumOptional

Response language preference.

Example: enPossible values:
Responses
200

Successful response

application/json
post
/v2/subscription/card-update/checkoutform/initialize

Get Subscription Detail

get

Returns full details of a subscription by its reference code.

Path parameters
subscriptionReferenceCodestringRequired

Reference code of the subscription to query.

Example: 732a16cc-2ec4-4399-9aab-656cb6f5249e
Header parameters
AuthorizationstringRequired

Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Content-TypestringRequired

Content format of the request.

Example: application/json
Body
subscriptionReferenceCodestringOptional

Subscription reference code. Can optionally be sent in the request body.

Example: 732a16cc-2ec4-4399-9aab-656cb6f5249e
Responses
200

Successful response

application/json
get
/v2/subscription/subscriptions/{subscriptionReferenceCode}
200

Successful response

Search Subscriptions

get

Retrieve subscription and payment details by filtering with various parameters, or without any parameters. For example, by sending only subscriptionStatus, you can list subscriptions with that status.

Path parameters
subscriptionReferenceCodestringOptional

Reference code of the subscription to query.

Example: 97fb885d-69e3-49ac-8590-9d05c9c6016e
customerReferenceCodestringOptional

Customer reference code.

Example: 279bb493-6fda-45e9-9368-2373ea43ff8d
pricingPlanReferenceCodestringOptional

Reference code of the pricing plan used in the subscription.

Example: dbffa857-40f5-48d1-9179-e9326ffb942d
parentstringOptional

Parent reference code used for matching in subscription updates.

Example: 670489f2-9224-4a71-af6c-7044d22f5d73
subscriptionStatusstring · enumOptional

Subscription status filter.

Example: ACTIVEPossible values:
startDateintegerOptional

Subscription start date.

Example: 2025-08-24 14:30:26
endDateintegerOptional

Subscription end date (epoch ms).

Example: 2025-08-24 14:30:26
pageintegerOptional

Page number.

Example: 1
countintegerOptional

Number of records per page.

Example: 20
Header parameters
AuthorizationstringRequired

Authorization header, a signed hash value that starts with IYZWSv2 and is generated in Base64 format.

Content-TypestringRequired

Content format of the request.

Example: application/json
Responses
200

Successful response

application/json
get
/v2/subscription/subscriptions

Last updated