Subscription Product
The subscription primarily built around plans, and plans must be associated with products. To create a product, it is sufficient to provide only the name parameter.
A product can have multiple payment plans, and it is possible to perform all these operations both through the API and the iyzico merchant panel.
The product name is a unique value, and it is possible to create unlimited products that will be distinct from each other.
There are five different methods that can be used on products.
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
Sample Codes
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
Sample Codes
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
Sample Codes
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
Sample Codes
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
Sample Codes
Last updated
