iyzico Link API
The services included in the iyzico Link API are listed below.
Used to create a new iyzico Link. On success, returns the link URL. You can share the returned URL with your customers.
Signature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Value sent for request/response correlation.
123456Response language. Default tr.
enPossible values: The product name that will be visible to the customer.
Sample ProductThe product description that will be visible to the customer.
10 BooksProduct price.
50.00Currency code.
TRYPossible values: Base64-encoded product image.
a/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3k...Do not request address at checkout (true) / request address (false).
truePossible values: Enable/disable installment sales.
falsePossible values: Enable/disable stock control.
truePossible values: Stock quantity.
25,Lets the customer complete the payment with one of three preset amounts or a custom amount. This feature must be enabled on the merchant account.
truePossible values: Preset amounts shown for FlexibleLink.
10Possible values: Product category type. Default value is "UNKNOWN".
PHONEPossible values: Successful creation response.
Request result.
successPossible values: Response language.
enPossible values: Unix timestamp (ms).
1687827915258Echoed back if sent with the request.
123456POST /v2/iyzilink/products
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"conversationId": "123456",
"locale": "en",
"name": "Sample Product",
"description": "10 Books",
"price": "50.00",
"currencyCode": "TRY",
"encodedImageFile": "/9j/4AAQSkZJRgABAQEAYABgAAD...",
"addressIgnorable": true,
"installmentRequested": false,
"stockEnabled": true,
"stockCount": 25,
"flexibleLink": true,
"presetPriceValues": [10.00, 20.00],
"categoryType": "UNKNOWN"
}
Successful creation response.
{
"status": "success",
"locale": "en",
"systemTime": 1687827915258,
"conversationId": "123456",
"data": {
"token": "WxI",
"url": "https://sandbox.iyzi.link/WxI",
"imageUrl": "https://sandbox-img.iyzi.link/Wx/I.jpg"
}
}Sample Codes
Creates a Fast Link. Fast Link is a solution that enables quick and easy collection for payments up to 750 TRY. A Fast Link can be used only once. To create a Fast Link, you must first have an approved iyzico link.
Signature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Value sent for request/response correlation.
123456Response language. Default tr.
enPossible values: Link description shown to the customer.
10 BooksProduct price.
75.00Currency code.
TRYPossible values: Successful creation response.
Request result.
successPossible values: Response language.
enPossible values: Unix timestamp (ms).
1687827915258Echoed back if sent with the request.
123456POST /v2/iyzilink/fast-link/products
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"conversationId": "123456",
"locale": "en",
"description": "10 Books",
"price": "75.00",
"currencyCode": "TRY"
}
Successful creation response.
{
"status": "success",
"locale": "en",
"systemTime": 1687827915258,
"conversationId": "123456",
"data": {
"token": "WxI",
"url": "https://sandbox.iyzi.link/WxI",
"imageUrl": "https://sandbox-img.iyzi.link/Wx/I.jpg"
}
}Sample Codes
Update an existing iyzico Link by using the token returned at creation time.
Token value of the iyzico Link to be updated.
WxISignature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Fields that can be sent for link update (token is sent in the path).
Value used for request/response correlation.
123456Response language.
enPossible values: Product name.
Updated ProductProduct description.
10 BooksProduct price.
60.00Currency code.
TRYPossible values: Base64-encoded product image.
a/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3k...Do not request/request address.
falsePossible values: Enable/disable installment sales.
truePossible values: Enable/disable stock control.
truePossible values: Stock quantity.
12Product category type. Default value is "UNKNOWN".
PHONEPossible values: Successful update response.
Request result.
successPossible values: Response language.
enPossible values: Unix timestamp (ms).
1687827915258Echoed back if sent with the request.
123456PUT /v2/iyzilink/products/WxI
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"conversationId": "123456",
"name": "Updated Product",
"description": "10 Books",
"price": "60.00",
"currencyCode": "TRY",
"encodedImageFile": "/9j/4AAQSkZJRgABAQEAYABgAAD...",
"addressIgnorable": false,
"installmentRequested": true,
"stockEnabled": true,
"stockCount": 12
}
Successful update response.
{
"status": "success",
"locale": "en",
"systemTime": 1687827915258,
"conversationId": "123456",
"data": {
"token": "WxI",
"url": "https://sandbox.iyzi.link/WxI",
"imageUrl": "https://sandbox-img.iyzi.link/Wx/I.jpg"
}
}Sample Codes
Query a single link by token. Returns the iyzico Link details for the given token.
Token value of the iyzico Link to query.
WxIResponse language (default en).
enRequest/response correlation value.
123456Signature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Product detail response.
Request result.
successPossible values: Response language.
enPossible values: Unix timestamp (ms).
1687827915258Echoed back if sent with the request.
123456GET /v2/iyzilink/products/WxI?locale=en&conversationId=123456
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
Product detail response.
{
"status": "success",
"locale": "en",
"systemTime": 1687827915258,
"conversationId": "123456",
"data": {
"name": "sample-name",
"conversationId": "1123456789",
"description": "10 Books",
"price": "50.00000000",
"currencyId": 3,
"currencyCode": "USD",
"token": "Wx0",
"productType": "IYZILINK",
"productStatus": "ACTIVE",
"merchantId": 376927,
"url": "https://sandbox.iyzi.link/Wx0",
"imageUrl": "https://sandbox-img.iyzi.link/Wx/0.jpg",
"addressIgnorable": false,
"soldCount": 0,
"installmentRequested": false,
"stockEnabled": false,
"stockCount": 0,
"presetPriceValues": [
"50.00",
"75.00",
"100.00"
],
"flexibleLink": false,
"categoryType": "PHONE"
}
}Sample Codes
Lists all created iyzico Links with pagination.
Response language.
enPage number.
1Number of items per page.
10Free-form field for request/response correlation.
testSignature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Listing response.
Request result.
successPossible values: Response language.
enPossible values: Unix timestamp (ms).
1687827915258Echoed back if sent with the request.
123456GET /v2/iyzilink/products?locale=en&page=1&count=10&conversationId=test
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
Listing response.
{
"status": "success",
"locale": "en",
"systemTime": 1756284905529,
"conversationId": "123456789",
"data": {
"listingReviewed": true,
"totalCount": 11,
"currentPage": 1,
"pageCount": 11,
"items": [
{
"name": "link",
"conversationId": "conversationId",
"description": "description",
"price": "80.00000000",
"currencyId": 1,
"currencyCode": "TRY",
"token": "AAF9Bw",
"productType": "IYZILINK",
"productStatus": "ACTIVE",
"merchantId": 3410007,
"url": "https://sandbox.iyzi.link/AAF9Bw",
"imageUrl": "https://sandbox-img.iyzi.link/AA/F9Bw+V3.jpg",
"addressIgnorable": true,
"soldCount": 1,
"installmentRequested": false,
"stockEnabled": true,
"stockCount": 3,
"presetPriceValues": [],
"flexibleLink": false,
"categoryType": "UNKNOWN"
}
]
}
}Sample Codes
Sets an iyzico link’s status to ACTIVE or PASSIVE. Requires the link token and the new status value.
Token of the iyzico link.
WxINew status to set.
PASSIVEPossible values: Response language (default en).
enRequest/response correlation value.
123456Signature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Status update result.
Request result.
successPossible values: Response language.
enPossible values: Unix timestamp (ms).
1687827915258Echoed back if sent with the request.
123456PATCH /v2/iyzilink/products/WxI/status/PASSIVE?locale=en&conversationId=123456
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
Status update result.
{
"status": "success",
"locale": "en",
"systemTime": 1687827915258,
"conversationId": "123456"
}Sample Codes
Deletes an iyzico Link.
Token of the link to delete.
WxIResponse language (default en).
enRequest/response correlation value.
123456Signature value starting with IYZWSv2 (Base64).
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonPossible values: Deletion result.
Operation result.
successPossible values: Unix timestamp (ms).
1687825929316Response language.
enPossible values: Echoed back if sent with the request.
123456DELETE /v2/iyzilink/products/WxI?locale=en&conversationId=123456
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
Deletion result.
{
"status": "success",
"systemTime": 1687825929316,
"locale": "en",
"conversationId": "123456"
}Sample Codes
Last updated
