Product
Creates a new subscription product. The Subscription API charges on a recurring basis according to pricing plans, and each plan is linked to at least one product. There is no limit on the number of products; a product can be created by providing only a name.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
Content type of the request body.
application/jsonLanguage of iyzico response messages. Default en; tr is supported.
enA reference value that can be used to match request and response.
123456789Product name.
Coffee PackProduct description.
Turkish CoffeeSuccessful response
Bad request
POST https://api.iyzipay.com/v2/subscription/products
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "123456789",
"name": "Coffee Pack",
"description": "Turkish Coffee"
}
{
"status": "success",
"systemTime": 1755552252594,
"data": {
"referenceCode": "08159c1d-6fe9-4934-8a55-e191bd4119e0",
"createdDate": "2024-10-15 12:24:12",
"name": "Coffee Pack",
"description": "Turkish Coffee",
"status": "ACTIVE",
"pricingPlans": []
}
}Updates a subscription product. Product name and description can be edited via API or the iyzico merchant panel. Use the product’s unique reference code for API updates.
Unique reference code of the product.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
Content type of the request body.
application/jsonResponse language (en/tr).
enValue used for request/response matching.
123456789New product name.
Product UpdateNew product description.
New descriptionSuccessful response
Bad request
POST https://api.iyzipay.com/v2/subscription/products/{productReferenceCode}
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "123456789",
"name": "Product Update",
"description": "New description"
}
{
"status": "success",
"systemTime": 1755552995773,
"data": {
"referenceCode": "e935ca98-5a8f-4c67-95c9-221eb8edb081",
"createdDate": "2024-10-10 10:09:53",
"name": "Product Update",
"description": "New description",
"status": "ACTIVE",
"pricingPlans": [
{
"referenceCode": "7b0e7912-c1c4-44a6-ac41-403809401458",
"createdDate": "2024-10-10 10:10:11",
"name": "testPlan",
"price": 30,
"paymentInterval": "WEEKLY",
"paymentIntervalCount": 1,
"trialPeriodDays": 30,
"currencyCode": "TRY",
"productReferenceCode": "e935ca98-5a8f-4c67-95c9-221eb8edb081",
"planPaymentType": "RECURRING",
"status": "ACTIVE",
"recurrenceCount": 5
}
]
}
}Deletes a subscription product. Products can be deleted via API or the iyzico merchant panel only when there are no plans linked to the product.
Unique reference code of the product.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
Content type of the request body.
application/jsonSuccessful response
Bad request
DELETE https://api.iyzipay.com/v2/subscription/products/{productReferenceCode}
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"status": "success",
"systemTime": 1755553111881
}Lists subscription products. Use this to fetch all products and their linked plans. To reduce latency and payload size, pagination is used so you can retrieve the product list page by page.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
Content type of the request body.
application/jsonReturns products for the specified page.
1Number of products per page.
20Successful response
Bad request
GET https://api.iyzipay.com/v2/subscription/products
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"page": 1,
"count": 1
}
{
"status": "success",
"systemTime": 1755552794380,
"data": {
"totalCount": "2",
"currentPage": 1,
"pageCount": 1,
"items": [
{
"referenceCode": "b59fbf3d-5b74-45a3-836e-97f708462a95",
"createdDate": "2024-10-15 12:19:52",
"name": "Coffee Pack",
"description": "Turkish Coffee",
"status": "ACTIVE",
"pricingPlans": []
},
{
"referenceCode": "e935ca98-5a8f-4c67-95c9-221eb8edb081",
"createdDate": "2024-10-10 10:09:53",
"name": "KingOfProduct",
"description": "DescriptionOfProduct",
"status": "ACTIVE",
"pricingPlans": [
{
"referenceCode": "7b0e7912-c1c4-44a6-ac41-403809401458",
"createdDate": "2024-10-10 10:10:11",
"name": "testPlan",
"price": 30,
"paymentInterval": "WEEKLY",
"paymentIntervalCount": 1,
"trialPeriodDays": 30,
"currencyCode": "TRY",
"productReferenceCode": "e935ca98-5a8f-4c67-95c9-221eb8edb081",
"planPaymentType": "RECURRING",
"status": "ACTIVE",
"recurrenceCount": 5
}
]
}
]
}
}Retrieves details of a single product. Provide the product reference code in the request.
Unique reference code of the product.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
Content type of the request body.
application/jsonSuccessful response
Bad request
GET https://api.iyzipay.com/v2/subscription/products/{productReferenceCode}
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"status": "success",
"systemTime": 1755552931289,
"data": {
"referenceCode": "e935ca98-5a8f-4c67-95c9-221eb8edb081",
"createdDate": "2024-10-10 10:09:53",
"name": "KingOfProduct",
"description": "DescriptionOfProduct",
"status": "ACTIVE",
"pricingPlans": [
{
"referenceCode": "7b0e7912-c1c4-44a6-ac41-403809401458",
"createdDate": "2024-10-10 10:10:11",
"name": "testPlan",
"price": 30,
"paymentInterval": "WEEKLY",
"paymentIntervalCount": 1,
"trialPeriodDays": 30,
"currencyCode": "TRY",
"productReferenceCode": "e935ca98-5a8f-4c67-95c9-221eb8edb081",
"planPaymentType": "RECURRING",
"status": "ACTIVE",
"recurrenceCount": 5
}
]
}
}Last updated
