Pricing Plan
Creates a new pricing plan for a specific product.
Reference code of the product the plan will be attached to.
Authorization header, IYZWSv2 ile başlayan ve base64 formatında üretilmiş imzalı hash değeridir.
Format of the request payload.
application/jsonPricing plan name.
Amount to charge on each billing period.
Currency. (For foreign currency, only non-TRY cards are allowed.)
Recurrence interval for the subscription charge.
Subscription type.
Frequency multiplier for the interval. For example, if you set a weekly plan and send 2, the charge occurs every 2 weeks.
2Total number of repeats (e.g., 12 → 12 months). If omitted, it continues until the subscription is canceled.
12Free trial length in days. If provided, the first charge happens after this period.
10Language of the response and error messages.
Custom identifier for request tracking.
Successful response
Error response
POST https://api.iyzipay.com/v2/subscription/products/8d562f84-f8d5-441a-b086-9483fc5133a0/pricing-plans
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "conv-001",
"name": "Monthly Plan",
"recurrenceCount": 12,
"planPaymentType": "RECURRING",
"trialPeriodDays": 0,
"paymentIntervalCount": 1,
"paymentInterval": "MONTHLY",
"currencyCode": "TRY",
"price": 99.99
}
{
"status": "success",
"systemTime": 1755561449951,
"data": {
"referenceCode": "08159c1d-6fe9-4934-8a55-e191bd4119e0",
"createdDate": 1755552252531,
"name": "Monthly Plan",
"productReferenceCode": "8d562f84-f8d5-441a-b086-9483fc5133a0",
"price": 99.99,
"currencyCode": "TRY",
"paymentInterval": "MONTHLY",
"paymentIntervalCount": 1,
"planPaymentType": "RECURRING",
"recurrenceCount": 12,
"trialPeriodDays": 0,
"status": "ACTIVE"
}
}This method allows updating only the name and trialPeriodDays fields. The plan's reference code must be provided as a path parameter. Updates can be performed via API or the iyzico merchant panel. Active subscriptions are not affected.
Reference code of the pricing plan to be updated.
Authorization header, IYZWSv2 ile başlayan ve base64 formatında üretilmiş imzalı hash değeridir.
Format of the request payload.
application/jsonUpdated plan name.
Updated trial period (days).
Successful response
Error response
POST https://api.iyzipay.com/v2/subscription/pricing-plans/7515f763-5da3-4a35-8f7f-d425ae44ac04
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"name": "Updated Plan",
"trialPeriodDays": 5
}
{
"status": "success",
"systemTime": 1755587559228,
"data": {
"referenceCode": "7515f763-5da3-4a35-8f7f-d425ae44ac04",
"createdDate": 1755587137033,
"name": "Updated Plan",
"price": 99.99,
"paymentInterval": "MONTHLY",
"paymentIntervalCount": 1,
"trialPeriodDays": 5,
"currencyCode": "TRY",
"productReferenceCode": "8d562f84-f8d5-441a-b086-9483fc5133a0",
"planPaymentType": "RECURRING",
"status": "ACTIVE",
"recurrenceCount": 12
}
}Deletes the specified pricing plan by reference code. Plans with active subscriptions or pending updates cannot be deleted.
Reference code of the pricing plan to delete.
Authorization header, IYZWSv2 ile başlayan ve base64 formatında üretilmiş imzalı hash değeridir.
Format of the request payload.
application/jsonSuccessful response
Error response
DELETE https://api.iyzipay.com/v2/subscription/pricing-plans/7515f763-5da3-4a35-8f7f-d425ae44ac04
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"status": "success",
"systemTime": 1755561449951
}Lists all pricing plans for a given product. The response is paginated.
Product reference code.
Page number to list.
Number of records per page.
Authorization header, IYZWSv2 ile başlayan ve base64 formatında üretilmiş imzalı hash değeridir.
Format of the request payload.
application/jsonSuccessful response
Error response
GET https://api.iyzipay.com/v2/subscription/products/8d562f84-f8d5-441a-b086-9483fc5133a0/pricing-plans?page=1&count=20
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"status": "success",
"systemTime": 1755561449951,
"data": {
"totalCount": 2,
"currentPage": 1,
"pageCount": 1,
"items": [
{
"referenceCode": "plan-123",
"name": "Monthly Plan",
"price": 99.99,
"currencyCode": "TRY",
"paymentInterval": "MONTHLY",
"paymentIntervalCount": 1,
"status": "ACTIVE"
},
{
"referenceCode": "plan-456",
"name": "Yearly Plan",
"price": 999.99,
"currencyCode": "TRY",
"paymentInterval": "YEARLY",
"paymentIntervalCount": 1,
"status": "ACTIVE"
}
]
}
}Returns details of a pricing plan. Merchants can see all details both in the merchant panel and via API.
Pricing plan reference code.
Authorization header, IYZWSv2 ile başlayan ve base64 formatında üretilmiş imzalı hash değeridir.
Format of the request payload.
application/jsonSuccessful response
Error response
GET https://api.iyzipay.com/v2/subscription/pricing-plans/7515f763-5da3-4a35-8f7f-d425ae44ac04
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"status": "success",
"systemTime": 1755561449951,
"data": {
"referenceCode": "7515f763-5da3-4a35-8f7f-d425ae44ac04",
"name": "Monthly Plan",
"price": 99.99,
"currencyCode": "TRY",
"paymentInterval": "MONTHLY",
"paymentIntervalCount": 1,
"planPaymentType": "RECURRING",
"recurrenceCount": 12,
"trialPeriodDays": 0,
"productReferenceCode": "8d562f84-f8d5-441a-b086-9483fc5133a0",
"status": "ACTIVE",
"createdDate": 1755552252531
}
}Last updated
