Refund & Cancel
Overview
Refund
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Content type of the request body.
application/jsonBasket item (payment breakdown) identifier (paymentTransactionId) to be refunded.
27169345Unique ID for request/response correlation.
123456789IP address the request is sent from.
1.1.1.1Response language.
Amount to refund. Must not exceed the item price.
5Payment currency.
TRYSuccessful response
Indicates the outcome of the request.
Response language.
Current epoch ms at the time of response.
Echoes the conversationId sent in the request.
Payment number.
Refunded payment item identifier.
Refunded amount.
Currency.
Authorization (auth) code returned by the bank.
591030Reference value provided by the bank for the payment.
mock00007iyzihostrfnReference value provided by the bank for the refund.
mock00007iyzihostrfnIndicates whether the operation can be retried.
truePossible values: Signature value that can be used for verification.
8202e30aa0f4c690f640ae4f6d4487b92b57a3693e9d560bbaf938638217271bError response
Sample Codes
Refund V2
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Content type of the request body.
application/jsonPayment identifier to be refunded.
25180208Unique ID for request/response correlation.
123456789IP address the request is sent from.
1.1.1.1Response language.
enPossible values: Amount to refund. Must not exceed the payment total.
5Payment currency.
TRYSuccessful response
Indicates the outcome of the request.
Response language.
Current epoch ms at the time of response.
Echoes the conversationId sent in the request.
Refunded payment identifier.
Refunded amount.
Currency.
Authorization (auth) code returned by the bank.
591030Reference value provided by the bank for the payment.
mock00007iyzihostrfnReference value provided by the bank for the refund.
mock00007iyzihostrfnIndicates whether the operation can be retried.
truePossible values: Signature value that can be used for verification.
8202e30aa0f4c690f640ae4f6d4487b92b57a3693e9d560bbaf938638217271bError response
Sample Codes
Cancel
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Content type of the request body.
application/jsonThe unique payment number assigned by iyzico for the payment you want to cancel.
25180158Unique ID for request/response correlation. Returned as-is in the response.
123456789IP address the request is sent from.
1.1.1.1Response language for iyzico messages.
enPossible values: Successful response
Indicates the outcome of the request.
Response language.
Current epoch ms at the time of response.
Echoes the conversationId sent in the request.
Canceled payment number.
Canceled payment amount.
Currency (payment currency).
Authorization (auth) code returned by the bank.
581421Transaction reference value.
mock00007iyzihostrfnReference value for the cancel transaction.
mock00007iyzihostrfnError response
Sample Codes
Last updated
