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.
A product can be deleted only if it does not have an associated plan. If a product associated with a plan needs to be deleted, the associated plan must be deleted first.
Create Product
The Subscription API collects recurring payments based on payment plans, and each payment plan is associated with at least one product. There are no limitations on the number of products, and a product can be created simply by sending the name information.
The product listing is used to access all products and plans associated with the products. The paging method is used to shorten response time and reduce response size. This allows you to quickly retrieve the list of products page by page.
It is used to set the language of the text returned as a result of the iyzico request. The default value is tr.
name*
String
Product name. It must be a unique name. An existing name cannot be given to another product
conversationId
String
It is a value that you can send during the request and receive in the response, used to match the request and response. The most common usage is the product number of the merchant
Description
String
Product description. This description can be shown to customers or it can be a note on your side.
status
String
It indicates the result of the request. If the transaction is successful, it returns a 'success' value
systemTime
Long
The returned result is the current Unix timestamp value at that moment.
referenceCode
String
It is a unique reference code for the created product. It is used to update or delete a product, view product details, and create a plan for the product.
createdDate
Long
Date of product creation
name
String
Name of product
description
String
Product description. If it was sent during the request, this information is returned in the response.
pricingPlans
Array
It shows the plans associated with the product. It comes empty when the product is created as there are no plans associated with it at that time
productReferenceCode*
String
It is a unique reference code for the created product. It is used to update or delete a product, view product details, and create a plan for the product.
locale
String
It is used to set the language of the text returned as a result of the iyzico request. The default value is tr.
Description
String
Product description. This description can be shown to customers or it can be a note on your side.
name*
String
Product name. It must be a unique name. An existing name cannot be given to another product
status
String
It indicates the result of the request. If the transaction is successful, it returns a 'success' value
systemTime
Long
The returned result is the current Unix timestamp value at that moment.
data.referenceCode
String
It is a unique reference code for the created product. It is used to update or delete a product, view product details, and create a plan for the product.
data.createdDate
Long
Date of product creation.
data.name
String
Name of product.
data.description
String
Product description. If it was sent during the request, this information is returned in the response.
data.status
String
It indicates the status of the product. The default is ACTIVE.
data.pricingPlans
Array
It displays the plans associated with the product.
productReferenceCode*
String
Unique reference code for the product.
status
String
It indicates the result of the request. If the transaction is successful, it returns a 'success' value
systemTime
Long
The returned result is the current Unix timestamp value at that moment.
productReferenceCode*
String
Unique reference code for the product.
status
String
It indicates the result of the request. If the transaction is successful, it returns a 'success' value
systemTime
Long
The returned result is the current Unix timestamp value at that moment.
data.referenceCode
String
Unique reference code for the product.
data.createdDate
Long
Date of product creation.
data.name
String
Name of product.
data.description
String
Product description. If it was sent during the request, this information is returned in the response.
data.status
String
It indicates the status of the product. The default is ACTIVE.
data.pricingPlans
Array
It displays the plans associated with the product.
page*
Integer
It retrieves all the products for the specified page.
count*
Integer
It specifies how many products will be listed per page
status
String
It indicates the result of the request. If the transaction is successful, it returns a 'success' value
systemTime
Long
The returned result is the current Unix timestamp value at that moment.